程序实现手机重启

前提:需要系统签名或者在系统上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);

}


你可能感兴趣的:(程序实现手机重启)