Welcome to mirror list, hosted at ThFree Co, Russian Federation.

uninstall.sh « script « android - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f8c8d4e00d7979f25cb27b0a493a213002b92aab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash

LITE=com.mapswithme.maps
PRO=com.mapswithme.maps.pro 

package=lp
serial=

while getopts s:p: opt; do
  case $opt in
  s)
      serial=$OPTARG
      ;;
  p)
      package=$OPTARG
      ;;
  esac
done
shift $((OPTIND - 1))
    
if [ -z $serial ]; then
    ID=""
else
    ID="-s $serial"
fi

if [[ $package == *l* ]]
then
    echo "uninstalling $LITE"
    adb $ID uninstall $LITE
fi

if [[ $package == *p* ]]
then 
    echo "uninstlling $PRO"
    adb $ID uninstall $PRO
fi