Showing dex method count by package

前端 未结 6 1336
无人共我
无人共我 2021-01-30 05:30

I\'m working on android app that\'s running up against the dex method count limit. Is there a simple way to show the method count grouped by package? I can get

6条回答
  •  执笔经年
    2021-01-30 05:56

    I've written a dex-method-counts tool that outputs per-package method counts faster and more accurately than the smali-based tools referenced in JesusFreke's answer¹. It can be installed from https://github.com/mihaip/dex-method-counts.

    [1] that script disassembles the .dex and re-assembles it by package, but this means that methods that are referenced by multiple packages are counted twice

提交回复
热议问题