-
Notifications
You must be signed in to change notification settings - Fork 99
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·29 lines (24 loc) · 838 Bytes
/
Copy pathinstall.sh
File metadata and controls
executable file
·29 lines (24 loc) · 838 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
echo "[+] Starting Installation..."
cp apk2url.sh /usr/bin/apk2url 2>/dev/null
chmod +x /usr/bin/apk2url 2>/dev/null
if ! [ -x "$(command -v apk2url)" ]; then
echo '[!] Error: installation failed, use sudo' >&2
exit 1
fi
if ! [ -x "$(command -v apktool)" ]; then
echo '[!] apktool is not installed. Attempting to install...'
sudo apt-get update && sudo apt-get install -y apktool
if ! [ -x "$(command -v apktool)" ]; then
echo "[!] Error: Failed to install apktool. Exiting."
exit 1
fi
fi
if ! [ -x "$(command -v jadx)" ]; then
echo '[!] jadx is not installed. Attempting to install...'
sudo apt-get update && sudo apt-get install -y jadx
if ! [ -x "$(command -v jadx)" ]; then
echo "[!] Error: Failed to install jadx. Exiting."
exit 1
fi
fi
echo "[+] Success! Run with apk2url <name of apk file>"