Best 20 ADB Commands, Every Android Users Should Know

ADB Android for Mobile

Well, you may be familiar with the Android Debug Bridge (ADB), if you've been using Android for a while. ADB is a great tool for a developer for Android that helps users perform different actions via commands. ADB is a way to command your phone to some tasks.

Android users usually believe that developers use ADB commands only, but it's a myth and even a non-developer can easily use only a handful of Android Debug Bridge commands. In this section, we share some of the best ADB commands that can help you be more productive. So, check out those ADB Commands below.

Best 20 ADB Commands, Every Android Users Should Know

#1 Start ADB Server

Well, you have to start the ADB Server before you execute some cool commands. You can interact with your Android device once you start the ADB Server. Before starting the ADB Server, make sure that your Android device is connected to the computer. To Start ADB Server, you can input the following command.

adb start-server

#2 List all Connected Devices

Users should see if the ADB installer works or not after connecting Android devices. In order to confirm that, users must ensure that ADB displays the connected devices or not. So, users simply have to enter the command below to list Android devices connected.

adb devices

#3 Know the Current State of the Device

This command is useful if your Android device's touch response doesn't work. You are able to determine if your device is in offline, bootloader or device mode with this command. You can see Android state as 'Device' for a normal condition. You can use the following adb command.

adb get-state

#4 Get Android’s Serial Number

Android has few apps which tell the serial number. Most apps, however, require root access. Because not everyone has a rooted device, to know the serial number, using an adb command sounds nice. This command tells you of the connected device serial number.

adb get-serialno

#5 Create Full Backup

Android offers many options to users to create a full smartphone backup. These backups are however normally stored in telephone storage. So all your backups will be removed if you choose to reset your device for any reason. However, you can create a backup of the smartphone on your computer with the Android shell commands below.

adb backup -all -f /backup/location/file.ab

#6 Restore Backup

It's time to restore it, after you have created a backup. It is super easy to restore the phone backup using ADB commands, and the command given below only needs to be entered.

adb restore < backup-file-location >

#7 Installing Multiple Apps

Manual installation is the best way if you try to install one or two applications. However, you need to take ADB help if you have more than 20 applications to install. You can easily add several APK files to your Android smartphone by using ADB. You can install multiple apk files on Android using the adb devices command given below. Ensure that your file destination changes the 'Folder-path'.

for %f in (< folder-path >\*.apk) do adb install "%f"

#8 Uninstall App

Some bloatwares don't uninstall if your device isn't rooted. However, adb commands allow you to uninstall these system apps. You must execute the following command to uninstall an app. However, please ensure that the actual package replaces the "package-name".

adb uninstall < package-name >

#9 Record Screen

On the Google Play Store, you will find tons of screen recording apps. These screen capture tools often contain few bugs and are very annoying when ads are displayed. In addition, screen recorders from other parties put watermarks on your videos. All the troubles end with ADB, however. To record the Android display, you can use ADB. You simply have to enter the command given below without using an application to record a screen. Before executing the command, make sure to change 'Folder-path' and 'filename.'

adb shell screenrecord < folder-path/filename.mp4 >

#10 Get System Information

All commands you can use with dumpsys to gather information are listed in the command above. You can use this command to get the most accurate information about hardware or software later.

adb shell dumpsys | grep "DUMP OF SERVICE"

#11 Take Screenshots

Just like recording the Android screen, you can also take a quick screenshot using ADB commands. You won't need to install a third party app if your smartphone doesn't come with the integrated screenshot taker. You must take a screenshot of your Android using the following command. Before executing the command, make sure you replace "/path / to / screenshot" for your destination path.

adb shell screencap -p

https://r4f2t5w9.rocketcdn.me/path/to/screenshot.png

#12 Reboot Android Into Recovery Mode

You must enter the recovery mode if your Android fails to boot. In order to reach recovery mode, Android users need to make use of some key combination. However, an ADB command is available to force your Android into Recovery mode. The code below can be used for Android Reboot in Recovery Mode.

adb reboot-recovery

#13 Copy Files from Phone to Computer

It's quite easy to copy files from phone to computer. However, if you still choose to use the ADB command, you will need to copy files from a smartphone to the computer using the following command below. Ensure that the actual file paths replace the 'Source' and "Destination."

adb pull [source] [destination]

#14 Reboot Android Into Bootloader

It's quite easy to copy files from phone to computer. However, if you still choose to use the ADB command, you will need to copy files from a smartphone to the computer using the following command below. Ensure that the actual file paths replace the 'Source' and "Destination."

adb reboot-bootloader

#15 Display the log data on the screen

You will need to try the ADB command given below when you are looking for an ADB command for log data to display in the screen. All log data will be displayed on the screen by this command.

adb logcat

#16 Wait before executing a command

You will have to use the command if you're searching for an ADB command which can be used to program delay before the next command. When your device is ready, this command automatically executes the next.

adb wait-for-device

#17 Flash zip packages

You can then flash zip packages directly from your custom recovery if you have a rooted smartphone and deal with zip packages. Nearly everyone, including the TWRP, supports the custom recovery. The command is here.

adb sideload (path to update.zip)

#18 Pull Files from Android to Computer

It's very similar to ADB's copy paste command. Basically, the command pulls all files saved on your device and stores them on your computer. The ADB command to pull any Android files to a PC is here.

adb pull [mention the file path on device] [mention the destination file path on your Windows]

#19 Copy Files from Computer To Android

Just as with the pull command, you can use the push command to transfer files from your smartphone computer. So here is the command to move a file to your device from your computer.

adb push [mention the file path on computer] [mention the destination file path on your Android]

#20 Stop ADB Server

After all your works, this is the final command you must enter. To stop the ADB server you have started in the very first step, enter the following command. The command to stop ADB server can be entered below.

adb kill-server

This is it! This is it! This is one of the most efficient ADB commands a non-developer can run. These commands help you to better control your Android device.