Tuesday, September 6, 2016

[TUTORIAL]Modify the boot.img to power on the phone when charging

I don't know if this post is in correct place.

Warning: the tutorial below was tested only on Samsung Galaxy S4 Active (GT-I9295) with Cyanogenmod 12, keep in mind that this may bring risks to the device.

Sorry for my Google Translator English hahaha :laugh:

Hello guys,
always I turned to xda for research on android changes, but this time after hours of research I have not found exactly what I was looking for, so I decided to make this tutorial to help those who have the same goal.

This tutorial will explain how to extract the kernel and modify the init.rc to the smarthphone power on when plugged into the charger.

First follow any tutorial to learn how to unpack and repack the boot.img file.

After unpack it go to ramdisk folder and delete the file "charger".
Then find and edit the file "init.rc".
look for the line:
Code:

on charger
    class_start charger

and change to:
Code:

on charger
    setprop sys.powerctl reboot

Compress the boot.img file again and transfer it to the phone.

END :good:

Now do the test to see if it turns on when plugged into the charger, noting that the initial image of the battery will continue to appear before the phone restart.

If test on a different smartphone, post for us to know in which smathphone this change works.


from xda-developers http://ift.tt/2c4O5Mi
via IFTTT

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home