I have connected some android devices to a Linux host. and when I run
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.
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
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.
Moto G (Android 4.4.4) on
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.
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.