2020-11-11 01:47:26 +03:00
|
|
|
#!/bin/bash
|
|
|
|
|
2020-12-14 01:13:50 +03:00
|
|
|
set -e
|
2020-11-11 01:47:26 +03:00
|
|
|
|
2020-12-14 01:13:50 +03:00
|
|
|
if [[ -z "${ANDROID_HOME}" ]]; then
|
|
|
|
export SDKDIR=$PWD/.android-sdk
|
|
|
|
export ANDROID_HOME=${SDKDIR}
|
|
|
|
export ANDROID_SDK_ROOT=${SDKDIR}
|
|
|
|
fi
|
|
|
|
|
2020-12-14 01:38:51 +03:00
|
|
|
${ANDROID_HOME}/tools/bin/avdmanager delete avd --name android30 || true
|
2020-12-14 01:13:50 +03:00
|
|
|
echo "y" | ${ANDROID_HOME}/tools/bin/sdkmanager --install "system-images;android-30;google_apis;x86"
|
2020-12-14 09:33:00 +03:00
|
|
|
echo "no" | ${ANDROID_HOME}/tools/bin/avdmanager create avd --force --name android30 --device pixel_4 --package "system-images;android-30;google_apis;x86"
|
2020-12-14 01:13:50 +03:00
|
|
|
${ANDROID_HOME}/emulator/emulator -list-avds
|