![]() $ANDROID_HOME/tools/emulator -port 18725 -verbose -no-window -no-audio -gpu swiftshader_indirect &įfmpeg -f avfoundation -i 0 -t 120 out.mov name: install recorder and record session $ANDROID_HOME/platform-tools/adb exec-out screencap -p > emulator.png $ANDROID_HOME/platform-tools/adb wait-for-device shell 'while ] do echo "wait." sleep 1 done input keyevent 82' Nohup $ANDROID_HOME/tools/emulator -avd Pixel_API_29_AOSP -gpu host -no-audio -no-boot-anim -camera-back none -camera-front none -qemu -m 2048 2>&1 & If ! grep -q "hw.lcd.width" "$emulator_config" thenĮcho "hw.lcd.width=1080" > "$emulator_config"Įcho "Emulator settings ($emulator_config)"Įcho "Starting emulator and waiting for boot to complete." If ! grep -q "hw.lcd.height" "$emulator_config" thenĮcho "hw.lcd.height=1920" > "$emulator_config" ![]() If ! grep -q "hw.lcd.density" "$emulator_config" thenĮcho "hw.lcd.density=420" > "$emulator_config" bak 's/hw.lcd.density=.*/hw.lcd.density=420/' "$emulator_config" # Replace existing config (NOTE we're on MacOS so sed works differently!) # the state of which is dependant on the version of the emulator used (which we don't control), # The following madness is to support empty OR populated config.ini files, ![]() $ANDROID_HOME/tools/bin/avdmanager create avd -n Pixel_API_29_AOSP -d pixel -package 'system-images android-27 default x86_64'Įmulator_config=~/.android/avd/Pixel_API_29_AOSP.avd/config.ini # Allows you to run this workflow manually from the Actions tabĮcho "y" | $ANDROID_HOME/tools/bin/sdkmanager -install 'system-images android-27 default x86_64'Įcho "y" | $ANDROID_HOME/tools/bin/sdkmanager -licenses # Triggers the workflow on push or pull request events but only for the "main" branch # This is a basic workflow to help you get started with Actions Tried with all images including API Level 33.Īssuming emulator is taking more time to display the graphics ,waited a max time of 10 mins before taking screen shot.Īble to communicate with the device through adb commands. $ANDROID_HOME/platform-tools/adb wait-for-device shell 'while ] do sleep 1 done input keyevent 82' Nohup $ANDROID_HOME/emulator/emulator -avd xamarin_android_emulator -no-snapshot & $ANDROID_HOME/emulator/emulator -list-avdsĮcho "Starting emulator" Start emulator in background Setup a pipeline in azure devops to launch android emulator on microsoft hosted agent.Įcho "y" | $ANDROID_HOME/tools/bin/sdkmanager -install 'system-images android-27 google_apis x86'Įcho "no" | $ANDROID_HOME/tools/bin/avdmanager create avd -n xamarin_android_emulator -k 'system-images android-27 google_apis x86' -force The same pipeline is running fine on mac OS-10.15 which has the older version of emulator.But mac OS-10.15 is depreciated.Īndroid emulator Must bootup with graphics display Actual behaviorĪndroid emulatoe boots up with black/grey scrren Repro steps For couple of days ,I can see that the emulator has been booting up with black screen.I had taken a snapshot and has been attached.The snapshot has been taken just by launching the emulator.I can see the both mac-11 and mac-12 are using new version of android emulator i.e version 31.3.10.0. I have setup a pipeline in azure devops to run automated tests using android emulator on microsoft hosted agent.
0 Comments
Leave a Reply. |