19
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

.apkをデコンパイルして難読化されているか確認する方法

Last updated at Posted at 2025-09-09

ProGuardでの難読化確認の際に調べたので備忘のためメモ

  1. apkファイルを作成

  2. dex2jarをインストール

  3. apkファイルをunzip(出力先は任意)

    unzip {{.apkファイルのパス}} -d /tmp/my_apk_out
    
  4. dex-toolsでdexファイルをjarにする

    cd {{インストールしたdex-toolsのディレクトリのパス}}
    sh d2j-dex2jar.sh -f /tmp/my_apk_out/classes.dex
    
  5. dex-tools/classes-dex2jar.jarが生成されるのでパスをコピー

  6. 出力用の適当なディレクトリを作る

  7. 出力用のディレクトリでjarファイルをunzip

    unzip {{classes-dex2jar.jarのパス}} -d {{出力したいディレクトリのパス}}
    
  8. 出力された.classファイルをAndroid Studioで開いて、難読化されているか確認

19
3
8

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
19
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?