forked from Findlee/android_tool_aot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaot
executable file
·44 lines (38 loc) · 774 Bytes
/
aot
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
39
40
41
42
43
44
#!/bin/bash
# APK Optimizer Tool v.2.0
# Author - Findlee
# E-Mail - [email protected]
if [[ ! -d tools ]]
then echo "Error: tools folder not found"
exit
fi
chmod -R 777 tools
mkdir -p app framework
while :
do
setterm -bold
tput setaf 1
clear
echo "============================================================="
echo "APK Optimizer Tool by Findlee v.2.0"
echo "============================================================="
tput sgr0
echo "
1)Deodex app and framework
2)Zipalign apk files
3)Optimize png images in apk files
4)CleanUp
5)Exit
"
read -p "Option: " opt
if [ "$?" != "1" ]
then
case $opt in
1)tools/deodex;continue;;
2)tools/zipalign-script;continue;;
3)tools/optipng-apk;continue;;
4)rm -Rf app app_zipaligned framework *. ;;
5)exit;;
esac
fi
done