powerpoint45
Member
Ok, I just realized how to make a root app really easy. I just found out that android has a command equivalent to sudo. The command is
then the command. Lets say you are making an app that reboots your phone. This is all you need to do:
simple, right, I know.I just thought I would share.
Code:
su -c
Code:
try {
Runtime.getRuntime().exec("su -c reboot");
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
simple, right, I know.I just thought I would share.