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"
#define CHARGERMODE_CMDLINE_VALUE "pwroff"
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.
for the Galaxy Victory Virgin Mobile <>