mirror of
https://github.com/Evolution-X-Devices/device_google_walleye
synced 2026-02-01 07:33:36 +00:00
Merge "Restricting battery charging in retail demo mode" into oc-dr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
a36a5b81a3
@@ -3,3 +3,11 @@ import /vendor/etc/init/hw/init.wahoo.usb.rc
|
||||
on boot && property:ro.bootmode=usbradio && property:persist.sys.usb.usbradio.config=*
|
||||
setprop sys.usb.config "none"
|
||||
setprop sys.usb.config ${persist.sys.usb.usbradio.config}
|
||||
|
||||
# battery driver settings for the retail demo environment where
|
||||
# the device will be perpertually plugged in to a power source
|
||||
on property:sys.retaildemo.enabled=1
|
||||
write /sys/module/htc_battery/parameters/full_level_dis_chg 35
|
||||
|
||||
on property:sys.retaildemo.enabled=0
|
||||
write /sys/module/htc_battery/parameters/full_level_dis_chg 100
|
||||
|
||||
Reference in New Issue
Block a user