How To Connect Android Phone To PC Using ADB?

ADB tutorial

ADB stands for Android Debug Bridge, a system to communicate and control an Android device via command line. Although it is thought more than anything for developers, it is so versatile that it is also useful for the end-user. We have often seen that ADB serves as an alternative to root to grant special permissions to applications. Also to install system updates manually or even record the screen on video without installing anything. Best of all, today using ADB is available to anyone.

To simplify, we will base our indications on ADB for Windows. Although as a multiplatform system, ADB is also available for Mac and Linux, the indications being in any case practically identical, with the peculiarities of each system.

#1 Install ADB

First of all, you need the ADB executable. Formerly the most normal thing was to download the Android SDK, which includes it. But today it is neither necessary nor recommended unless you plan to develop applications for Android. Instead, you can download only the executables, which is less than only 6 MB.

ADB

Here, I install adb windows 10. The download is a ZIP file that contains ADB.exe (the file that interests us) and a few more. Unzip all its contents into a folder on your hard drive easily accessible. For example, C: \ ADB is a good option. Today they are not usually necessary, but you may need ADB USB drivers. These drivers are installed automatically with the official application, but generally universal USB drivers like these from Koush should work.

#2 Activate USB Debugging

ADB D comes from Debug or debugging, and it effectively needs your mobile to have USB debugging enabled to work. And to activate USB debugging you first need to activate the options for developers. It sounds complicated, but it’s really a minute.

ADB

On your mobile, go to Settings and About the phone. From here the route varies greatly from one layer of Android and version to another, but your goal is to reach the place where the Build Number or Build number is displayed. It is possible that it is within a submenu (in the latest versions of Samsung it is in software information ).

With the developer options active, go back to the Android settings and you will see that there is a new item in the list. Indeed, they are the developer options. Enter them and look for the USB Debugging list, which you must activate.

A pop-up window will ask for confirmation and then you have your mobile-ready. .. for now. You must return to it in the next step to accept the connection from the computer you are using to connect.

#3 Connect the phone to the PC with its cable

Connect the phone to the PC using USB cable and wait for the drivers to finish configuring. Unlock the phone and you should see a warning asking if you allow the connection from the mobile.

Note that you can receive two types of notices: the data connection of the phone is only to access the data (photos, etc.) and is optional for our case. The one you should allow is USB debugging. Optionally, if you are going to do this frequently, you can check Always allow so I don’t ask you again.

With this, you have the mobile-ready, this time really good. We’re almost done, and the rest of the process will be from the PC command line.

#4 Now Start ADB

We return back to the PC. Open a command line in the folder where you unzipped the ADB ZIP. In Windows, you must use Start> Run and type CMD. To go to the folder, if it is C: \ ADB, type cd C: \ ADB on the command line.

ADB

When you are already in the folder, type ADB devices. If all went well, a single device will appear next to the word and device. Keep in mind that the device name is a code that means nothing.

ADB

Congratulations, you have your mobile phone ready and connected by ADB to your PC. If you want to do a simple test by typing adb shell screencap -p /sdcard/captura.png. This will take a screenshot and save it to your mobile. You can check it in the gallery of your mobile. Another option is to write adb logcat and see all the messages written in the Logcat (something like the log) of Android.

I hope you like this tutorial and pls share your comments regarding this post. Thank you.

Leave a Reply