I found that "Battery History" uses the class com.android.settings.battery_history.BatteryHistory but this class does not exist any more. It was in the repository platform/packages/apps/Settings.git before. I search the whole code base and couldn't find this class.

Has this file become not open-source any more and been put into some JAR files?

1 Answer
1

Class com.android.settings.battery_history.BatteryHistory has been removed. android.os.BatteryStats is used for the similar purpose instead. The SpareParts in the same checkout still uses the outdated BatteryHistory, so it didn't work.