summaryrefslogtreecommitdiffstats
path: root/android/installApk.sh
diff options
context:
space:
mode:
Diffstat (limited to 'android/installApk.sh')
-rwxr-xr-xandroid/installApk.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/android/installApk.sh b/android/installApk.sh
index e38189430e..7b5666df34 100755
--- a/android/installApk.sh
+++ b/android/installApk.sh
@@ -1,5 +1,8 @@
#!/bin/sh
ADB="$ANDROID_SDK_PATH/tools/adb"
+if [ "$1" == "-r" ]; then
+ echo 'pm uninstall org.rockbox; exit' | $ADB shell
+fi
$ADB install rockbox.apk
echo 'am start -W -a android.intent.action.MAIN -n org.rockbox/.RockboxActivity; exit' | $ADB shell