Skip to content

Commit dfbe438

Browse files
NotKitneochapay
authored andcommitted
Add definition for offline charging service
Change-Id: I17b8f0efd9d08454695a63baa5fa398cc734cf3b
1 parent c8c8eaa commit dfbe438

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

BoardConfig.mk

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ TARGET_USERIMAGES_USE_EXT4 := true
4646
# HIDL
4747
DEVICE_FRAMEWORK_MANIFEST_FILE := $(DEVICE_PATH)/framework_manifest.xml
4848

49+
# Offline charging
50+
BOARD_CHARGER_ENABLE_SUSPEND := true
51+
BOARD_CHARGER_DISABLE_INIT_BLANK := true
52+
4953
# Partitions
5054
TARGET_COPY_OUT_VENDOR := vendor
5155
BOARD_BUILD_SYSTEM_ROOT_IMAGE := true

rootdir/etc/init.halium.rc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,11 @@ on post-fs-data
4040
on property:sys.boot_completed=1
4141
write /dev/wcnss_wlan 1
4242
write /sys/module/wlan/parameters/fwpath sta
43+
44+
on charger
45+
start charger
46+
47+
service charger /sbin/charger
48+
class charger
49+
group system graphics wakelock
50+
capabilities BLOCK_SUSPEND SYS_ADMIN SYS_BOOT

0 commit comments

Comments
 (0)