<分区>
我想重启设备。我可以用 root.using 来做 下面的代码。
public static void rebootDevice()
{
try
{
Process process = Runtime.getRuntime().exec("su");
DataOutputStream os = new DataOutputStream(process.getOutputStream());
os.writeBytes("reboot \n");
}
catch (Throwable t) {
t.printStackTrace();
}
}
但老板告诉我不使用 su 试试。怎么做有帮助吗?