Home » Android » android – running adb devices showing unauthorized device?

android – running adb devices showing unauthorized device?

Posted by: admin June 15, 2020 Leave a comment

Questions:

I have connected some android devices to a Linux host. and when I run

adb devices

it will show unauthorized device. I fix this problem by

adb kill-server
sudo adb start-server

but every time the host restarts it will again show device unauthorized. please can someone explain how to fix this problem permanently.

The device is connected to the host through the USB cable.

How to&Answers:

This seems to be an issue with ADB version.
You may need to update your ADB.

Check using the follow, If older version, update to the latest.

$ adb version
Android Debug Bridge version 1.0.31

When you type:

$ adb devices
List of devices attached 
TA93300ZP0  unauthorized

and you should get below notification on your phone

this

Select Ok, and then when you issue

$ adb devices
List of devices attached 
TA93300ZP0  device

You should be able to connect to your device.

If you select Always allow from this computer.
This should fix your problem permanently.

Tested on Moto G (Android 4.4.4) on Ubuntu 12.04.

Answer:

Kill the adb server , Removing the .android folder from my user (ex. C:\Users\user.android on Win7) folder as well as unplugging and “revoking USB debugging authorization..”, and then plug back in, I finally got the fingerprint to show up again.

Answer:

You should get the Allow USB debugging prompt. If for some reason you don’t get it, disable debugging and re-enabling debugging will fix it.

Go into the Android’s Debugging options screen. Disable debugging, then re-enable debugging. Then try again to connect using adb. Now the authorization prompt will pop up on the Android. You’ll see:

Allow USB debugging? And the computer’s RSA key finger print.

You’ll also have a checkbox option to Always allow this computer.

Answer the prompt giving permission. You can also check the option to always allow this computer.