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.
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.
