I am running android 7.1.1 on a user device with AOSP compiled from the source code in the "userdebug" configuration, which gives root access and debugging.
I can connect to the device using the bridge of the Android device.
adb root
adb shell
device_name:/
All of these commands work fine, and I can make changes as root. The problem I encountered is that in the application
the same su command is executedJava.Lang.Process suProcess = Runtime.GetRuntime().Exec("su");
The error I get is:
Java.IO.IOException: Cannot start program "su": error = 13, Permission denied
Is there any difference between the adb root / shell su commands and the commands launched from the application?
source