Apk 파일 한꺼번에 decompile 하기
OS/Android 2021. 12. 7. 11:06반응형
1. Decompiler 다운로드 및 압축 풀기
https://github.com/skylot/jadx/releases
$ mkdir jadx
$ mv jadx-1.3.0.zip jadx
$ cd jadx
$ unzip jadx-1.3.0.zip
Archive: jadx-1.3.0.zip
inflating: NOTICE
creating: lib/
inflating: lib/logback-classic-1.2.7.jar
inflating: lib/error_prone_annotations-2.5.1.jar
inflating: lib/jsr305-3.0.2.jar
inflating: lib/aapt2-proto-4.2.1-7147631.jar
inflating: lib/smali-2.5.2.jar
inflating: lib/dexlib2-2.5.2.jar
inflating: lib/ST4-4.0.8.jar
inflating: lib/guava-30.1.1-jre.jar
inflating: lib/reactive-streams-1.0.3.jar
inflating: lib/flatlaf-1.6.4.jar
........
2. apk2java.sh
#! sh
apks=(test1.apk
test2.apk
test3.apk)
mkdir extract
cd extract
for (( i = 0 ; i < ${#apks[@]} ; i++ )) ; do
~/jadx/bin/jadx ../${apks[$i]}
done
3. 실행 결과
$ ls
apk2java.sh test1.apk test2.apk test3.apk
$ ./apk2java.sh
INFO - loading ...
INFO - processing ...
ERROR - finished with errors, count: 4
INFO - loading ...
INFO - processing ...
ERROR - finished with errors, count: 4
INFO - loading ...
INFO - processing ...
ERROR - finished with errors, count: 4
$ ls extract
test1 test2 test3
반응형