title: Android root detection using build tags?
body: <p>The following method is one of the ways we can programatically detect if an android device is rooted:</p>
  
  <pre><code>public boolean checkRootMethod1(){
      String buildTags = android.os.Build.TAGS;
  
      if (buildTags != null &amp;&amp; buildTags.contains("test-keys")) {
          return true;
      }
      return false;
  }
  </code></pre>
  
  <p>Can someone explain what this is actually doing? What is the "test-keys" build tag, and what does it have to do with root? I couldn't find any relevant information from google.</p>