In this article, we will be sharing with you all a guide on How to Fix an Unauthorized Device with ADB Commands. ADB Commands form a crucial step when it comes to android customization processes.
Be it Rooting Your Android Phone, Installing TWRP Recovery, or Flashing firmware, all of these processes and many such others require ADB Commands. Now just like any other mechanism, this too comes with its own set of flaws.
While using ADB, you might encounter an error named Unauthorized Device Error. This error occurs when you haven’t given the authorization permission. Do not panic if you are getting this error, following the below guide will help you fix it easily.
The major reason for unauthorized device error is in the name itself. The error takes place when you have not given authorization to the connection.
If you are thinking that the culprit would have been the outdated USB Drivers or missing ADB or Fastboot files, then you are wrong my friend. This issue comes only due to a lack of authorization.
So if you are getting this error, go ahead and try out the below easy solution to fix unauthorized device with adb commands.
Here is a step by step easy guide on how to fix an Unauthorized device using ADB commands –
Step 1. Download and Install Android SDK Platform Tool
Note that you should always download these platform-tools from a reliable source like the Play Store Store and not from any third-party sources.
After the download is over, extract the file to any location on your PC and you will get your ADB and Fastboot Files.
Step 2. Enable USB Debugging
Once you have your adb and Fastboot files, go ahead to Enable USB Debugging. For this, you will have to –
- Go to Settings > About Phone > Tap on Build Number 7 times. For Xiaomi devices, the users will have to tap on the MIUI version 7 times.
- You will then receive a toast message that You are now a developer.
- Now go back to Settings > System > Advanced (or Additional Settings).
- On this screen, You will see the Developer Options.
- Just tap on the same and go to the bottom of the USB Debugging option and enable it using the toggle in front of the option.
- A pop-up will appear on the screen asking you to Allow USB Debugging, tap on the OK option.
Step 3. Authorize USB Debugging
So here is the final and most important step to fix the Unauthorized Device error using ADB commands. Follow it with utmost attention to keep the process going Smooth.
- Firstly, make sure that you have successfully followed the above two steps.
- And then we will connect your device to the PC using USB cables.
Now you will get 3 different fixes for the error as shown below. you can try any one of the below solutions to fix the issue.
- When you connect your device to the PC, you will get the prompt asking to Allow USB Debugging using your PC’s RSA fingerprint key.
- Simply Allow and if you want to or if the PC is yours, you can also choose the option of “Always allow from this computer”.
- However, if you haven’t received the prompt yet, do not panic. Go to the Platform-tools folder (ADB and Fastboot Tools Folder) and enter cmd in the address bar of this folder.
- This will open the command prompt. Just enter the below command and you will be done.
- If before you Allowed RSA Fingerprint key, you will now get an alphanumeric ID along with the device keyword.
- But, if you haven’t received the prompt earlier, as mentioned in Fix 1., then by following the Fix 1 and executing the ‘adb devices’ command, you will definitely get the prompt.
- After this, just go to your device and tap on Allow in the popup that shows up on the screen.
- You are done here!
In case none of the above 2 solutions have worked out, try following this one.
- On your device Go to the Settings > System > Advanced > Developer Options.
- Then go to the Debugging section. Here, simply tap on Revoke USB Debugging Authorization.
- Lastly, tap on OK in the dialog box that appears. That is it.
3. One last step.
- Connect your device to the PC. Make sure that the USB Debugging is enabled.
- Go to the Platform-tools folder (ADB and Fastboot Tools Folder) and enter cmd in the address bar of this folder.
- This will open the command prompt. Just enter the below command
You will now get a prompt on your device. Just tap on Allow. To check if your device has been recognized, you can verify using the ADB devices command again.
That is how easy it was to Fix Unauthorized Devices with ADB Commands.
I hope you all could easily fix Unauthorized Devices with ADB Commands. In case of any doubts, you can contact us in the comment section below.
If you have any other queries or questions related to Android Debugging Bridge or ADB, feel free to ask us away.