ronnie
2022-10-23 e7168d9f5b4f6252831380a001a8a9a3b2d32363
set battery 100% default
1 files modified
9 ■■■■■ changed files
android/system/core/healthd/BatteryMonitor.cpp 9 ●●●●● patch | view | raw | blame | history
android/system/core/healthd/BatteryMonitor.cpp
....@@ -72,7 +72,7 @@
7272 props->batteryStatus = BATTERY_STATUS_UNKNOWN;
7373 props->batteryHealth = BATTERY_HEALTH_UNKNOWN;
7474 props->batteryPresent = false;
75
- props->batteryLevel = 0;
75
+ props->batteryLevel = 100;
7676 props->batteryVoltage = 0;
7777 props->batteryTemperature = 0;
7878 props->batteryCurrent = 0;
....@@ -210,9 +210,10 @@
210210 else
211211 props.batteryPresent = mBatteryDevicePresent;
212212
213
- props.batteryLevel = mBatteryFixedCapacity ?
214
- mBatteryFixedCapacity :
215
- getIntField(mHealthdConfig->batteryCapacityPath);
213
+ //props.batteryLevel = mBatteryFixedCapacity ?
214
+ // mBatteryFixedCapacity :
215
+ // getIntField(mHealthdConfig->batteryCapacityPath);
216
+ props.batteryLevel = 100;
216217 props.batteryVoltage = getIntField(mHealthdConfig->batteryVoltagePath) / 1000;
217218
218219 if (!mHealthdConfig->batteryCurrentNowPath.isEmpty())