summaryrefslogtreecommitdiff
path: root/debug.sh
diff options
context:
space:
mode:
authorParménides GV <parmegv@sdf.org>2014-04-09 17:07:48 +0200
committerParménides GV <parmegv@sdf.org>2014-04-09 17:15:17 +0200
commit51ff5a18f1f074e27e97d822745551a7e8fa068d (patch)
tree402e7dd42778a218635bb29a4c2dff93ea7f6525 /debug.sh
parent910b0e1746ab3f63e63808b198ad51fec5b635e5 (diff)
parentb5ba0abc1610dd4bf573ebcabc5e8f6ab0c9528f (diff)
Merge branch 'feature/implement-gradle-build-system-#4676' into develop
Diffstat (limited to 'debug.sh')
-rwxr-xr-xdebug.sh33
1 files changed, 0 insertions, 33 deletions
diff --git a/debug.sh b/debug.sh
deleted file mode 100755
index 9a19bf31..00000000
--- a/debug.sh
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/bin/bash
-
-if [ -z "$2" ]
-then
- echo Usage: debug.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!"
-}
-
-emulator @$avd_name & # If you want to test the app from scratch
-wait_until_booted
-adb install -r $PROJECT_FOLDER/bin/LEAP\ Android-debug.apk # Install the new version of the application
-adb shell am start -D se.leap.bitmaskclient/.Dashboard # Run app
-sleep 1
-pid=`adb shell ps | grep leap | awk '{print $2}'` # Identify the process id (pid) of the current bitmaskclient process instance
-echo forwarding tcp:$localport to jwdp:$pid
-adb forward tcp:$localport jdwp:$pid
-jdb -sourcepath $PROJECT_FOLDER/src/ -attach localhost:$localport