title: "adbd cannot run as root in production builds" even though the 'debug' build variant is selected?
body: <p>I'm trying to point an Android emulator to a local VM, for which I need to <code>adb root</code>. However, I'm getting this error:</p>
  
  <pre><code>$ adb root
  adbd cannot run as root in production builds
  </code></pre>
  
  <p>Yet the build variant I am running of the <code>p2p-app</code> is <code>debug</code>:</p>
  
  <p><a href="https://i.stack.imgur.com/Hdjo2.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Hdjo2.png" alt="enter image description here"></a></p>
  
  <p>The <code>build.gradle</code> for the <code>p2p-app</code> module includes the following:</p>
  
  <pre><code>android {
      buildTypes {
          release {
              minifyEnabled true
              shrinkResources true
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
              debuggable false
              signingConfig signingConfigs.release
          }
  
          debug {
              testCoverageEnabled = true
              minifyEnabled false
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
              debuggable true
              versionNameSuffix '-' + gitBranchName()
              applicationIdSuffix '.fifa'
              ext.betaDistributionReleaseNotesFilePath = "fabric-changelog.txt"
              ext.betaDistributionGroupAliases = "android-engineers"
  
          }
      }
  }
  </code></pre>
  
  <p>Since the <code>debug</code> variant has <code>debuggable true</code>, I would expect it to be possible to get root access to the emulator?</p>