Remove All Ads from XDA
Find Your Device:
Or Continue to Thread: [UNOFFICIAL][DEV/GEEKS-ONLY] C…
12th March 2012, 10:56 PM |#4113  
JerryScript's Avatar
Senior Member
Flag Las Vegas
Thanks Meter: 568
Originally Posted by thachtunganh

If you know offline charging fix in the kernel, can you tell me how to do that?

It needs to write these values (taken from /system/core/init.c)

#define CHARGERMODE_CMDLINE_NAME "lge.reboot"

On the VM670, we use a hack. On all forms of power off except for power-off itself, the kernel writes to last_kmsg (discovered by tdmcode). We simply check if that file exists, and set the battchg_pause value in /system/core/init.c accordingly. Then in init.DEVICE.rc, we add the corresponding boot-pause calls to the proprietary chargerlogo binary.
The Following 6 Users Say Thank You to JerryScript For This Useful Post: [ View ] Gift JerryScript Ad-Free