기타[etc]
baksmali build, modify
Richong
2020. 12. 16. 08:57
SMALL
apk를 디컴파일 수행하다 보면, baksmali 부분에서 디컴파일이 막히는 부분이 존재한다.
안티 디컴파일(?) 처럼 인자 길이 등...
baksmali를 재빌드해서 사용하는 방법을 정리한다.
jdk 8 버전이 요구된다.
github.com/JesusFreke/smali/releases에서 원하는 버전의 smali 파일을 다운 받는다.
cd smali ./gradlew build
|
1
2
|
cd smali
./gradlew build
|
cs |
[윈도우면 bat파일 실행]
baksmali/build/libs/baksmali-<version>.jar 결과물은 여기에 나온다.
#baksmali 옵션
|
1
2
3
4
5
6
7
8
9
10
11
12
|
usage: baksmali [--version] [--help] [<command [<args>]]
Options:
--help,-h,-? - Show usage information
--version,-v - Print the version of baksmali and then exit
Commands:
deodex(de,x) - Deodexes an odex/oat file
disassemble(dis,d) - Disassembles a dex file.
dump(du) - Prints an annotated hex dump for the given dex file
help(h) - Shows usage information
list(l) - Lists various objects in a dex file.
|
cs |
LIST