Su can be called from adb but not from android
<p>I am facing an issue on my rooted device (odroid x with my personnal rom)
I have su with userid flag set:</p>

<pre><code>root@android:/ # ls -l /system/xbin/su                                         
-rwsr-sr-x root     root        22372 2013-01-02 15:44 su
</code></pre>

<p>From adb, I can see that the device is rooted :</p>

<pre><code>root@android:/ # id
uid=0(root) gid=0(root)
root@android:/ # 
</code></pre>

<p>So for sure perform a su works :)</p>

<p>On the android app, I have a simple Java app requesting su : it does not work.
Using Android terminal, su is failing due to "permission denied"</p>

<p>Notice that I have an other tablet successfully rooted. I put exactly the same rights to su and call to su from android terminal works.</p>

<p>Could you please tell me what I am missing. I read that correct uid must be set to allow android app (having their own user id) to call it. Is it correct ?</p>

<p>Thanks a lot !</p>

<p>Eloi</p>
