summaryrefslogtreecommitdiff
path: root/health
diff options
context:
space:
mode:
authorStephane Lee <stayfan@google.com>2020-01-07 15:12:16 -0800
committerStephane Lee <stayfan@google.com>2020-01-14 18:39:32 -0800
commit6349b5460e62b8ad16b0a35a5b7dc285ad819d21 (patch)
treedfee906cdbc86610a7cb761969a9df9ec94381d1 /health
parente904a3477bdce0ce773ba5adf2b02ae663b8bfed (diff)
downloadbonito-6349b5460e62b8ad16b0a35a5b7dc285ad819d21.tar.gz
Replace /persist to /mnt/vendor/persist
Test: Ensure that contents of the file paths modified do not change Bug: b/143853986 Change-Id: Ifc73eef14966455624df88aafe7f6250d0e97da5
Diffstat (limited to 'health')
-rw-r--r--health/HealthService.cpp2
-rw-r--r--health/LearnedCapacityBackupRestore.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/health/HealthService.cpp b/health/HealthService.cpp
index 7d780f16..cfbe339f 100644
--- a/health/HealthService.cpp
+++ b/health/HealthService.cpp
@@ -63,7 +63,7 @@ static BatteryThermalControl battThermalControl("sys/devices/virtual/thermal/tz-
static BatteryMetricsLogger battMetricsLogger(kBatteryResistance, kBatteryOCV);
static LowBatteryShutdownMetrics shutdownMetrics(kVoltageAvg);
static CycleCountBackupRestore ccBackupRestoreBMS(
- 8, kCycleCountsBins, "/persist/battery/qcom_cycle_counts_bins");
+ 8, kCycleCountsBins, "/mnt/vendor/persist/battery/qcom_cycle_counts_bins");
static DeviceHealth deviceHealth;
static LearnedCapacityBackupRestore lcBackupRestore;
diff --git a/health/LearnedCapacityBackupRestore.cpp b/health/LearnedCapacityBackupRestore.cpp
index cfea5c04..1f307070 100644
--- a/health/LearnedCapacityBackupRestore.cpp
+++ b/health/LearnedCapacityBackupRestore.cpp
@@ -23,7 +23,7 @@ namespace health {
static constexpr char kChgFullDesignFile[] = "sys/class/power_supply/bms/charge_full_design";
static constexpr char kChgFullFile[] = "sys/class/power_supply/bms/charge_full";
-static constexpr char kSysCFPersistFile[] = "/persist/battery/qcom_charge_full";
+static constexpr char kSysCFPersistFile[] = "/mnt/vendor/persist/battery/qcom_charge_full";
static constexpr int kBuffSize = 256;
LearnedCapacityBackupRestore::LearnedCapacityBackupRestore() {}