summaryrefslogtreecommitdiffstats
path: root/android/installApk.sh
diff options
context:
space:
mode:
authorMaurus Cuelenaere <mcuelenaere@gmail.com>2010-11-05 23:40:00 +0000
committerMaurus Cuelenaere <mcuelenaere@gmail.com>2010-11-05 23:40:00 +0000
commit5e8863073e9b128b13bda8e1d1f014ec820a42cc (patch)
tree0cf02e9af4b8c31ccc2c62288dbf9476b2870ba7 /android/installApk.sh
parent7ccc78d08417c90ed373c01262fcdfed6aec03dc (diff)
downloadrockbox-5e8863073e9b128b13bda8e1d1f014ec820a42cc.tar.gz
rockbox-5e8863073e9b128b13bda8e1d1f014ec820a42cc.tar.bz2
rockbox-5e8863073e9b128b13bda8e1d1f014ec820a42cc.zip
Android: add uninstall option to installApk.sh script
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28507 a1c6a512-1295-4272-9138-f99709370657
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