0

When a new AVD is created or its data is wiped, USB debugging is needed to be allowed from the window (see the figure below) prompted when the operating system (OS) is started. I work on a system that analyzes each Android application on a fresh OS. For this reason, I start the AVD with the wipe-data option. And then I need to enable USB debugging programmatically without rooting the device in order to start the analysis.

Tried the answer posted here, but did not work for me. Getting the error device-unauthorized. This adb server's $ADB_VENDOR_KEYS is not set.

p.s. I use AndroidViewClient to interact with the AVD programmatically. And the API level of the AVD is 26 (Android 8.0)

USB Debugging Prompt

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.