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

Dadb.list throws IOException on unauthorized device (OFFLINE)? #55

Open
mrenouf opened this issue Apr 5, 2023 · 1 comment
Open

Dadb.list throws IOException on unauthorized device (OFFLINE)? #55

mrenouf opened this issue Apr 5, 2023 · 1 comment

Comments

@mrenouf
Copy link

mrenouf commented Apr 5, 2023

Exception in thread "main" java.io.IOException: Command failed (host:transport:131xxxxxxx19J): 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.
	at dadb.adbserver.AdbServer.send$dadb(AdbServer.kt:99)
	at dadb.adbserver.AdbServerDadb.open(AdbServer.kt:137)
	at dadb.adbserver.AdbServerDadb.<init>(AdbServer.kt:128)
	at dadb.adbserver.AdbServer.createDadb(AdbServer.kt:52)
	at dadb.adbserver.AdbServer.listDadbs(AdbServer.kt:81)
	at dadb.adbserver.AdbServer.listDadbs$default(AdbServer.kt:60)
	at dadb.Dadb$Companion.list(Dadb.kt:244)
	at dadb.Dadb$Companion.list$default(Dadb.kt:243)
	at LogcatKt.list(Logcat.kt:36)
@flyfishxu
Copy link
Contributor

When you first connect your target device, you must authorize your phone. Usually, a dialog will show on your target device, you need to click "Allow", then you will have permission to control your target device by ADB.

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

2 participants