Hey Im trying to implement a reboot in my app for root users but the code below does not work. The SU prompt pops up but when i allow the action nothing happens, it will not reboot. Any ideas why?
I am also hearing that the regular sdk cannot make reboot applications or something like that. If anyone can help me out id appreciate it.
Code:
try {
Runtime.getRuntime().exec("su");
Runtime.getRuntime().exec("reboot");
} catch (IOException e) {
}
Code:
Runtime.getRuntime().exec(new String[]{"/system/bin/su","-c","reboot"});
I am also hearing that the regular sdk cannot make reboot applications or something like that. If anyone can help me out id appreciate it.