Android程序下重启手机
代码如下:
String cmd = "su -c reboot";//su -c reboot recovery//su -c reboot bootloader try { Runtime.getRuntime().exec(cmd); } catch (IOException e) { // TODO Auto-generated catch block new AlertDialog.Builder(MainActivity.this).setTitle("Error").setMessage( e.getMessage()).setPositiveButton("OK", null).show();