Hi I'm trying to execute the 'su' command as following via an app.
Process process = Runtime.getRuntime().exec("su");
process.waitFor();
Log.d("EXITVAL",Integer.toString(process.exitValue()));
I'm getting exit value 1 ..Its returning 0 for other commands like 'id'
I checked it through command prompt and its not showing any error(as given below).
root@android:/ #su
root@android:/ #
Does it mean the emulator is rooted? If it is, then whats would be the real problem? Can anyone Plz guide me..