4

In Android 6.0, we can the detailed battery usage for each app as shown below. Is there a way to get these numbers programmatically within this app? I tried to use command "dumpsys batterystats --charged MY_APP" and parse the returned values, but this command can only be run by system app or from adb. Is there way to get similar data from my own app programmatically?

Detailed battery usage

Zhihua Wen
  • 51
  • 4

0 Answers0