- Download the Mac wrapper script. (Right click, Save Link As apktool)
- Download the latest version of Apktool.
- Rename the downloaded jar to apktool.jar.
- Move both apktool.jar and apktool to /usr/local/bin. (root needed)
- Make sure both files are executable. (chmod +x)
- Try running apktool via CLI.
공식문서대로 이 순서대로 설치하면된다.
1번 할때 나는 .txt 로 다운로드가 되었는데 이럴경우 확장자를 지우면 된다.
설치후 apktool d yours.apk -o output_folder
이렇게 하면 소스를 확인 가능하다.
근데 이렇게 나온 결과물이 좀 보기가 불편하다. build.gradle 도 없고..
2. jadx
- https://github.com/skylot/jadx/releases 사이트 들어가서 다운로드 받기

mac 이면 jadx-1.5.1.zip
window 이면 그 밑에 2개
jre 가 있으면 gui-1.5.1-win.zip
jre 없으면 jre-win.zip
- jadx-1.5.1/bin 으로 이동해서
./jadx -d output_folder your.apk 명령어 입력
이렇게 java 파일들은 원본소스와 거의 똑같이 원복 가능하다.

출처
https://apktool.org/docs/install
chatgpt