summaryrefslogtreecommitdiffstats
path: root/healthd
diff options
context:
space:
mode:
authorYifan Hong <elsk@google.com>2018-02-01 13:44:23 -0800
committerYifan Hong <elsk@google.com>2018-02-01 13:51:04 -0800
commit43f731ae459ebecbed0042d17addf77413ae05fe (patch)
tree0e76b58d7efa32dd6204af7132d0928bccac7276 /healthd
parent9e2465f52f6c0ffc92a67b32324e11a82eb1f870 (diff)
downloadsystem_core-43f731ae459ebecbed0042d17addf77413ae05fe.tar.gz
system_core-43f731ae459ebecbed0042d17addf77413ae05fe.tar.bz2
system_core-43f731ae459ebecbed0042d17addf77413ae05fe.zip
healthd: Remove access to /sys/class/power_supply/battery/batt_vol and batt_temp
These are custom paths from early Android devices that the framework used to read, and that code was copied into healthd. Removed because this is not defined in upstream kernel. Change-Id: I375a8a62610c1235d82c1f27568437b16e0f96a8 Fixes: 72824944 Test: health 2.0 VTS test
Diffstat (limited to 'healthd')
-rw-r--r--healthd/BatteryMonitor.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/healthd/BatteryMonitor.cpp b/healthd/BatteryMonitor.cpp
index de48adbd3..2553ffa30 100644
--- a/healthd/BatteryMonitor.cpp
+++ b/healthd/BatteryMonitor.cpp
@@ -535,12 +535,6 @@ void BatteryMonitor::init(struct healthd_config *hc) {
POWER_SUPPLY_SYSFS_PATH, name);
if (access(path, R_OK) == 0) {
mHealthdConfig->batteryVoltagePath = path;
- } else {
- path.clear();
- path.appendFormat("%s/%s/batt_vol",
- POWER_SUPPLY_SYSFS_PATH, name);
- if (access(path, R_OK) == 0)
- mHealthdConfig->batteryVoltagePath = path;
}
}
@@ -590,12 +584,6 @@ void BatteryMonitor::init(struct healthd_config *hc) {
name);
if (access(path, R_OK) == 0) {
mHealthdConfig->batteryTemperaturePath = path;
- } else {
- path.clear();
- path.appendFormat("%s/%s/batt_temp",
- POWER_SUPPLY_SYSFS_PATH, name);
- if (access(path, R_OK) == 0)
- mHealthdConfig->batteryTemperaturePath = path;
}
}