Skip to content
A utility which lists all method and/or field references in a dex file.
Kotlin Shell
Branch: master
Clone or download
Latest commit 5ad7e29 Nov 7, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.buildscript Fix deploy script for new JDK Aug 7, 2019
dex-members-list Add dex-members-list functionality to diffuse Nov 1, 2019
diffuse Add very rudimentary aab text report Nov 8, 2019
gradle Start deploying diffuse and picnic artifacts Oct 16, 2019
picnic Convert anonymous type to named for clipped TextCanvas Oct 21, 2019
.editorconfig Add ktlint Sep 3, 2018
.gitignore
.travis.yml Fix Travis CI build Aug 7, 2019
CHANGELOG.md Add changelog and readme for 4.1.1 Sep 12, 2019
LICENSE.txt Initial commit. Dec 28, 2015
README.md Update README.md with correct binary location Sep 18, 2019
RELEASING.md Prepare version 1.1.0. Feb 5, 2016
build.gradle Clikt 2.3.0 Nov 8, 2019
gradle.properties Start deploying diffuse and picnic artifacts Oct 16, 2019
gradlew Tools and dependencies update Jul 20, 2019
gradlew.bat Tools and dependencies update Jul 20, 2019
settings.gradle

README.md

Dex Member List

A simple utility which lists all method or field references in an .apk, .aar, .dex, .jar, and/or .class files (and any combination of those).

Build by calling ./gradlew clean assemble. Run ./dex-members-list/build/dex-member-list or by passing in one or more arguments or by piping data through stdin.

For example:

$ ./dex-members-list/build/dex-member-list src/test/resources/types.dex
Types <init>()
Types returnsBoolean() → boolean
Types returnsRunnable() → Runnable
Types returnsString() → String
Types test(String)
Types test(String[])
Types test(boolean)
Types test(byte)
Types test(char)
Types test(double)
Types test(float)
Types test(int)
Types test(long)
Types test(short)
Types valueBoolean: boolean
Types valueByte: byte
Types valueChar: char
Types valueDouble: double
Types valueFloat: float
Types valueInt: int
Types valueLong: long
Types valueShort: short
Types valueString: String
Types valueStringArray: String[]
java.lang.Object <init>()

Pass --methods or --fields to list only methods or fields, respectively:

$ ./build/dex-member-list --methods src/test/resources/types.dex
Types <init>()
Types returnsBoolean() → boolean
Types returnsRunnable() → Runnable
Types returnsString() → String
Types test(String)
Types test(String[])
Types test(boolean)
Types test(byte)
Types test(char)
Types test(double)
Types test(float)
Types test(int)
Types test(long)
Types test(short)
java.lang.Object <init>()

$ ./build/dex-member-list --fields src/test/resources/types.dex
Types valueBoolean: boolean
Types valueByte: byte
Types valueChar: char
Types valueDouble: double
Types valueFloat: float
Types valueInt: int
Types valueLong: long
Types valueShort: short
Types valueString: String
Types valueStringArray: String[]

Use the --hide-synthetic-numbers flag to remove number suffix from synthetic accessor methods. This is useful to prevent noise when diffing output.

See the --help flag for more information about invocation.

You can also use this tool as a library. Add a dependency on com.jakewharton.dex:dex-member-list:4.1.1 and use DexParser.

License

Copyright 2015 Jake Wharton

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
You can’t perform that action at this time.