title: Gain root in application - Android
body: <p>I have an android application which requires root access, I used the code:</p>
  
  <pre><code>Process process = Runtime.getRuntime().exec("su");
  DataOutputStream os = new DataOutputStream(process.getOutputStream());
  os.writeBytes(command);
  </code></pre>
  
  <p>This works on my galaxy s3 - I see the pop-up window which asks for root access, but when I ran the applications on different devices such as "xiaomi redmi note" and "lenovo k3" the pop-up window wont come up. 
  Why is that and how can I make the request show?</p>