$ ls ~yifei/notes/

如何让安卓手机插上电源自动开机

Posted on:

Last modified:

非常简单的原理,把充电电池动画文件替换成重启命令。

比如说,对于红米 Note2,这个文件是 /system/bin/kpoc_charger

替换成如下文件

#!/system/bin/sh
/system/bin/reboot

然后 chmod +x /system/bin/kpoc_charger

http://developwear.com/blog/2014/07/03/autobootstart-android-when-charger-is-connected/

© 2016-2022 Yifei Kong. Powered by ynotes

All contents are under the CC-BY-NC-SA license, if not otherwise specified.

Opinions expressed here are solely my own and do not express the views or opinions of my employer.