I need to use this for a Samsung Tablet.
Usually if the device is switched-off and the USB cable is being connected the display will wake up for some seconds showing an animated battery. Instead I want to let it boot.
I suspect this is close to the metal. Where do I have to make a modification? In the kernel, in the Android platform, or is this hidden in some proprietary code of the manufacturer?
Use the Built-In Feature Simple go to Settings>Addtional Settings and select Automatic On/Off. Select the time for automatic power off and power on. Your smartphone will turn the power off and back on at the scheduled time. Remember, this setting can also be in the battery or power management settings of your device.
Because smart phones pull in the required amount of power to function, you can directly plug the device into a power source, with, or without a battery in it. This is also a way to test to see if your phone still works after being exposed and dried off from water.
Charge the Battery Try plugging your phone into a charger—if the battery is truly drained, it won't necessarily light up right away. Try leaving it plugged in for 15 to 30 minutes or so before turning it on. If that doesn't work, you could also have a damaged charger. Try a different cable, power bank, and wall outlet.
A member on XDA has posted a solution for this which seems to work on some Samsung devices.
The idea is to replace the script for the battery icon (which will appear of course as soon as the device is plugged in) with a custom script that will boot the phone. To make this work locate /system/bin/playlpm
. Rename the old playlpm
to playlpm.bak
and replace it with the following script:
#!/system/bin/sh
/system/bin/reboot
For more information read the thread on XDA
I have a rooted Samsung S4 mini. The following steps worked for me:
mount -o remount,rw /system
mv /system/bin/lpm /system/bin/lpm.orig
create /system/bin/lpm
as follows:
#!/system/bin/sh
/system/bin/lpm.orig &
while [ true ]; do
sleep 1
ps | grep lpm.orig && sleep 3 && /system/bin/reboot
done
chown root.shell /system/bin/lpm
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With