-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathappVersion.sh
More file actions
executable file
·34 lines (28 loc) · 821 Bytes
/
appVersion.sh
File metadata and controls
executable file
·34 lines (28 loc) · 821 Bytes
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
#!/bin/bash
# Created by Sujay Davalgi
#
# Gives the installed version number & default system version number (if available) of the apk
#
# Usage: ./appVersion.sh [<search app string>]
# Command line Arguments (Optional):
# $1 - Input the apk search string
# If the string is not provided, it will prompt the enter the apk string to search
. ./library/mainFunctions.sh
. ./library/textFormatting.sh
. ./library/deviceOperations.sh
. ./library/deviceFileOperations.sh
. ./library/apkOperations.sh
if [ $# -lt 1 ]; then
pbold "\n Enter the apk string to search : "
read APKname
else
APKname="$1"
fi
getDeviceChoice
displaySelectedDevice $deviceSerial
if [ "$( isAdbDevice $deviceSerial )" == "true" ]; then
apkOperations $deviceSerial ${APKname} "version"
else
echo -e " Device is not in 'adb' mode"
fi
echo ""