Skip to content

Commit

Permalink
init commit
Browse files Browse the repository at this point in the history
  • Loading branch information
cmccarthyIrl committed Mar 9, 2024
1 parent 51e6c36 commit d430192
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/scripts/startEmulator.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
#!/bin/bash

export ANDROID_HOME=/usr/local/lib/android/sdk


echo "Install Android SDK Platform Tools if not already installed..."
if ! command -v adb &> /dev/null; then
echo "Installing Android SDK Platform Tools..."
yes | $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --install "platform-tools" --verbose
yes | "$ANDROID_HOME"/cmdline-tools/latest/bin/sdkmanager --install "platform-tools" --verbose
export PATH="$ANDROID_HOME/platform-tools:$PATH"
fi

# Find adb executable
Expand All @@ -20,16 +18,16 @@ fi
echo "Start the ADB server"
$ADB start-server

echo "y" | $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --install "system-images;android-31;default;x86_64" --verbose
echo "no" | $ANDROID_HOME/cmdline-tools/latest/bin/avdmanager -v create avd \
echo "y" | "$ANDROID_HOME"/cmdline-tools/latest/bin/sdkmanager --install "system-images;android-31;default;x86_64" --verbose
echo "no" | "$ANDROID_HOME"/cmdline-tools/latest/bin/avdmanager -v create avd \
-n testRunnner \
-k "system-images;android-31;default;x86_64" \
-f \
--force
echo "Emulators:"
$ANDROID_HOME/emulator/emulator -list-avds
"$ANDROID_HOME"/emulator/emulator -list-avds

nohup $ANDROID_HOME/emulator/emulator -avd testRunnner \
nohup "$ANDROID_HOME"/emulator/emulator -avd testRunnner \
-skin 1080x1920 \
-no-snapshot \
-no-audio \
Expand Down

0 comments on commit d430192

Please sign in to comment.