Objective
Welcome everyone I share and recommend useful code Snippets ~ ~
Statement
Welcome reprint, but please keep the original source of the article:
CSDN:http://www.csdn.net
rainy season o mo away:http://blog.csdn.net/luckkof
Body
why can't adb reboot in Factory mode after KK? Under normal circumstances, the ADB reboot can be restarted.
[Keyword]
ADB reboot, Factory mode, factory model, Factory mode cannot be restarted[version constraint]
Android 4.4, KK or KK later version
[Solution]
After the KK Google will be shutdown/Restart the last transfer to the INIT process execution. Other process is notified by the system property SYS.POWERCTL init execution.
Sys.powerctl configuration in the init.rc, you can refer toOn property:sys.powerctl=*
Powerctl ${sys.powerctl}
Then execute the SYSTEM/CORE/INIT/BUILTINS.C#DO_POWERCTL function, call Android_reboot restart or shutdown. why can't adb reboot in Factory mode? The key is that ADB reboot can be restarted under normal circumstances because there is no definition in mediatek/config/{platform}factory_init.rc
On property:sys.powerctl=*
Powerctl ${sys.powerctl}
If you want to add this feature, you can only add these two lines to the factory_init.rc