Sha256: 953114071631896db5ccfe2611cbb76201ca85848adeffd1f72f2d7362faf04f

Contents?: true

Size: 1.01 KB

Versions: 31

Compression:

Stored size: 1.01 KB

Contents

#!/usr/bin/env bash

# This script was copy-pasted from https://docs.microsoft.com/en-us/azure/devops/pipelines/languages/android?view=azure-devops#test-on-the-android-emulator
# with some changes

# Install AVD files
declare -r emulator="system-images;android-${ANDROID_SDK_VERSION};google_apis;x86"
echo "y" | ${ANDROID_HOME}/tools/bin/sdkmanager --install "$emulator"

# Show a list of emulators
${ANDROID_HOME}/tools/bin/avdmanager list

# Create emulator
echo "no" | ${ANDROID_HOME}/tools/bin/avdmanager create avd -d "Nexus 5X" -n testemulator -k "${emulator}" --force

echo ${ANDROID_HOME}/emulator/emulator -list-avds

echo "Starting emulator"

# Start emulator in background
nohup ${ANDROID_HOME}/emulator/emulator -avd testemulator -accel auto -no-boot-anim -gpu auto -no-snapshot > /dev/null 2>&1 &
${ANDROID_HOME}/platform-tools/adb wait-for-device shell 'while [[ -z $(getprop sys.boot_completed | tr -d '\r') ]]; do sleep 1; done; input keyevent 82'

${ANDROID_HOME}/platform-tools/adb devices

echo "Emulator started"

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
appium_lib_core-5.1.0 ci-jobs/functional/start-emulator.sh
appium_lib_core-5.0.3 ci-jobs/functional/start-emulator.sh
appium_lib_core-5.0.2 ci-jobs/functional/start-emulator.sh
appium_lib_core-5.0.1 ci-jobs/functional/start-emulator.sh
appium_lib_core-5.0.0 ci-jobs/functional/start-emulator.sh
appium_lib_core-5.0.0.rc8 ci-jobs/functional/start-emulator.sh
appium_lib_core-5.0.0.rc7 ci-jobs/functional/start-emulator.sh
appium_lib_core-5.0.0.rc6 ci-jobs/functional/start-emulator.sh
appium_lib_core-5.0.0.rc5 ci-jobs/functional/start-emulator.sh
appium_lib_core-5.0.0.rc4 ci-jobs/functional/start-emulator.sh
appium_lib_core-5.0.0.rc3 ci-jobs/functional/start-emulator.sh
appium_lib_core-5.0.0.rc2 ci-jobs/functional/start-emulator.sh
appium_lib_core-4.7.1 ci-jobs/functional/start-emulator.sh
appium_lib_core-5.0.0.rc1 ci-jobs/functional/start-emulator.sh
appium_lib_core-4.7.0 ci-jobs/functional/start-emulator.sh
appium_lib_core-5.0.0.beta4 ci-jobs/functional/start-emulator.sh
appium_lib_core-4.6.0 ci-jobs/functional/start-emulator.sh
appium_lib_core-5.0.0.beta3 ci-jobs/functional/start-emulator.sh
appium_lib_core-5.0.0.beta2 ci-jobs/functional/start-emulator.sh
appium_lib_core-5.0.0.beta1 ci-jobs/functional/start-emulator.sh