1 发送reboot广播实现重启
Intent reboot = new Intent(Intent.ACTION_REBOOT);
reboot.putExtra("nowait", 1);
reboot.putExtra("interval", 1);
reboot.putExtra("window", 0);
sendBroadcast(reboot);
2.通过执行adb命令实现重启
try {
Runtime.getRuntime().exec("su -c \"/system/bin/reboot\"");
} catch (IOException e) {
e.printStackTrace();
}