![]() ![]() If you cannot do this, you can still pass -skin 1080x1920 as an argument when starting the emulator. Hw.keyboard=yes # enables keys from your laptop to be sent to the emulator Skin.name=1080x1920 # proper screen size for emulator Note: Increasing resolution will decrease performance on CI. Continued.įor generic skin emulator with default apis (without google apis) for use with Intel Macbook on CI (Can use google_atd too):ĭownload Image: sdkmanager -install "system-images android-30 aosp_atd x86"Ĭreate Emulator: echo "no" | avdmanager -verbose create avd -force -name "generic_api30_aosp_atd_emulator" -package "system-images android-30 aosp_atd x86" -tag "aosp_atd" -abi "x86" If you do not use the -device flag, I recommend adding these lines to: ~/.android/avd/generic_10.avd/config.ini or else your emulator will have a very low resolution. Generally the lower resolution devices will be less taxing on your CPU resources on CI, and are preferred especially without GPU/Hardware acceleration. But, certain settings like pixel density, resolution, memory, partition size, etc will be changed. Passing in a device will make the Emulator settings (usually found in the ~/.android/avd/emulator.avd/config.ini file) try to mimic that device. device "pixel_5" at the end of the command on step 3. Note: To check which devices you can create from the command line, run avdmanager list deviceand pass in the device name as the value of -device, e.g. In my benchmarks, they are about 40% more efficient than the google_apis image. I recommend always using the new google_atd or aosp_atd images when possible. List All System Images Available for Download: sdkmanager -list | grep system-imagesĭownload Image: sdkmanager -install "system-images android-30 google_atd arm64-v8a"Ĭreate Emulator: echo "no" | avdmanager -verbose create avd -force -name "pixel_5_api30_google_atd_emulator" -package "system-images android-30 google_atd arm64-v8a" -tag "google_atd" -abi "arm64-v8a" -device "pixel_5"įor M1/M2 Macbooks, use arm64-v8a as your "tag" or "target". Install and Create Emulators using AVDMANAGER and SDKMANAGER TL DRįor an emulator that mimics a Pixel 5 Device with Google APIs and ARM architecture (for an M1/M2 Macbook):
0 Comments
Leave a Reply. |