Skip to content

Commit

Permalink
use android emulator 32.1.15 as 33.1.23 segfaults
Browse files Browse the repository at this point in the history
  • Loading branch information
fredszaq committed Dec 13, 2023
1 parent ad80bc4 commit 0f451d0
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .travis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,27 @@ else
title "setup simulator"
rustup target add armv7-linux-androideabi

## BEGIN FIX-EMULATOR
# Use emulator version 32.1.15 as latest version (33.1.23 as of writing) from sdk segfaults

( \
cd target/ \
&& wget https://redirector.gvt1.com/edgedl/android/repository/emulator-linux_x64-10696886.zip \
&& unzip emulator-linux_x64-10696886.zip \
)
EMULATOR="$(pwd)/target/emulator/emulator"

# to revert when the bundled emulator doesn't crash anymore use the following line
# EMULATOR="$ANDROID_SDK_ROOT/emulator/emulator"

# END FIX-EMULATOR

$ANDROID_SDK_ROOT/cmdline-tools/latest/bin/sdkmanager --install "system-images;android-24;default;armeabi-v7a" "ndk;22.1.7171670"
echo no | $ANDROID_SDK_ROOT/cmdline-tools/latest/bin/avdmanager create avd -n testdinghy -k "system-images;android-24;default;armeabi-v7a"
$ANDROID_SDK_ROOT/emulator/emulator @testdinghy -no-audio -no-boot-anim -no-window -accel on -gpu off &
$EMULATOR @testdinghy -no-audio -no-boot-anim -no-window -accel on -gpu off &
timeout 180 $ANDROID_SDK_ROOT/platform-tools/adb wait-for-device

export ANDROID_NDK_HOME=/usr/local/lib/android/sdk/ndk/22.1.7171670
export ANDROID_NDK_HOME=$ANDROID_SDK_ROOT/ndk/22.1.7171670

tests_sequence android
fi
Expand Down

0 comments on commit 0f451d0

Please sign in to comment.