Running headless Android Emulator
Posted on 09 Feb, 2022
Create an AVD
Boot the Emulator
You will see an output similar like this
If you already have an AVD setup, use
-list-avds
flag to list available avds and provide that in argument to-avd
above.Verify emulator is successfully booted (required in case if you run the above command in background)
This will return
1
if emulator is running.
Note:
ANDROID_SDK_ROOT
points to/Users/user/Library/Android/sdk/
Runninng Emulator inside Github Actions
Emulator CLI Tips
You can also record the session/screen using the
-record-session
flag. Specially useful when running emulator in headless mode
Last updated