diff options
| author | Jack Wu <wjack@google.com> | 2020-03-05 17:17:06 +0800 |
|---|---|---|
| committer | Vincent Wang <vincentwang@google.com> | 2020-03-05 10:35:52 +0000 |
| commit | 9ac1a03c1843dcf3cc60f63afecbfe13122a6d64 (patch) | |
| tree | 909badbab3172293b899f96463471a5155ea2999 /init.hardware.rc | |
| parent | 6ec6b5bae5376a6f5de2a3d2bf462e52aa0c1176 (diff) | |
Enable the battery defender
Battery defender aims to extend the life of the battery when a device
is plugged in for too long (2 weeks).
Test: Set BatteryDefender.h constructor thresholds to 1 minute.
Ensure that the SOC charge thresholds change to 60/70
when connected to power for 1 minute.
Bug: 146318912
Signed-off-by: Jack Wu <wjack@google.com>
Change-Id: I47d21c5c557a1f478b6d5fa26c02b81f32432d3b
Diffstat (limited to 'init.hardware.rc')
| -rw-r--r-- | init.hardware.rc | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/init.hardware.rc b/init.hardware.rc index 051dea16..7313f382 100644 --- a/init.hardware.rc +++ b/init.hardware.rc @@ -142,6 +142,10 @@ on init && property:vendor.skip.init=0 # Property used by vintf for sku specific manifests setprop ro.boot.product.hardware.sku ${ro.boot.hardware.sku} + # Battery Defender + chown system system /sys/devices/platform/soc/soc:google,charger/charge_stop_level + chown system system /sys/devices/platform/soc/soc:google,charger/charge_start_level + on late-init setprop vendor.thermal.config thermal_info_config.json chown system system /sys/devices/virtual/thermal/tz-by-name/mb-therm-monitor/trip_point_0_temp @@ -804,12 +808,6 @@ on property:sys.retaildemo.enabled=1 setprop persist.vendor.charge.stop.level 35 setprop persist.vendor.charge.start.level 30 -on property:persist.vendor.charge.stop.level=* - write /sys/devices/platform/soc/soc:google,charger/charge_stop_level ${persist.vendor.charge.stop.level} - -on property:persist.vendor.charge.start.level=* - write /sys/devices/platform/soc/soc:google,charger/charge_start_level ${persist.vendor.charge.start.level} - # For Japan radio builds, always enforce camera shutter sound # Since this property is read by the audio server in system service, # it should be written by the system init. |
