android-emulator-runner icon indicating copy to clipboard operation
android-emulator-runner copied to clipboard

How to connect with specific device name?

Open dh-Kang opened this issue 3 years ago • 1 comments

Always, more than 2 devices are adb connected with my self runner pc. This action try to connect with AVD but there are devices more than one. So I always need to disconnect all other devices while retyring connect adb from this action. Is there any way to declare the AVD device name in action workflow?

dh-Kang avatar Apr 12 '22 02:04 dh-Kang

@dh-Kang Are you by any chance using flutter? If yes, you can just add in the script variable something like -d <name>: script: flutter drive --driver=test_driver/integration_test.dart --target=integration_test/app_test.dart -d 'emulator'

sebastianbuechler avatar Aug 16 '22 13:08 sebastianbuechler

@dh-Kang I believe you can specify the device name in the action Input, then put force-device-creation to false.

You can also specify the device with an env variable, see this article

mrk-han avatar Oct 19 '22 20:10 mrk-han