title: Root permission not granted to Android app for exceuting "su" command
body: <p>I want to execute the "su" comand from an app..I have rooted the emulator and installed Superuser.apk(superuser 2.3.6.1)</p>
  
  <pre><code>Process pr= Runtime.getRuntime().exec("su");
  process.waitFor();
  Log.d("Ex.Value",Integer.toString(process.exitValue()));
  </code></pre>
  
  <p>But I'm getting 255 as the exit value which seems to be some error in executing "su".
  I have included RootTools library (<a href="http://code.google.com/p/roottools/" rel="nofollow">http://code.google.com/p/roottools/</a>). When checked with the methods <strong>RootTools.isRootAvailable(), RootTools.isAccessGiven()</strong>...Its found that the emulator has SU, but my application is not granted Root permissions. Will it be the real issue?? ..If so Can you plz tell how to grant my app the Root permission?</p>