Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

running adb devices showing unauthorized device?

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.

like image 770
Ankit Agrawal Avatar asked Aug 11 '14 06:08

Ankit Agrawal


2 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.

like image 114
Saurabh Meshram Avatar answered Oct 19 '22 14:10

Saurabh Meshram


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.

like image 26
iowatiger08 Avatar answered Oct 19 '22 14:10

iowatiger08