Andy McFadden | 753f32a | 2009-03-27 12:07:54 -0700 | [diff] [blame] | 1 | dexdeps -- DEX external dependency dump |
| 2 | |
| 3 | |
| 4 | This tool dumps a list of fields and methods that a DEX file uses but does |
| 5 | not define. When combined with a list of public APIs, it can be used to |
| 6 | determine whether an APK is accessing fields and calling methods that it |
| 7 | shouldn't be. It may also be useful in determining whether an application |
| 8 | requires a certain minimum API level to execute. |
| 9 | |
| 10 | Basic usage: |
| 11 | |
Dan Bornstein | 06d0206 | 2010-12-08 14:47:11 -0800 | [diff] [blame^] | 12 | dexdeps [options] <file.{dex,apk,jar}> ... |
Andy McFadden | 753f32a | 2009-03-27 12:07:54 -0700 | [diff] [blame] | 13 | |
| 14 | For zip archives (including .jar and .apk), dexdeps will look for a |
| 15 | "classes.dex" entry. |
| 16 | |
| 17 | Supported options are: |
| 18 | |
| 19 | --format={brief,xml} |
| 20 | |
| 21 | Specifies the output format. |
| 22 | |
| 23 | "brief" produces one line of output for each field and method. Field |
| 24 | and argument types are shown as descriptor strings. |
| 25 | |
| 26 | "xml" produces a larger output file, readable with an XML browser. Types |
| 27 | are shown in a more human-readable form (e.g. "[I" becomes "int[]"). |
Dan Bornstein | 06d0206 | 2010-12-08 14:47:11 -0800 | [diff] [blame^] | 28 | |
| 29 | --just-classes |
| 30 | |
| 31 | Indicates that output should only include a list of classes, as |
| 32 | opposed to also listing fields and methods. |