Must Know Terminal Commands For Android Debug Bridge

Must Know Terminal Commands For Android Debug Bridge

If you are keenly interested in fixing small by yourself, then you would have heard about ADB or Android Debug Bridge! It’s an efficient and highly reliable tool which is used equally by professionals and novices! In fact several guides and advanced Android tutorials also utilize this amazing tool for debugging small glitches! Also, Android Debug Bridge is extremely helpful when your Android device is working abnormally! So, let’s get started and know how you can work on the same! But first learn to install ADB on Windows!

Installing ADB On Windows System

Installing ADB is extremely simple! All you have to do is download the standalone ADB zip file and extract the same! That’s it! Now open command prompt and use the command given below to navigate through ADB.

cd c:\ADB

Now hit enter and connect your device with the help of USB so that you can start working! Now let’s get started and know about the commands to help you!

1. Initiate or kill functioning of ADB server

Yes, it is quite important to initiate and terminate the functioning of server before you start working on the same! To start use command:

ADB start-server

And to stop it, use:

ADB kill-server

kill functioning of ADB server
Source: Androidcentral.com
See Also:-
Android Cheat Sheet: Top 12 Hidden Phone CodesIf you think, you know your smartphone in and out. Well you’re wrong! We bet you have no idea about...

2. How To know if your Android device is connected

In order to perform any action, you’ll need to check if your Android device has been linked to your PC. To check the same, you need to enter the following Android terminal command:

ADB devices

3. Copy Files from PC to Phone and Vice Versa

Though there are apps available for this, you can move your files from PC to Phone and the other way round using the following commands:

From computer to PC: ADB push [source] [destination]

From phone to PC: ADB pull [source] [destination]

Do not forget to add actual source and destination instead of [source] and [destination].

4. Install or Uninstall applications

If you wish to install or uninstall any apk file, you can do so with single line Android terminal command that goes as:

Install: ADB install “path/to/file.apk”

Uninstall: ADB uninstall <package-name>

5. Creating backup

There are several ways with which you can take backup on your phone, but doing so with cmd mode, all you have to do is type a command that is given below!

ADB backup -all

Creating backup
Source: makeuseof.com

6. Reboot Android phone

As we know that there are three ways of rebooting an Android device, namely recovery mode, bootloader mode and fastboot mode! You can get these done via commands given below!

ADB reboot-recovery

ADB reboot-bootloader

ADB fastboot

See Also:-

7. Know the serial number of the device connected

You can determine the serial number of the phone that is being linked to your device by entering the Android terminal command given below:

ADB get-serialno

 Know the serial number.
Source:makeuseof.com

However, there are alternative methods of doing so. For instance you can just dial “*#06#” or remove the battery if possible to find out about the serial number of your device or you can refer to the warranty card that has been given to you while buying this device!

There is much more you can do with Android terminal commands and Android Debug Bridge! To know more about them, stay tuned to our blogs! In case you have any views regarding this, do let us know in the comments section below!

Varsha Tiwari is a blogger at Systweak. She loves reading, traveling, and trying new cuisines. In spare time, she plays Table Tennis or strolls around listening to music. Besides these, she is also interested in playing video games and teaching underprivileged students.

Show your support

Clapping shows how much you appreciated Varsha Tiwari story.

0 thought on “Must Know Terminal Commands For Android Debug Bridge”

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.