Skip to content

Commit

Permalink
Force avd to ~/.android/avd instead of ~/.config/.android/avd
Browse files Browse the repository at this point in the history
  • Loading branch information
peace-maker committed Oct 11, 2024
1 parent 248cb1f commit 595f284
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions travis/setup_avd_fast.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

set -ex

env

# Grab prerequisites
# Valid ABIs:
# - armeabi-v7a
Expand All @@ -10,6 +12,8 @@ set -ex
# - x86_64
ANDROID_ABI='x86_64'
ANDROIDV=android-34
ANDROID_AVD_HOME="$HOME/.android/avd"
mkdir -p "$ANDROID_AVD_HOME"

# Create our emulator Android Virtual Device (AVD)
# --snapshot flag is deprecated, see bitrise-steplib/steps-create-android-emulator#18
Expand All @@ -19,8 +23,6 @@ yes | sdkmanager --sdk_root="$ANDROID_HOME" --licenses
echo no | avdmanager --verbose create avd --name android-$ANDROID_ABI --force --abi "default/$ANDROID_ABI" --package "system-images;$ANDROIDV;default;$ANDROID_ABI"
avdmanager list avd

# The emulator is crazy and does not even respect its own paths
sed -i "s@=android-sdk@=$PWD/android-sdk@" ~/.config/.android/avd/android-$ANDROID_ABI.avd/config.ini

emulator -list-avds

Expand Down

0 comments on commit 595f284

Please sign in to comment.