Android APK Decompile

오픈소스·2024년 6월 23일
0
  1. apk 파일 다운로드
  2. dex2jar
    • https://github.com/pxb1988/dex2jar/releases 다운로드
    • In the root directory run: ./gradlew distZip
      • General error during semantic analysis: Unsupported class file major version 61

      • jdk-11.0.22_macos-aarch64_bin.dmg 설치
      • vi ~/.zshrc
        • export JAVA_HOME=`/usr/libexec/java_home -v 11.0.22`
    • cd dex-tools/build/distributions
    • unzip dex-tools-2.x.zip
    • cd dex-tools-2.x
    • sh d2j-dex2jar.sh -f <~/path/to/apk_to_decompile.apk>
      • <apk_to_decompile-dex2jar.jar>
  3. JD-GUI
    • https://java-decompiler.github.io/
      • jd-gui-osx-1.6.6.tar
    • jd-gui-osx-1.6.6/JD-GUI.zpp
      • unverified app: 마우스 오른쪽 버튼으로 실행
      • No suitable Java version found on your system!
        This program requires Java 1.8+
        Make sure you install the required Java version.

      • Contents/MacOS/universalJavaApplicationStub.sh 수정
        export JAVA_HOME=$(/usr/libexec/java_home -v11)
        https://118k.tistory.com/1010
        https://jizard.tistory.com/267
    • JD-GUI에서 <apk_to_decompile-dex2jar.jar> 열기

참고)

0개의 댓글