Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Proguard: List of removed

I want to check which classes and methods were removed. Any way to achieve this?

I know mapping.txt shows which symbols is obfuscated to what. But what is removed is not listed there as I know. Proguard web site does not describe about this.

like image 341
ytRino Avatar asked Aug 03 '17 08:08

ytRino


2 Answers

Add the following rules in proguard-rules.pro file in your Gradel Scripts directory

  • Generate a report of removed (or kept) code

    add -printusage usage.txt

  • To check report of the entry points that R8 determines from your project’s keep rules

    add -printseeds seeds.txt

after this, build signed apk. Then at the root of your projects these files will be generated.

like image 127
Makarand Avatar answered Sep 28 '22 18:09

Makarand


The option -printusage writes out the unused classes, fields, and methods.

Android Gradle builds by default write it to build/outputs/mapping/release/usage.txt.

like image 33
Eric Lafortune Avatar answered Sep 28 '22 18:09

Eric Lafortune