mirror of
https://github.com/Evolution-X-Devices/device_google_walleye
synced 2026-01-27 15:51:28 +00:00
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>
14 lines
567 B
Plaintext
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
|