-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup-emulator.sh
executable file
·28 lines (23 loc) · 1.05 KB
/
setup-emulator.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
currentDirController="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
source "$currentDirController/config.sh"
source "$installDestination/paths.sh"
# Don't bother setting up the AVD again, if already done
if [ -x "$(command -v $installDestination/emulator/emulator)" ]; then
alreadyHasAvd=$($installDestination/emulator/emulator -list-avds | grep -o "$emulatorDeviceName")
if [[ "$alreadyHasAvd" == "" ]]; then
source "$currentDirController/emulator/create-avd.sh"
fi
else
source "$currentDirController/emulator/create-avd.sh"
fi
source "$currentDirController/emulator/start-emulator.sh"
source "$currentDirController/emulator/fix-gboard.sh"
source "$currentDirController/emulator/fix-google-chrome.sh"
source "$currentDirController/emulator/fix-google-maps.sh"
source "$currentDirController/emulator/fix-webview-shell.sh"
echo
echo "*******************************************************"
echo "******** Finished setting up Android emulator! ********"
echo "*******************************************************"
echo