본문 바로가기

TroubleShooting/Android

연결된 안드로이드 에뮬레이터 정보 확인

728x90

- adb

: attached 된 안드로이드 에뮬레이터를 확인할 수 있다.

$ adb devices
List of devices attached
emulator-5554   device

 

- emulator

: Android SDK 설치할때 같이 설치되는 emulator 명령어로 에뮬레이터를 실행하고, Extended Control(...) - "About" - Emulator ADB serial number" 로 확인할 수 있다.

$ <Android-SDK-emulator>\emulator.exe -list-avds
Medium_Phone_API_28
Pixel_6_API_28
Pixel_7_API_33

$ <Android-SDK-emulator>emulator.exe -avd Pixel_6_API_28 -writable-system -no-snapshot
INFO    | Android emulator version 33.1.24.0 (build_id 11237101) (CL:N/A)
INFO    | Found systemPath D:\Android\Sdk\system-images\android-28\google_apis\x86\
INFO    | Storing crashdata in: , detection is enabled for process: 8676
INFO    | Duplicate loglines will be removed, if you wish to see each individual line launch with the -log-nofilter flag.
WARNING | System image is writable
INFO    | IPv4 server found:
INFO    | Ignore IPv6 address: 786f:9b1:1b02:0:c067:9b1:1b02:0
INFO    | Ignore IPv6 address: 786f:9b1:1b02:0:c067:9b1:1b02:0 (2x)
INFO    | Ignore IPv6 address: 6075:9b1:1b02:0:c067:9b1:1b02:0
INFO    | Ignore IPv6 address: 6075:9b1:1b02:0:c067:9b1:1b02:0 (2x)
INFO    | Ignore IPv6 address: 287d:9b1:1b02:0:c067:9b1:1b02:0
INFO    | Ignore IPv6 address: 287d:9b1:1b02:0:c067:9b1:1b02:0 (2x)
WARNING | FeatureControl is requesting a non existing feature.
library_mode host gpu mode host
...

위의 그림에서 보면 "emulator-5554" 가 device Id 값이다.

 

참고

https://developer.android.com/studio/command-line/adb?hl=ko