I\'m looking for a solution which can be used to reboot a rooted device. I jknow that rebooting a device is very poor design for the user, as stated here, and it\'s not real
This code works on Samsung Galaxy S2, S4, Sony Xperia S (LTi 26)
public static void rebootDevice()
{
try
{
Process process = Runtime.getRuntime().exec("su");
DataOutputStream os = new DataOutputStream(process.getOutputStream());
os.writeBytes("reboot \n");
}
catch (Throwable t) {t.printStackTrace;}
}