apk 디컴파일

유시현·2025년 1월 7일

Android

목록 보기
36/55

1. APKTool

  1. Download the Mac wrapper script. (Right click, Save Link As apktool)
  2. Download the latest version of Apktool.
  3. Rename the downloaded jar to apktool.jar.
  4. Move both apktool.jar and apktool to /usr/local/bin. (root needed)
  5. Make sure both files are executable. (chmod +x)
  6. Try running apktool via CLI.

공식문서대로 이 순서대로 설치하면된다.
1번 할때 나는 .txt 로 다운로드가 되었는데 이럴경우 확장자를 지우면 된다.

설치후 apktool d yours.apk -o output_folder
이렇게 하면 소스를 확인 가능하다.

근데 이렇게 나온 결과물이 좀 보기가 불편하다. build.gradle 도 없고..

2. jadx

  1. 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

  1. jadx-1.5.1/bin 으로 이동해서
    ./jadx -d output_folder your.apk 명령어 입력

이렇게 java 파일들은 원본소스와 거의 똑같이 원복 가능하다.

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

profile
안드로이드 ,ios 공부하고 있습니다

0개의 댓글