Quote:
Originally Posted by thachtunganh View Post
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)

#ifndef CHARGERMODE_CMDLINE_NAME
#define CHARGERMODE_CMDLINE_NAME "lge.reboot"
#define CHARGERMODE_CMDLINE_VALUE "pwroff"
#endif

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.
<> JerryScript.Vmobi.us/Victorious for the Galaxy Victory Virgin Mobile <>