Files
device_google_walleye/init.common.usb.rc
yihsiang_peng b6789eb647 Restricting battery charging in retail demo mode
Writing an upper threshold value of 35% for the battery level when
the device goes into retail demo mode.

Bug: 38105321
Change-Id: I21fd84cdd367914387749c4faa403cdeb50edd13
Signed-off-by: yihsiang_peng <yihsiang_peng@htc.com>
Signed-off-by: Yueyao Zhu <yueyao@google.com>
2017-06-21 18:26:31 -07:00

14 lines
567 B
Plaintext

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