ADB Survival Guide for Android

adb devices

adb push myMusicFile.mp4 /sdcard/music

adb pull /sdcard/music/myMusicFile.mp4

adb -s emulator-5554 push myMusicFile.mp4 /sdcard/music

adb reboot

adb reboot-bootloader

adb install -r myApplication.apk

adb uninstall com.ssaurel.myapplication

adb shell am start -n com.ssaurel.myapplication/.MainActivity

adb shell am start -n com.ssaurel.myapplication/com.ssaurel.myapplication.MainActivity

adb shell

adb shell screencap /sdcard/myScreenshot.png

adb pull /sdcard/myScreenshot.png

adb shell screenrecord — time-limit 120 /sdcard/myVideo.mp4

adb shell input keyevent 26

adb shell input keyevent 82

adb shell pm list packages -f

adb logcat

adb logcat “*:W”

adb logcat -s MY_TAG: W

adb logcat -b radio

adb logcat | grep “com.ssaurel”

adb logcat -c

adb shell dumpsys

adb shell dumpsys battery

adb shell dumpstate -o /sdcard/myDump.txt

adb shell cat /proc/cpuinfo



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store