第一步,网上搜索文章,得到一下内容
https://blog.csdn.net/jonhy_love/article/details/132757633
第二步,一看各种反编译,我也尝试跟着研究,不过在我的代码中,
首先硬件是读取配置项,
SystemProperties.get("persist.ufi.nosignal.reboot", "yes");
所以,直接设置为no,就不会重启了,
adb shell setprop persist.ufi.nosignal.reboot no
使用adb执行此命令就不会重启了!简单方便。