Allow USB Debugging | Authorize ADB Commands on Android

by | September 10, 2019

USB Debugging is one of the most powerful features built into Android by Google. That is the reason why Google has not made is straightforward and easy to enable USB debugging on Android devices. If things are not handled properly, a lot of things can easily go wrong. That is why it is really important that you properly set up USB Debugging on Android to authorize ADB commands from your computer.

allow USB Debugging authorize adb android

ADB, aka Android Debug Bridge, is a powerful tool which can benefit the user in a lot of ways if used properly. For instance, it can help you to recover the data from your Android device if the device is in an unstable state. In this guide, we will tell you how you can properly authorize ADB commands on your Android device using a Windows PC.

How to Authorize ADB Commands on Android

Before getting straight into the process of authorizing your device to accept ADB commands from your computer, it is always a good idea to know what you are getting into.

Why Authorize ADB?

Without you authorize ADB commands on your Android device, your device will not accept any of the ADB commands. But why is there such a security mechanism in place? The reason is that ADB is a powerful tool which can almost replace the root profile on an Android device. The root on Android is like an administrator account in Windows by which you can perform pretty much anything on your Android device. Similarly, with ADB, you can perform some pretty advanced/powerful thing on your Android.

That is the reason why, to prevent misuse of the ADB protocol, Google has placed a security mechanism in place. The user would first need to manually authorize a computer in order for the computer to be able to issue ADB commands to the Android device. This step has to be done only one and your device can then start accepting ADB commands from that computer thereon. You can also revoke the permissions of a computer anytime you wish to.

How to Enable ADB on Android devices

Enable Developer Options

The first step is to developer options on your Android device. For this, go to Settings > About Phone and look for an option called Build number. In some device, this may be found under a setting called Software information.

Once you find that option, keep tapping on the Build number option repeatedly until you see the text You are now a developer.

authorize-adb-android (1)

Enable USB Debugging

Next, go to the main screen of the settings and look for an option called Developer options. In some devices, this may be found under another option called System or something similar.

Inside Developer options, scroll down until you find the Enable USB Debugging option. When you find it, tap on it and enable the same.

How to allow USB Debugging on Android

This next step is where we actually are going to allow running ADB commands on our Android devices. Before beginning, you need to have the latest ADB and Fastboot drivers installed on your computer. To do this, follow the below guide. Please note that this step is mandatory.

Once you have installed the necessary ADB and Fastboot drivers, follow the below steps:

  1. Go to the folder where ADB and Fastboot drivers are installed on your computer.
  2. Open a command prompt from inside this folder. To do this: Hold down Shift Key and Right-click on the empty space inside the folder and then select ‘Open command window here‘ or ‘Open PowerShell window here‘.
  3. Connect your Android device to your computer.
  4. Make sure the device is unlocked and the screen is lit.
  5. Run the following command in the command prompt or PowerShell window:
    adb devices
  6. Once you run the above command, you should now get a prompt on your Android device asking if you want to allow USB Debugging. Tap on ‘Always allow from this computer’ and press OK.authorize-adb-android (4)
  7. Once the above step is complete, you should see your device is listed in the command prompt. Allow-USB-Debugging-ADB-Devices
  8. Done!

Now you have successfully set up your Android device to Allow USB Debugging and authorized it to receive ADB Commands from your computer.

Tags
FOLLOW US
Facebook Twitter Instagram

An engineer by day and a blogger by night, Vish is passionate about all things tech. His day starts with a hot cup of coffee and a few crunchy bytes of tech news and ends with him falling asleep in front of his laptop while authoring tech content, with F.R.I.E.N.D.S. playing in the background.

Leave a Comment