读书人

程序兑现手机重启

发布时间: 2012-12-20 09:53:21 作者: rapoo

程序实现手机重启

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

}


读书人网 >移动开发

热点推荐