ADB-Commands-Cheat-Sheet
ADB-Commands-Cheat-Sheet
com
adb
Get the ADB version and all possible commands associated with ADB.
adb -s
Redirect commands to a specific device when many devices are connected.
adb -d
This command directs the command to a device connected via USB.
adb –d <command>
adb -e
adb –e <command>
adb devices
This is one of the most used ADB commands as it is used to check the list of the Android
devices connected to your computer.
adb devices -l
1/5
technastic.com
adb help
Displays the help documentation on all ADB commands.
adb root
adb version
Find out the version of the ADB driver installed on your computer.
adb reboot
Reboot your Android phone or tablet into the bootloader, fastboot, or recovery mode.
Reboot your Android device into the Fastboot or Bootloader Mode. The command is often
used when you want to flash the factory images or a custom recovery.
adb install
2/5
technastic.com
Usually, we transfer an APK file to our Android device and install it via File Manager. This
command makes it easy to sideload APK files directly from your computer. To be able to
do so, copy the APK file to the SDK platform-tools folder first. There are some variations
of this command for different conditions.
While you can install an APK on your Android devices using the above command, you
can use the command below to update or reinstall an app without deleting its data.
Some apps support installation on the SD card. The following ADB commands move an
app to the SD storage.
adb install –k <add the path of the .APK file on your computer>
adb uninstall
Uninstall an app from your phone or tablet.
Uninstall an app but keep its data and cache files using the ‘-k‘ parameter as shown
below.
adb usb
Find the Android device or emulators currently connected to your Windows, Mac, or Linux
computer.
adb logcat
See the log data of your Android device on your computer. You can also use parameters
like ‘-c‘ (clear) and ‘-d‘ (save) with the command.
Clear all existing logs on your Android phone or tablet. To save the logcat data on your
PC, use the following command.
adb start-server
Start the adb server in case it stops responding. It’s often used after killing the adb server
as described below.
3/5
technastic.com
adb kill-server
Kill the ADB server if it is not functioning properly. It’s similar to turning off our Android
devices to fix small issues.
adb sideload
Sideload software update.zip file to an Android device using your computer. If you have a
flashable update.zip, copy it to the ‘platform-tools‘ folder and execute the following
command. If the zip file has a different name, rename it to “update.zip” for convenience.
Alternatively, you can sideload or flash update zip packages using Android Recovery or
TWRP Recovery. For that, you will have to transfer the update.zip file to your device,
reboot your Android into recovery mode, and select the “Apply update from sdcard”
option.
adb pull
Download or pull files stored on your Android device to your computer. The pulled files
are saved to the ‘platform-tools’ folder.
To pull a file to a specific location or drive (D drive, for instance) on your PC, mention the
location path as shown below.
adb push
Push a file from your computer to your device. Please note that you’ll have to transfer the
file you want to push to the ‘platform-tools’ directory. For instance, to push a file to your
Android device’s SD card, use the following command.
adb backup //
Create or take a full backup of your Android to your computer.
adb restore //
adb bugreport
4/5
technastic.com
Diagnose issues on Android devices. Its execution can show you log data, dumpstate,
and dumpsys from your Android device on your computer.
adb jdwp
See the list of JDWP processes on your PC. JDWP means Java Debug Wire Protocol.
adb get-statе
Print the device state in the command window.
adb get-serialno
Find out the ADB instance serial number.
adb get-state
adb wait-for-device
This program tells ADB to wait and keep the connection on hold until the next command
is issued.
5/5