Good day to all. There is a phone from which I would like to make a video recorder for my car. The program then wrote, which will record video, save, etc. But how to make the phone turn on when USB charging is connected, the wire of which is plugged into the 220B socket?

ROOT access is full. Phone model - ZTE Blade Q Lux 3G PRO . Android 4.4.2.

I read articles on the Internet how to do this on Samsung phones. As stated here in one of the answers, it is necessary to change the contents of the files /system/bin/playlpm or /system/bin/lpm , but neither one nor the other file in my phone exists. As far as I understood the principle, you need to find the file that starts the animation of the battery.

enter image description here

and add system power ups:

#! / system / bin / sh

/ system / bin / reboot

I tried to change all the contents to these lines in the following files:

  • / system / bin / bootanimation
  • / system / bin / ipod
  • / system / bin / chcon

To no avail. Maybe some other files need to be changed? Or even in another folder need to dig? Tell me.


When I tried to do this trick with the file /system/bin/chcon , the display off button stopped working for me. That is, in short, as I turned on the phone, the display works, does not turn off and does not respond to the shutdown button. Only after restoring the old file everything became normal after the phone was rebooted. So I conclude that automatic inclusion can be implemented. Each system file actually runs scripts, each its own, and is responsible for each one for itself. It is only necessary to understand where the desired animation file is the battery charge of the phone and where it is necessary to enter the inclusion command in it.

    2 answers 2

    In order for the phone to start when charging is connected, you must perform the following steps.

    • Download and install on your computer program Adb Run. It is necessary to establish a connection with the phone via USB-cable.
    • Download and install on your computer program Bootimg. It is required to edit the phone’s boot.img file. The program patch should be C:\Users\Admin\ .
    • Download the firmware (ZIP archive) to your computer. From the archive get the file boot.img and put it in the folder with the program Bootimg. Open system console (Start menu -> cmd). Enter the following command:

       bootimg --unpack-bootimg 

    Open the created folder initrd , find the files init.rc and init.charging.rc in it. View them. In each of them we find the lines:

     service ipod /system/bin/ipod user root group root 

    and after them we write below:

      class_start core class_start main class_start default 

    Save and close both files. We return to the console. We write the following command:

     bootimg --repack-bootimg 

    Run the Adb Run program. By default, it is set to C:\adb\ . Select item 5, then 0. The phone should enter Fastboot mode. Then select item 1, and then 1. The console should display at least two lines:

     List of devices attached 0123456789ABCDEF device 

    If you only see this:

     List of devices attached 

    then you may have the following errors:

    • USB debugging in developer mode is not enabled.
    • USB cable is incorrectly connected or possibly damaged
    • In the Device Manager (Right-click on the "My Computer" label; Properties; Device Manager), the phone is displayed as an unknown device, for example, as in the screenshot here

    Then choose item 5, then 0. We are waiting for the message FASTBOOT mode.. or something like to appear on the phone screen. Select item 7, then 1, and then write:

     fastboot flash boot C:\Users\Admin\boot-new.img 

    We are waiting for Done... to appear in the console at the end of a successful installation of boot.img . Then again we write in the console:

     fastboot reboot 

    Close the program Adb Run (console). Disconnect the phone from the computer. After loading the phone, turn it off. We connect the phone to charge 220V, and within 10 seconds the phone will turn on itself. At this all is ready.

    If you have any errors or something went wrong, please write in the comments. I'll be glad to help!


    I also want to give people advice: If the first attempt to perform the procedure did not work out for any reason, try several more carefully to carry out all the above listed actions.


    If the Android version is 4.4 and higher, then errors may occur and, possibly, nothing will work out. As I, for example, answered the support of ZTE corporation to the question "is it possible to somehow somehow auto-enable the phone with ..." I was told that you see that this function is not available on this launcher. And I realized that the problem can only be solved by rolling back the Android version from 4.4 to 4.2.

    • Something could not find the program Bootimg. Do not share the link? - C0BA
    • Now I can not find something myself. I now have it on my computer. But I can not attach a file here. I will try in the near future to search for it on the Internet. - nick
    • Thank. Perhaps the soap? 89050011100 dog mail point ru - C0BA

    If I remember correctly, this chip depends on the bootloader, such as TWRP. But in older versions when USB charging is connected, the download starts and ends only on the bootloader itself. To start the next android, you need to manually select the system reboot. Dig in this direction.

    • Maybe. TWRP did not fit, since in Android the TWRP application is not in my list of supported devices. I used adb (see answer above). - nick