System
ADB Debugging
Package Manager
Logcat
Wireless
File Manager
ScreenShot
Network
logcat
This command is used to dump service and deal with batttery configuration
adb shell dumpsys -l
Only list services, do not dump them.
adb shell dumpsys -l
adb shell dumpsys battery
Gets Android device battery info
adb shell dumpsys battery
adb shell dumpsys package packages
list info on all apps
adb shell dumpsys package packages
db shell dumpsys battery set level batteryLevel
Changes the battery level
db shell dumpsys battery set level 65
adb shell dumpsys battery set status 0|1|2|3
change the status to unknown, charging, discharging, not charging or full.
adb shell dumpsys battery set status 3
db shell dumpsys battery reset
resets the battery
db shell dumpsys battery reset
adb shell dumpsys battery set usb 0|1
Changes the status of USB connection to On/Off
adb shell dumpsys battery set usb 0
adb shell dumpsys
adb shell dumpsys
Frequently Asked Questions
This command is generally used to dump all the services.
To chnage the charging status of your battery, use the adb shell dumpsys battery set status 0|1|2|3 command.
It does not really affect your battery and just mocks it.