1

How to get the serial for the emulator? If I use android.os.Build.SERIAL this works for real devices, but not for emulators :-( Contains "unknown" then - should be something like emulator-5554 - so I can use it in combination with "adb -s"

EDIT: my use-case: I have UserAcceptanceTests running on multiple devices / emulators attached. If a test fails on some device I make a screen-shot and want to be able to pull this one automatically - to do so I need to pass the serial from the instrumentation so i can pull the screenshot via adb.

ligi
  • 39,001
  • 44
  • 144
  • 244
  • Deleted my answer. Use case changes things greatly. I'm still working on it, but I'm beginning to think it's not possible – Para Nov 05 '13 at 18:29
  • Perhaps you could just have your host-side instrumention inform the device-side instrumentation of it's adb serial/address upon initiating connection. – Chris Stratton Nov 05 '13 at 19:20

0 Answers0