Skip to content

Commit

Permalink
try accelerate gpu and other option to optimize device's booting
Browse files Browse the repository at this point in the history
  • Loading branch information
greenEkatherine committed Feb 8, 2021
1 parent a56dfe4 commit 40f6e2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
echo "y" | $ANDROID_HOME/tools/bin/sdkmanager --install 'system-images;android-${{ value }};google_apis;x86'
# -d 17 for Pixel
# to find out other devices run "avdmanager list device"
echo "no" | $ANDROID_HOME/tools/bin/avdmanager create avd -n xamarin_android_emulator -k 'system-images;android-${{ value }};google_apis;x86' -d 17 --force
echo "no" | $ANDROID_HOME/tools/bin/avdmanager create avd -n xamarin_android_emulator -k 'system-images;android-${{ value }};google_apis;x86_64' -d 17 --force
$ANDROID_HOME/emulator/emulator -list-avds
Expand All @@ -42,7 +42,7 @@ jobs:
sed -i 's/^\(hw.ramSize=\).*$/\12048M/' ~/.android/avd/xamarin_android_emulator.avd/config.ini
# solution from https://stackoverflow.com/a/16402304 to fix error "System UI is not responding"
sed -i 's/^\(hw.mainKeys=\).*$/\1yes/' ~/.android/avd/xamarin_android_emulator.avd/config.ini
nohup $ANDROID_HOME/emulator/emulator -avd xamarin_android_emulator -gpu host -skin 1080x1920 -no-snapshot -no-audio -no-boot-anim -accel auto -gpu auto -qemu > /dev/null 2>&1 &
nohup $ANDROID_HOME/emulator/emulator -avd xamarin_android_emulator -delay-adb -gpu swiftshader_indirect -skin 1080x1920 -no-snapshot -no-audio -no-boot-anim -accel auto -qemu > /dev/null 2>&1 &
$ANDROID_HOME/platform-tools/adb wait-for-device shell 'while [[ -z $(getprop sys.boot_completed) ]]; do sleep 1; done; input keyevent 82'
$ANDROID_HOME/platform-tools/adb devices
Expand Down

0 comments on commit 40f6e2b

Please sign in to comment.