title: Detecting rooted device on Android 6
body: <p>i have some methods for root detection.</p>
  
  <pre><code>final boolean t1 = canExecuteCommand("/system/bin/which su");
  final boolean t2 = canExecuteCommand("which su");
  
  private static boolean canExecuteCommand(String command)
  {
      boolean executedSuccesfully;
      try {
        Runtime.getRuntime().exec(command);
        executedSuccesfully = true;
      } catch (Exception e) {
        executedSuccesfully = false;
      }
  
      return executedSuccesfully;
  }
  </code></pre>
  
  <p>Everything works fine until Android 6. From that version A6 return TRUE on t1 and t2. My device is not rooted. I updated device from A5 to A6 using system update.</p>
  
  <p>Why is return true from A6?
  Thanks.</p>