Gilles
Gilles

Reputation: 175

Android Emulator Unauthorized

I've got a Pixel 2 emulator running Android Q. Whenever I boot the device there's no RSA popup, and no notification that USB Debugging is enabled. Whenever I run adb devices -l I get the following output:

List of devices attached emulator-5554 unauthorized transport_id:1

I've tried wiping the emulator and cold booting it, restarting the adb-server and made sure USB Debug is turned on in the emulator itself.

I tried it on both my desktop running Kubuntu 18.10 & my XPS 15 running the same OS. Has anyone found a fix for this?

EDIT:

It worked when I selected a hardware profile without the play services. Problem solved!

Upvotes: 8

Views: 7587

Answers (3)

Sb. R
Sb. R

Reputation: 31

It works for me!

  1. Exit emulator
  2. Wipe data of AVD
  3. Relaunch emulator

Upvotes: 1

Marcel
Marcel

Reputation: 2184

Seems there was an issue with adb tools.

Taken from Android Studio blog: https://androidstudio.googleblog.com/2019/03/emulator-28112-canary-28025-to-beta.html

ADB from platform-tools 28.0.2 can now be safely used with the emulator. If you are experiencing issues with "unauthorized" emulators:

  1. Exit all emulators
  2. Delete ~/.android/adbkey and ~/.android/adbkey.pub
  3. adb kill-server
  4. adb devices Wipe data of AVD
  5. Relaunch emulator

Upvotes: 31

Gilles
Gilles

Reputation: 175

I created a device without the play store services, which connected instantly!

Upvotes: 8

Related Questions