Question

Hi so my application runs some commands using the su in android root.

It works fine in JellyBean on the Galaxy Nexus but when I try to run it on the LG Nexus 5 (kitkat), I get an error saying:

su: uid 10069 not allowed to su

I'm not really sure what I'm missing here. I have root access (it runs su fine on the Galaxy Nexus).

Basically the application reads in a command from a TextEdit, strips it, appends the necessary parameters etc. and then calls the script which is put on the phone. I use the ProcessBuilder to build the call for the script.

Any fixes or ideas as to where I should look would be appreciated. Thank you

Was it helpful?

Solution

The issue was SuperSu not being properly installed and granting permission to the application. Once I changed that there were no permissions issues.

OTHER TIPS

If you have problem with rooting to super user.

You can use "run-as" command to access files of your application.

ex: run-as com.your.package

It will drop you to the shell@android:/data/data/com.your.package $

now you can use commands ls Then it will display the list of file folders

  cache
  databases
  lib
  shared_prefs
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top