tags:

views:

27

answers:

1

The Android git tree provides a set of XML files describing the public API, e.g. base.git/api, e.g. base.git/api/7.xml (which contains the public API for Android 2.1).

Does anybody know how this file is generated? I would imagine that it uses some tool to process the android.jar file into an XML file (likely using java.lang.reflect).

I ask principally because I need to process this file, and the file contains many deficiencies, e.g. there are types which implement the java.util.List interface, but java.util.List isn't defined in the file, and generic information is missing from the file (e.g. java.util.Vector is generic, but there isn't any way to tell that from the XML file).

A: 

Hi,

The tool is called apicheck, you can find it in /out/host/linux-x86/bin/apicheck for example

ognian
Thank you! src is at: http://android.git.kernel.org/?p=platform/build.git;a=tree;f=tools/apicheck;h=14ccf7030bd01a33980d83f22d55f3c96a4ddaef;hb=HEAD
jonp
Actually, that doesn't appear to be it. Based on ApiCheck.java, it accepts two XML files as parameters, so I'm still not sure how the XML is generated. :-/
jonp