前提:需要系统签名或者在系统上mk编译。
public void reboot(){
Intent reboot = new Intent(Intent.ACTION_REBOOT);
reboot.setAction("android.intent.action.REBOOT");
reboot.putExtra("nowait", 1);
reboot.putExtra("interval", 1);
reboot.putExtra("window", 0);
sendBroadcast(reboot);
}