-
Notifications
You must be signed in to change notification settings - Fork 47
/
decompile.sh
32 lines (27 loc) · 1 KB
/
decompile.sh
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
#!/bin/bash
7z x framework.jar -oframework
7z x services.jar -oservices
if [ -f "framework/classes.dex" ]; then
java -jar smali/baksmali/build/libs/baksmali.jar d -a 34 "framework/classes.dex" -o classes
else
echo "framework/classes.dex not found, skipping decompilation."
fi
for i in {2..5}; do
if [ -f "framework/classes${i}.dex" ]; then
java -jar smali/baksmali/build/libs/baksmali.jar d -a 34 "framework/classes${i}.dex" -o "classes${i}"
else
echo "framework/classes${i}.dex not found, skipping decompilation."
fi
done
if [ -f "services/classes.dex" ]; then
java -jar smali/baksmali/build/libs/baksmali.jar d -a 34 "services/classes.dex" -o services_classes
else
echo "services/classes.dex not found, skipping decompilation."
fi
for i in {2..5}; do
if [ -f "services/classes${i}.dex" ]; then
java -jar smali/baksmali/build/libs/baksmali.jar d -a 34 "services/classes${i}.dex" -o "services_classes${i}"
else
echo "services/classes${i}.dex not found, skipping decompilation."
fi
done