Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

$ADB_VENDOR_KEYS is not set #13

Open
CODeRUS opened this issue Feb 9, 2020 · 8 comments
Open

$ADB_VENDOR_KEYS is not set #13

CODeRUS opened this issue Feb 9, 2020 · 8 comments

Comments

@CODeRUS
Copy link

CODeRUS commented Feb 9, 2020

$ adb shell
error: device unauthorized.
This adb server's $ADB_VENDOR_KEYS is not set
Try 'adb kill-server' if that seems wrong.
Otherwise check for a confirmation dialog on your device.
@CODeRUS
Copy link
Author

CODeRUS commented Feb 9, 2020

device is authorized for sure on the popup dialog

@MasterDevX
Copy link
Owner

Try restarting adb server (adb kill-server; adb start-server).
If it won't work, try to revoke ADB authentications in developer settings.
And if this also will give no result, try reinstalling ADB.

@piagzaa24
Copy link

$ adb shell
error: device unauthorized.
This adb server's $ADB_VENDOR_KEYS is not set
Try 'adb kill-server' if that seems wrong.
Otherwise check for a confirmation dialog on your device.

@sunshinewithmoonlight
Copy link

sunshinewithmoonlight commented Jun 21, 2020

This problem is not fatal to connecting devices. But if you want to eliminate the error, please enter the following in ~/.bashrc :

alias adb='ADB_VENDOR_KEYS=/data/data/com.termux/files/home/adbfiles/adbkey adb'

In addition, you should execute adb devices and adb connect <ip>:<port> before executing adb shell. You should not delete files under ~/adbkey.

By the way, I use adb to connect my phone to itself:

su -c 'setprop service.adb.tcp.port 5555' && su -c 'stop adbd' && su -c 'start adbd'
adb devices
adb connect 127.0.0.1:5555

@diabl0w
Copy link

diabl0w commented Jul 16, 2020

This problem is not fatal to connecting devices. But if you want to eliminate the error, please enter the following in ~/.bashrc :

alias adb='ADB_VENDOR_KEYS=/data/data/com.termux/files/home/adbfiles/adbkey adb'

In addition, you should execute adb devices and adb connect <ip>:<port> before executing adb shell. You should not delete files under ~/adbkey.

By the way, I use adb to connect my phone to itself:

su -c 'setprop service.adb.tcp.port 5555' && su -c 'stop adbd' && su -c 'start adbd'
adb devices
adb connect 127.0.0.1:5555

I am having a similar issue... the difference is that I can still connect as long as I confirm the "Authorize Debugging" dialog box that comes up. The problem is that it doesn't remember the device after authorizing it. I have to confirm the dialog box every time, unlike on my computer. The strange part is that the adbkey.pub key is correctly located in the /data/misc/adb/adb_keys file. In fact the key is duplicated in the adb_keys file dozens of times because of all the times I keep confirming the dialog box. Why does it keep asking me to authorize?

@sunshinewithmoonlight
Copy link

I am having a similar issue... the difference is that I can still connect as long as I confirm the "Authorize Debugging" dialog box that comes up. The problem is that it doesn't remember the device after authorizing it. I have to confirm the dialog box every time, unlike on my computer. The strange part is that the adbkey.pub key is correctly located in the /data/misc/adb/adb_keys file. In fact the key is duplicated in the adb_keys file dozens of times because of all the times I keep confirming the dialog box. Why does it keep asking me to authorize?

I don't know why. It's the same with me.

@lavaed
Copy link

lavaed commented Oct 10, 2020

I am having a similar issue... the difference is that I can still connect as long as I confirm the "Authorize Debugging" dialog box that comes up. The problem is that it doesn't remember the device after authorizing it. I have to confirm the dialog box every time, unlike on my computer. The strange part is that the adbkey.pub key is correctly located in the /data/misc/adb/adb_keys file. In fact the key is duplicated in the adb_keys file dozens of times because of all the times I keep confirming the dialog box. Why does it keep asking me to authorize?

I don't know why. It's the same with me.

it's the same with me.

@seba-plpl
Copy link

seba-plpl commented Nov 18, 2022

I am having a similar issue... the difference is that I can still connect as long as I confirm the "Authorize Debugging" dialog box that comes up. The problem is that it doesn't remember the device after authorizing it. I have to confirm the dialog box every time, unlike on my computer. The strange part is that the adbkey.pub key is correctly located in the /data/misc/adb/adb_keys file. In fact the key is duplicated in the adb_keys file dozens of times because of all the times I keep confirming the dialog box. Why does it keep asking me to authorize?

I don't know why. It's the same with me.

Hi All,
i'm facing the same problem. Every time i kill and start adb server or reboot a device, adb devices command or adb connect is asking me to authorize computer.
Because of that, i cannot automatize my tests :-(
Did anyone find a solution for that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants