summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--BoardConfig.mk4
-rw-r--r--lpm.rc9
2 files changed, 8 insertions, 5 deletions
diff --git a/BoardConfig.mk b/BoardConfig.mk
index 42a0eec..5075c45 100644
--- a/BoardConfig.mk
+++ b/BoardConfig.mk
@@ -135,6 +135,10 @@ BOARD_HAS_LARGE_FILESYSTEM := true
BOARD_HAS_NO_MISC_PARTITION := true
BOARD_HAS_NO_SELECT_BUTTON := true
+# Charging mode
+BOARD_CHARGING_MODE_BOOTING_LPM := /sys/class/power_supply/battery/batt_lp_charging
+BOARD_BATTERY_DEVICE_NAME := "battery"
+
# assert
TARGET_OTA_ASSERT_DEVICE := m0,i9300,GT-I9300
diff --git a/lpm.rc b/lpm.rc
index f472e1d..c18b994 100644
--- a/lpm.rc
+++ b/lpm.rc
@@ -55,18 +55,17 @@ service debuggerd /system/bin/debuggerd
service ueventd /sbin/ueventd
critical
-#service console /bin/sh
service console /system/bin/sh
- console
+ console
service playlpm /system/bin/playlpm
- user root
+ user root
service immvibed /system/bin/immvibed
- oneshot
+ oneshot
service lpmkey /system/bin/lpmkey
- user root
+ user root
# adbd is controlled by the persist.service.adb.enable system property
service adbd /sbin/adbd