-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathapkFileVersion.sh
More file actions
executable file
·38 lines (32 loc) · 1.03 KB
/
apkFileVersion.sh
File metadata and controls
executable file
·38 lines (32 loc) · 1.03 KB
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
38
#!/bin/bash
# Created by Sujay Davalgi
#
# Gives the version number, package name and other details of the apk
#
# Usage: ./apkVersion.sh [<File path>]
# Command line Arguments (Optional):
# $1 - Input the File complete path
# If the string is not provided, it will prompt to enter the file path
. ./library/mainFunctions.sh
. ./library/textFormatting.sh
. ./library/machineFileOperations.sh
. ./library/deviceOperations.sh
#. ./library/deviceFileOperations.sh
#. ./library/apkOperations.sh
if [ $# -lt 1 ]; then
pbold "\n Enter the apk path : "
read APKpath
else
APKpath="$1"
fi
echo ""
if [[ "$( checkYesNoOption $( checkMachineFileExist ${APKpath} ) )" == "yes" ]]; then
echo -e -n " Name : $( getMachineApkApplicationName "${APKpath}" )\n"
echo -e -n " Package : $( getMachineApkPackageName "${APKpath}" )\n"
echo -e -n " Version : $( getMachineApkCompleteVersionName "${APKpath}" )\n"
else
writeToLogsFile "@@ '${APKpath}' File Not Found - called from $( basename ${0} )"
echo -e -n " '${1}' File Not Found\n\n"
exit 1
fi
echo ""