2023 - Android Cheat Sheet - ADB
2023 - Android Cheat Sheet - ADB
Connectivity
adb start-server
Start the adb server on your computer. Will be executed automatically.
adb kill-server
Close local adb server on your computer.
adb devices
Lists all devices in the network with enabled adb client.
adb disconnect
Disconnect from a specific device.
Android Cheat Sheet
Android Debug Bridge (ADB)
File Handling
adb push <local filepath> <device filepath>
e.g.: adb push mybootanimation.zip /oem/media/bootanimation.zip
Transfers a local file from your computer to the specified filepath on the device
APK Handling
adb install <apk path>
e.g.: adb install myapplication.apk
Installs a local apk on the connected device
Debugging
adb logcat
Prints Android logs in your local shell. Can also be piped into a file.
adb bugreport
Creates a comprehensive bugreport from the connected device and saves it to your
computer.
Android Cheat Sheet
Android Debug Bridge (ADB)
Device Handling
adb root
Gives you additional right. For example to access the /system partition on the device.
adb remount
Remounts the /system partition to be writable
adb reboot
Reboots the connected device
adb shell
Connects you to the shell of the connected device
Device Shell
adb shell input text <any text>
Emulates keystrokes on the device. No need to type things out on your device. Just copy and
paste it into your shell.
EMT
ERIA