mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-16 21:00:14 +00:00
21 lines
682 B
Bash
Executable file
21 lines
682 B
Bash
Executable file
#! /usr/bin/env bash
|
|
# Created by daquexian
|
|
|
|
set -e
|
|
|
|
echo "y" | $ANDROID_HOME/tools/bin/sdkmanager --install 'system-images;android-28;google_apis;x86_64'
|
|
|
|
echo "no" | $ANDROID_HOME/tools/bin/avdmanager create avd -n android_emulator -k 'system-images;android-28;google_apis;x86_64' --force
|
|
|
|
echo "Starting emulator"
|
|
|
|
# Start emulator in background
|
|
nohup $ANDROID_HOME/emulator/emulator -avd android_emulator -partition-size 2048 -no-snapshot -no-audio &
|
|
|
|
$ANDROID_HOME/platform-tools/adb start-server
|
|
|
|
echo "Waiting for device to come online"
|
|
adb wait-for-device shell 'while [[ -z $(getprop sys.boot_completed) ]]; do sleep 1; done; input keyevent 82'
|
|
|
|
echo "Emulator is online"
|
|
|