Nowadays, you can find an Android app for almost every job. But it wasn't always this way. Early Android users had to jump many hurdles to accomplish even basic tasks. One such limitation was having to use Android Debug Bridge (ADB) commands.

While many of those commands are irrelevant today, others have stood the test of time. You might use these commands when needed, but the entire process is also fun and helps you appreciate the Android platform better.

Let's look at some of the most useful ADB commands you should know as an Android user.

How to Establish an ADB Connection Between Your Phone and PC

Before getting to the list of commands, it is necessary to activate ADB commands between your phone and PC. To do so, first connect a USB cable to your phone and PC. Then you'll need to enable USB Debugging inside Developer options.

You can unlock this menu by tapping seven times on the Build Number inside the About Phone section of Settings. See our guide to USB Debugging for more info.

Next, download and install 15 Second ADB Installer on your Windows PC. If you're using macOS or Linux, see our guide to using ADB and Fastboot for instructions.

Installation Process of 15 Second ADB Installer

After the installation is complete, open the Command Prompt. To do this, type cmd in the Start menu's search box.

Launching Command Prompt Using Search

Now, type adb devices into the Command Prompt window and hit Enter. If everything is set up correctly, you’ll see your phone listed under the List of devices attached.

Entering ADB Devices in Command Prompt

Once you see this message, you are ready to test ADB commands on your phone. If for some reason, the setup doesn't work, you can troubleshoot the ADB connection.

5 Useful ADB Commands Worth Knowing

The commands listed below are helpful regardless of your level of expertise. Whether you are a beginner or an Android power user, these ADB commands will prove beneficial at some point or another.

1. adb reboot

Rebooting is the first fix that comes to mind when you're faced with an error on the phone. No matter which phone you have, there will come a time when you have to reboot it, perhaps forcefully. For example, your phone might freeze or display an error, prompting you to restart it.

This ADB command is a simple way to reboot your phone without even touching it. It can particularly come in handy in case your power button stops working, for whatever reason.

ADB Command to Reboot the Phone

2. adb install

Manually downloading and installing APK files is a common practice for many Android users. Due to various rules and regional restrictions, Google Play doesn't always offer the apps you want.

In such cases, you can download the APK on your PC and install it on your smartphone using this ADB command. This way, you won't have to transfer the file to your phone and install it from the phone's File Manager.

To use this command, add the APK file path at the end of the line and hit Enter. For example, if you want to install an APK file named Cortana, type in the following command, replacing the example path with the actual location of the file on your PC:

        adb install C:\Users\Username\Desktop\Cortana.apk
    

Keep the following in mind:

  • On Windows, you can easily get a file's path by holding Shift, right-clicking on the file, and choosing Copy as path. This will give you a full link to the location that you can paste into the Command Prompt. You can also choose Properties from the right-click menu and copy the Location, if you prefer.
  • It is best to rename the APK file to a short name, for convenience.
  • While entering the command, make sure it ends with .apk.
  • Be careful where you download APKs. Stick to safe APK download sites, and avoid anywhere shady that promises paid apps for free.
Installing an App through ADB Command

3. adb shell dumpsys iphonesybinfo

Your phone's IMEI number is a unique identification for the device. Therefore, it's a good idea to keep a record of the IMEI numbers of your phones for safety and legal purposes.

You can check and save the IMEI number of your device by dialing *#06# in your dialer app and taking a screenshot of it. Alternatively, you can use this ADB command on your PC. It will display the IMEI number in the Command Prompt, which you can copy and paste wherever you want for safekeeping.

If the command in the above heading doesn't work, here's another ADB command for grabbing your phone's IMEI number:

        adb shell "service call iphonesubinfo 4 | cut -c 52-66 | tr -d '.[:space:]'"
    
ADB Command to Check the IMEI Number

4. adb shell "cmd package list packages -3"

Most people know the pain of installing too many apps that end up hogging your phone's storage and RAM. But sometimes, looking for apps to uninstall can be a tiresome task. That’s where this little ADB command comes in handy.

Once you enter this command, you get a complete list of apps installed on your phone. The list gives you an overview of what may be hogging your phone’s memory. The next step is to look for those specific apps and uninstall them.

Alternatively, this command is also an easy way to save a list of all the apps on your phone for your own records. You might appreciate having this when moving to a new phone, for instance.

ADB Command to List All Installed Apps

5. adb reboot recovery

This adb command is slightly more advanced, so it's best to use it with caution. Recovery is similar to the BIOS setup in PCs. These are the advanced settings you get by pressing a particular key while your system boots. The most common use of Recovery is factory resetting a phone when you can't do it through the usual menu.

Android recovery mode page options

With most Android devices, you can enter the Recovery by pressing and holding certain key combinations. However, it can be confusing to remember the combinations of different phones. You can avoid all that trouble by simply using this command.

(Warning: You will lose all your data and apps by resetting your device. And if you play around with the other options in the Recovery, they can potentially brick your phone. Don't run these commands unless you're comfortable in these menus.)

Getting the Job Done With ADB Commands

Now you can let your inner geek out and enjoy running commands on your Android phone through your PC. This easy-to-use list of practical ADB commands will get you started.

Apart from their usefulness, these commands have a nostalgic and oddly satisfying feel to them, especially when you get them to work for the first time. But there are many more commands to discover once you get comfortable with the interface.