title: Is it possible to run a shell command as root with only the su binary and no SuperSU or Superuser apk installed?
body: <p>I have an Android phone that has only su binary installed and it works, meaning I can adb shell into the phone and run  an 'su' command and I will be root.  </p>
  
  <p>When I try to run a command via code, it doesn't seem to work no matter which way I try to run it.  I've tried many different variants of the following command.</p>
  
  <pre><code>Runtime.getRuntime().exec("su -c ps");
  </code></pre>
  
  <p>When I run this command on another rooted phone with a Superuser.apk or SuperSU.apk app installed, I get a dialog asking if I want to allow it to run with root permissions.  When the apks are not there, it never asks and the command never works.</p>
  
  <p>I've tried installing the apks on the first phone but they don't seem to do anything.  So, as the original question asks --> Is there any way to run the elevated command from within the app without the SU apps installed?</p>