summaryrefslogtreecommitdiff
path: root/run.sh
diff options
context:
space:
mode:
authorParménides GV <parmegv@sdf.org>2014-04-07 20:43:34 +0200
committerParménides GV <parmegv@sdf.org>2014-04-08 11:43:27 +0200
commitc206a91d320995f37f8abb33188bfd384249da3d (patch)
tree10a7d8a9dd7f24437ac4851b8d01edbd5dd3ee3b /run.sh
parent910b0e1746ab3f63e63808b198ad51fec5b635e5 (diff)
Next step: compile jni sources correctly.
Diffstat (limited to 'run.sh')
-rwxr-xr-xrun.sh38
1 files changed, 0 insertions, 38 deletions
diff --git a/run.sh b/run.sh
deleted file mode 100755
index 60258c44..00000000
--- a/run.sh
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/bin/bash
-
-if [ -z "$2" ]
-then
- echo Usage: run.sh \"avd name\" \"project folder\"
- exit 0;
-fi
-avd_name=$1
-PROJECT_FOLDER=$2
-localport=`expr $RANDOM % 65536`
-
-wait_until_booted() {
- OUT=`adb shell getprop init.svc.bootanim`
- RES="stopped"
-
- while [[ ${OUT:0:7} != 'stopped' ]]; do
- OUT=`adb shell getprop init.svc.bootanim`
-# echo 'Waiting for emulator to fully boot...'
- sleep 5
- done
-
- echo "Emulator booted!"
-}
-
-echo "Press \"y\" key and enter if you want to wipe emulator's data"
-read wipe_data_or_not
-if [ $wipe_data_or_not == "y" ]
-then
- echo "Wiping data"
- emulator -wipe-data @$avd_name & # If you want to test the app from scratch
-else
- echo "Not wiping data"
- emulator @$avd_name & # If you want to test the app from scratch
-fi
-
-wait_until_booted
-adb install -r $PROJECT_FOLDER/bin/Bitmask\ for\ Android-debug.apk # Install the new version of the application
-adb shell am start se.leap.bitmaskclient/.Dashboard # Run app