Scrcpy: device unauthorized.

Created on 23 Nov 2018  路  4Comments  路  Source: Genymobile/scrcpy

Huawei Mate 20 Pro

Dev Settings/USB Debugging = on

I get this:

adb: error: failed to get feature set: 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.
ERROR: "adb push" returned with value 1
Press any key to continue...

PS C:\scrcpy-win64> adb devices
List of devices attached
adb server version (40) doesn't match this client (39); killing...
* daemon started successfully
LHS7N*************        unauthorized

PS C:\scrcpy-win64>
adb

Most helpful comment

You have two problems here:

  1. You already have some adb daemon v39 running on your computer (something which uses adb). If this running daemon is not reexecuted as soon as it is killed, executing adb devices one more time should not print adb server version (40) doesn't match this client (39); killing.... You should find the software which executes adb v39.

    1. Device is unauthorized if you didn't authorize the connection on your device. A popup should open when you connect a device via adb. Some buggy devices don't always show this popup immediately. In that case, try adb kill-server; adb start-server, unplug-replug, and if nothing works, use an old adb (v39 or v36).

All 4 comments

You have two problems here:

  1. You already have some adb daemon v39 running on your computer (something which uses adb). If this running daemon is not reexecuted as soon as it is killed, executing adb devices one more time should not print adb server version (40) doesn't match this client (39); killing.... You should find the software which executes adb v39.

    1. Device is unauthorized if you didn't authorize the connection on your device. A popup should open when you connect a device via adb. Some buggy devices don't always show this popup immediately. In that case, try adb kill-server; adb start-server, unplug-replug, and if nothing works, use an old adb (v39 or v36).

Sorted!
Figured it out and all is good now.

Thanks alot!

I am a newbird,so I can't understand what should I do.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

udit7395 picture udit7395  路  4Comments

sennight picture sennight  路  3Comments

singleNeuron picture singleNeuron  路  3Comments

YurieCo picture YurieCo  路  4Comments

tonyyang924 picture tonyyang924  路  4Comments