I'm running JB 4.1.2 on a BeagleBoard-xM but i can't run any root command using Runtime.getRuntime().exec().
I've tried anything but i got:
java.io.IOException: Error running exec(). Command: [echo] Working Directory: null Environment: null
With original /system/xbin/su command, or at least
Permission Denied or no output replacing original "su" command with a custom one (taken from SuperSu or SuperUser application, ARM build).
I've also tried to change "su" command group and permission and running application as a system app.
I've tried any command like "sh -c" "su -c" or libsuperuser (from chainfire) or also using a custom JNI lib that invoke system("su...");
Nothing change, no luck.
su command only works by terminal or through adb shell.
I need to run some echo command to use board leds from my application, how can solve it?