File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed
Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ # Created by Sujay Davalgi
4+ #
5+ # Stops the app
6+ #
7+ # Usage: ./killApk.sh [<search app string>]
8+ # Command line Arguments (Optional):
9+ # $1 - Input the apk search string
10+ # If the string is not provided, it will prompt the enter the apk string to search
11+
12+ . ./library/mainFunctions.sh
13+ . ./library/textFormatting.sh
14+ . ./library/deviceOperations.sh
15+ . ./library/deviceFileOperations.sh
16+ . ./library/apkOperations.sh
17+
18+ if [ $# -lt 1 ]; then
19+ pbold " \n Enter the apk string to search : "
20+ read APKname
21+ else
22+ APKname=" $1 "
23+ fi
24+
25+ getDeviceChoice
26+ displaySelectedDevice $deviceSerial
27+
28+ if [ " $( isAdbDevice $deviceSerial ) " == " true" ]; then
29+ apkOperations $deviceSerial ${APKname} " kill"
30+ else
31+ echo -e " Device is not in 'adb' mode"
32+ fi
You can’t perform that action at this time.
0 commit comments