Commit graph

4 commits

Author SHA1 Message Date
George Lee
dada82957c health: fix soc path so enable proper throttling
Path was missing "/" thus thermal zone soc stays enabled regardless of
charging.

Bug: 188006020
Test: Local test to check soc's mode
Signed-off-by: George Lee <geolee@google.com>
Change-Id: I62ba233ddc05f2c8c0d3bcf4f97809f9c379a757
2021-05-28 19:38:51 +00:00
Stephane Lee
80c8b07636 Enable Battery Defender on gs101
Bug: 188110823
Test: Ensure that Dwell-Defend can trigger with 'setprop
vendor.battery.defender.threshold 61'

Change-Id: I4782e2c387b147fc48cf4134d27af8675964dc44
2021-05-18 18:48:49 +00:00
Stephane Lee
331796ed8d BatteryDefender: Explicitly set wireless path to reduce errors logs
For gs101 devices, we must detect whether a wireless charger exists at
runtime, otherwise we'd need to create separate Health.cpp for each
product in order to instantiate the wireless path correctly.

Test: Ensure battery defender triggers via wireless connection.
   Ensure there are no warnings for devices that do not have a wireless
   charger
Bug: 165954398
Change-Id: Ibba202293141c017d3048980b643a80b5fb57ca4
2021-05-05 19:39:49 +00:00
Robin Peng
c2b5ca99e3 Move slider into gs101 and <device>
from: 026342771c6642980cb4653b1ec4d857a5d8be54

Bug: 167996145
Change-Id: I2ebf7f019afed1cbe9b60dcd82581bd3a52fe109
2021-03-06 16:31:12 +08:00