summaryrefslogtreecommitdiff
path: root/android/installApk.sh
diff options
context:
space:
mode:
Diffstat (limited to 'android/installApk.sh')
-rwxr-xr-xandroid/installApk.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/android/installApk.sh b/android/installApk.sh
index 2c82b11..5fd6afa 100755
--- a/android/installApk.sh
+++ b/android/installApk.sh
@@ -1,5 +1,10 @@
#!/bin/sh
ADB="$ANDROID_SDK_PATH/tools/adb"
+if [ ! -e $ADB ]
+then
+ # Starting with the gingerbread sdk, the adb location changed
+ ADB="$ANDROID_SDK_PATH/platform-tools/adb"
+fi
$ADB install -r rockbox.apk
echo 'am start -a android.intent.action.MAIN -n org.rockbox/.RockboxActivity; exit' | $ADB shell