blob: 22380cee3ed6f559821d9f99170791ed2acb3e96 [file] [log] [blame]
Andy McFadden753f32a2009-03-27 12:07:54 -07001dexdeps -- DEX external dependency dump
2
3
4This tool dumps a list of fields and methods that a DEX file uses but does
5not define. When combined with a list of public APIs, it can be used to
6determine whether an APK is accessing fields and calling methods that it
7shouldn't be. It may also be useful in determining whether an application
8requires a certain minimum API level to execute.
9
10Basic usage:
11
Dan Bornstein06d02062010-12-08 14:47:11 -080012 dexdeps [options] <file.{dex,apk,jar}> ...
Andy McFadden753f32a2009-03-27 12:07:54 -070013
14For zip archives (including .jar and .apk), dexdeps will look for a
15"classes.dex" entry.
16
17Supported 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 Bornstein06d02062010-12-08 14:47:11 -080028
29 --just-classes
30
31 Indicates that output should only include a list of classes, as
32 opposed to also listing fields and methods.