How to Setup and use ADB (Android Debug Bridge)?

Affiliate disclosure: In full transparency – some of the links on our website are affiliate links, if you use them to make a purchase we will earn a commission at no additional cost for you (none whatsoever!).

If you’re on this page, I’m sure you’re here regarding the setup and use of the Android Debug Bridge and got a doubt that surely rhymes with”How to Install Android Debug Bridge?”. It’s one of the “less-used” features you get with any Android Operated device.

The thing about android is that it has so many hidden features and control options that more than half of us don’t even use a quarter of those features in our lifetimes.

The other reason obviously is that those “features” aren’t always as “safe” or “simple” to begin with, messing them up might harm the device and hence those features are protected in one way or another.

So one such feature I’m discussing right here in this article is How to Install Android Debug Bridge? 

What is Android Debug Bridge?

Android Debug Bridge is basically a command-line tool that you get with the Android-powered devices. In simpler language, what it enables you to do is you can control your android device from your computer over USB.

This lets you run command-based strings on your cell device which in turn lets you get a hold over several different features on your android device. So the very first step towards unlocking those features is installing ADB and that’s what this article is about.

How to Install Android Debug Bridge?

Head over to the Android Studio Page and scroll down till you get the download links for “command line tools” and then download the package.

Basically this package contains quite a number of things but we won’t be needing all of them, so run the .exe file from the package and select just the “Android SDK Platform-tools”. That’s what we need to install so select that and click on the install button.

You must have noticed a “USB Debugging” option on your cell phones and wondered what on Earth it was there for, finally you’re being answered. So go to your Settings>About phone. And scroll down to the very bottom where you should find the “build number” option. Tap this button 7 times, it enables the developer options.

Now hit the “back” button one time, it would bring you back to your “settings” screen and you should see that the “developer option” has miraculously emerged over there so tap on that.


On the next screen, you’d find the “USB Debugging” option laid out there clearly, just turn it on.

Now browse to the location where you had installed the Android SDK and go to the “Platform-tools” folder. Inside this folder, just hold shift +right click and then click on “open command window here”.

Now connect a USB cable to your computer and cell phone, and then click on the “Allow USB Debugging” option on your cell phone. You need to run the following command – ADB devices

This command brings up the device list on your system. Meaning all the devices which are available for USB debugging.

If your device is being shown over there it’s great. You’ve just solved How to Install Android Debug Bridge successfully. If your device isn’t being shown, in that case just update the drivers for your device.

You can use the following string to find your device driver on Google:- Device name USB Drivers download.

Or just go to XDA forum and search for the same query and hopefully you’ll get your drivers.

Done! So now that you’ve Android SDK on your system and your cell phone is connected for USB Debugging to your computer, let me share some command lines you might find useful.

ADB logcat – This command lets you view the logs of your android device, comes in handy while debugging your device.

ADB shell – If you need a command line on your device, this is the command to type.

ADB push D:\filepath /sdcard/file – This is the copy-paste/transfer command. It’s used to copy a file from your computer to your device. Here a certain file located at D drive/filepath is transferred to the “sdcard”.

adb shell command – Used to run the shell command.

adb install C:\app.apk – This can be used to install apps directly from your computer to your cell phone. Here this command will install an apk located at your C drive directly on your cell phone.

adb uninstall package.name – This command is used to uninstall packages from your android device without touching the device directly from the computer. Here the “package.name” application is removed from your system. Note that the “app name” isn’t the package name. It generally is something like com.rovio.angrybirds.

adb pull /sdcard/file C:\file – Just like there was the “transfer file from computer to android” command similarly this command is used to copy a file from your sd card to your computer. Here the file from the “sdcard” is being copied to C drive of the computer.

Final Words:-

So that was all I had on How to Install Android Debug Bridge folks. Hope this piece helped. If it did I’d love to get your feedback in the comments section.

Also, make sure that you aren’t running any command you aren’t really sure about because wrong commands can mess your device up pretty good. If you’re unsure about a command then don’t run it before Googling it.

Of course, you can always leave a comment here with any query or doubt and I’ll try my best to answer that to the best of my knowledge.

And obviously I wouldn’t mind if you hit the share button and share this on your social media.

evanderek

Leave a Comment