Skip to content

Commit

Permalink
Enable offline charger
Browse files Browse the repository at this point in the history
  • Loading branch information
Flohack74 committed Dec 30, 2021
1 parent fb8637a commit 05a240d
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions BoardConfig.mk
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ TARGET_USES_COLOR_METADATA := true

# Charger Mode
BOARD_CHARGER_ENABLE_SUSPEND := true
BOARD_HEALTHD_CUSTOM_CHARGER_RES := $(COMMON_PATH)/charger/images

# Vendor Interface Manifest
DEVICE_MANIFEST_FILE := device/google/wahoo/manifest.xml
Expand Down
Binary file added charger/images/battery_fail.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added charger/images/battery_scale.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions init.hardware.rc
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ on charger
write /sys/devices/soc/${ro.boot.bootdevice}/clkgate_enable 1
write /sys/class/typec/port0/port_type sink
write /sys/module/lpm_levels/parameters/sleep_disabled N
start vendor.charger

service vendor.charger /charger
class charger
Expand Down

0 comments on commit 05a240d

Please sign in to comment.