Battery Status: Android

Budhdi Sharma
Android Champ
Published in
2 min readDec 21, 2020

--

Battery status

if you want to know the battery status or hardware status of the android device, here you can see all the details using the ADB.

You can dump the battery status with the following command:

adb shell dumpsys battery

When I run the command, I get the following output:

battery status

although it is in the output, it temperature: 250is the battery temperature. The
value is 10 times the temperature (Celsius), so 250it 25 ℃is a good idea.

The service class that manages battery status is BatteryService .
Battery status data is defined in HealthInfo.

Similarly, if want to check the audio status you can dumsys the audio using the following command:

adb shell dumpsys audio

Similarly, you can find other service dumpsys using the settings command.

adb shell dumpsys settings

I hope you enjoyed the small session. If you have any comments or questions or suggestions, please join the forum discussion below!

Thanks for the support( follow or Clapp)!!!!!

--

--

Budhdi Sharma
Android Champ

As an AOSP developer, I specialize in creating robust framework and system applications that seamlessly integrate with embedded systems on various SOCs