Advertisement
metalx1000

Android ADB/Shell Battery Level

Feb 26th, 2023
622
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. #get Android Device Battery Level from adb/device shell
  2. cat /sys/class/power_supply/battery/capacity
  3. #or
  4. dumpsys battery|grep " level"|awk '{print $2}'
  5.  
  6.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement