create-avd.sh

This commit is contained in:
Diego Mello 2023-02-07 16:15:07 -03:00
parent af7e38aae8
commit 44ea4e74f6
1 changed files with 14 additions and 0 deletions

14
scripts/create-avd.sh Normal file
View File

@ -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"