Why can't adb restart the machine in Factory mode after Android KK?

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.