You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 1, 2024. It is now read-only.
Simple tool to output per-package method counts in an Android DEX executable grouped by package, to aid in getting under the 65,536 referenced method limit. More details are in this blog post.
To run it with Ant:
$ ant jar
$ ./dex-method-counts path/to/App.apk # or .zip or .dex or directory
or with Gradle:
$ ./gradlew assemble
$ ./dex-method-counts path/to/App.apk # or .zip or .dex or directory
--count-fields: Provide the field count instead of the method count.
--include-classes: Treat classes as packages and provide per-class method counts. One use-case is for protocol buffers where all generated code in a package ends up in a single class.
--package-filter=...: Only consider methods whose fully qualified name starts with this prefix.
--max-depth=...: Limit how far into package paths (or inner classes, with --include-classes) counts should be reported for.
--filter=[all|defined_only|referenced_only]: Whether to count all methods (the default), just those defined in the input file, or just those that are referenced in it. Note that referenced methods count against the 64K method limit too.
--output-style=[flat|tree]: Print the output as a list or as an indented tree.