diff --git a/scripts/create-avd.sh b/scripts/create-avd.sh new file mode 100644 index 000000000..36f54c58e --- /dev/null +++ b/scripts/create-avd.sh @@ -0,0 +1,14 @@ +#!/usr/bin/env bash + +$ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --install emulator + +$ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager "system-images;android-31;default;arm64-v8a" +$ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --licenses + +$ANDROID_HOME/cmdline-tools/latest/bin/avdmanager create avd -n Pixel_API_31_AOSP -d pixel --package "system-images;android-31;default;arm64-v8a" + +echo "hw.lcd.density = 440" >> ~/.android/avd/Pixel_API_31_AOSP.avd/config.ini +echo "hw.lcd.height = 2280" >> ~/.android/avd/Pixel_API_31_AOSP.avd/config.ini +echo "hw.lcd.width = 1080" >> ~/.android/avd/Pixel_API_31_AOSP.avd/config.ini + +echo "Pixel_API_31_AOSP created" \ No newline at end of file