adb uninstall com.test.app adb uninstall -k com.test.app #Keep the data and cache directories around after package removal.
adb shell pm list packages
1 2 3 4 5 6 7 8 9
adb shell pm list packages adb shell pm list packages -f #See their associated file. adb shell pm list packages -d #Filter to only show disabled packages. adb shell pm list packages -e #Filter to only show enabled packages. adb shell pm list packages -s #Filter to only show system packages. adb shell pm list packages -3 #Filter to only show third party packages. adb shell pm list packages -i #See the installer for the packages. adb shell pm list packages -u #Also include uninstalled packages. adb shell pm list packages --user <USER_ID> #The user space to query.
Notes: Stop the screen recording by pressing Ctrl-C, otherwise the recording stops automatically at three minutes or the time limit set by --time-limit. adb shell screenrecord --size <WIDTHxHEIGHT> Sets the video size: 1280x720. The default value is the device's native display resolution (if supported), 1280x720 if not. For best results, use a size supported by your device's Advanced Video Coding (AVC) encoder.
adb shell screenrecord --bit-rate <RATE> Sets the video bit rate for the video, in megabits per second. The default value is 4Mbps. You can increase the bit rate to improve video quality, but doing so results in larger movie files. The following example sets the recording bit rate to 5Mbps: adb shell screenrecord --bit-rate 5000000 /sdcard/demo.mp4
adb shell screenrecord --time-limit <TIME> Sets the maximum recording time, in seconds. The default and maximum value is 180 (3 minutes).
adb shell screenrecord --rotate Rotates the output 90 degrees. This feature is experimental.
adb shell screenrecord --verbose Displays log information on the command-line screen. If you do not set this option, the utility does not display any information while running.
dump
dumpstate
1 2
adb shell dumpstate adb shell dumpstate > state.logs #dumps state to a file
adb shell dumpsys battery Notes: A mobile device with Developer Options enabled running Android 5.0 or higher. adb shell dumpsys batterystats collects battery data from your device Notes: Battery Historian converts that data into an HTML visualization. STEP 1 adb shell dumpsys batterystats > batterystats.txt STEP 2 python historian.py batterystats.txt > batterystats.html adb shell dumpsys batterystats --reset erases old collection data adb shell dumpsys activity