title: How to run ADB command programmatically on rooted android device
body: <p>I need to run adb commands programmatically on rooted android device.</p>
  
  <p>The following is not working, no exception just not working:</p>
  
  <pre><code>Process process = Runtime.getRuntime().exec(command);
  process.waitFor();
  </code></pre>
  
  <p>Also, if I want to run command as a specific user role, how do I execute it?</p>