android-calculatorpp/calculatorpp/misc/aux/prepare_avds.sh
Sergey Solovyev 36772dea1f Screenshots
2012-11-23 01:19:14 +04:00

27 lines
601 B
Bash
Executable File

#!/bin/bash
declare -a skins=("WVGA854" "WQVGA400" "HVGA" "WQVGA432" "WVGA800" "QVGA")
declare -a targets=("android-16")
for target in ${targets[@]}
do
for skin in ${skins[@]}
do
$ANDROID_HOME/tools/android -s create avd -n AVD_$skin -t $target -b x86 -s $skin --force
done
done
for target in ${targets[@]}
do
for skin in ${skins[@]}
do
avdDeviceName=AVD_$skin
$ANDROID_HOME/tools/emulator -avd $avdDeviceName &
$ANDROID_HOME/tools/monkeyrunner ./wait_device.py
$ANDROID_HOME/platform-tools/adb -s emulator-5554 emu kill
done
done