summaryrefslogtreecommitdiffstats
path: root/toolbox
diff options
context:
space:
mode:
authorPawit Pornkitprasan <p.pawit@gmail.com>2011-12-17 17:26:54 -0500
committerGerrit Code Review <gerrit@cyanogenmod.org>2015-11-05 17:37:58 -0800
commit7d34926b04c5c182647bc52ba38443e228df601f (patch)
treef0f9e7b0637c4d8e1f14f7e1d67491389004e8de /toolbox
parent0114ae3c7de8d149efd9bdee4ec47ec9629e274e (diff)
downloadsystem_core-7d34926b04c5c182647bc52ba38443e228df601f.zip
system_core-7d34926b04c5c182647bc52ba38443e228df601f.tar.gz
system_core-7d34926b04c5c182647bc52ba38443e228df601f.tar.bz2
init: add detection of charging mode
Based on Prashant Somashekar's patch which is in turn based on techomancer's patch http://goo.gl/I19GG. When BOARD_CHARGING_MODE_BOOTING_LPM is set, init will read that value (usually from /sys) and enable charging mode when set to 1. This differs from the original patch in that Samsung-specific lpm.rc is not loaded, but instead, init.rc is loaded using the "charger" class, which is how AOSP devices handle charging. The change is because the either the SELinux or the init.rc changes is causing lpm.rc to not work, and porting lpm.rc to the Android system is easier than trying to fix it. Change-Id: Ice7a074da7e982f9a64aaa97de28bfcbccdc8b91
Diffstat (limited to 'toolbox')
0 files changed, 0 insertions, 0 deletions