Set adb vendor keys
In this case what you can do is : Go in developer options on the device Uncheck "USB Debugging" then check it again A confirmation box should then appear
I tried almost anything but no help...
Everytime was just this
➜ ~ adb devices
List of devices attached
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
aeef5e4e unauthorized
However I've managed to connect device!
There is tutor, step by step.
- Remove existing adb keys on PC:
$ rm -v .android/adbkey*
.android/adbkey
.android/adbkey.pub
Remove existing authorized adb keys on device, path is
/data/misc/adb/adb_keys
Now create new adb keypair
➜ ~ adb keygen .android/adbkey
adb I 47453 711886 adb_auth_host.cpp:220] generate_key '.android/adbkey'
adb I 47453 711886 adb_auth_host.cpp:173] Writing public key to '.android/adbkey.pub'
Manually copy from PC
.android/adbkey.pub
(pubkic key) to Device on path/data/misc/adb/adb_keys
Reboot device and check
adb devices
:
➜ ~ adb devices
List of devices attached
aeef5e4e device
Permissions of /data/misc/adb/adb_keys
are (766/-rwxrw-rw-)
on my device
look at this url Android adb devices unauthorized else briefly do the following:
- look for adbkey with not extension in the platform-tools/.android and delete this file
- look at
C:\Users\*username*\.android
) and delete adbkey -
C:\Windows\System32\config\systemprofile\.android
and delete adbkey
You may find it in one of the directories above. Or just search adbkey in the Parent folders above then locate and delete.