7

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!

Gilles
  • 155
  • 2
  • 11

3 Answers3

26

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
Marcel
  • 1,618
  • 2
  • 21
  • 37
7

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

Gilles
  • 155
  • 2
  • 11
  • 1
    This worked for me! Tried various different emulators with Play Store services and none of them worked. They would either get stuck on the Unauthorized state or OFFLINE state. Running them from terminal kept presenting the following message: "PANIC: Missing emulator engine program for 'x86' CPU." – OJ7 Mar 26 '19 at 21:06
  • 1
    Year 2020. Found this solution and worked for the npx react-native run-android command. Tried thousands of alt. solutions, until I erased all emulators and created a new Nexus 6 API 29 with Android Q without Play Store, then enabled developer options, usb debugging, etc. and run command again successfuly. Thanks – Enrique May 09 '20 at 05:51
1

It works for me!

  1. Exit emulator
  2. Wipe data of AVD
  3. Relaunch emulator
S. zbr
  • 29
  • 2