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 the Factory mode after KK?

Under normal circumstances the ADB reboot can be restarted.


[Keyword]
ADB reboot, Factory mode, Factory mode, factory modes cannot be restarted

[version number constraint]
Android 4.4, KK or KK later version number
[Solution]
After KK Google will turn off/restart the last transfer to the INIT process to run. Other process informs Init to run through the system property sys.powerctl.


Sys.powerctl configuration in Init.rc, which can be included in the test

On property:sys.powerctl=*
Powerctl ${sys.powerctl}

Then run the System/core/init/builtins.c#do_powerctl function. Call Android_reboot restarts or shuts down. why can't adb reboot in the Factory mode?

Under normal circumstances the ADB reboot can be restarted, and the key is that it is not defined in mediatek/config/{platform}factory_init.rc
On property:sys.powerctl=*
Powerctl ${sys.powerctl}

Assuming that you want to add this functionality, you can simply add these two lines to the factory_init.rc

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

Related Article

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.