Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Commit

Permalink
Downgrade Android emulator to avoid headless mode bug.
Browse files Browse the repository at this point in the history
Signed-off-by: Sergey Minaev <sergey.minaev@dsr-corporation.com>
  • Loading branch information
jovfer committed Dec 6, 2019
1 parent 77edb4e commit bd0b119
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions libindy/ci/setup.android.env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,19 @@ create_avd(){

yes | sdkmanager --licenses

echo "yes" |
sdkmanager --no_https \
"emulator" \
"platform-tools" \
"platforms;android-24" \
"system-images;android-24;default;${ABI}"
if [ ! -d "emulator" ] ; then
echo "yes" |
sdkmanager --no_https \
"emulator" \
"platform-tools" \
"platforms;android-24" \
"system-images;android-24;default;${ABI}"

# TODO hack to downgrade Android Emulator. Should be removed as soon as headless mode will be fixed.
curl -o emu.zip https://dl.google.com/android/repository/emulator-linux-5889189.zip
mv emulator emulator_backup
unzip emu.zip
fi

echo "${BLUE}Creating android emulator${RESET}"

Expand Down

0 comments on commit bd0b119

Please sign in to comment.