Looking under the Android hood

Posted by David N. Welton Mon, 18 Feb 2008 17:15:00 GMT

Here's one way of having a look under the android hood:

mkdir /tmp/android/
cp .../android.jar /tmp/android
cd /tmp/android
unzip android.jar
... lots of files unzipped ...
for c in `find  android/ -name "*.class" | sed -e 's/.class//'`; do nice javap "$c" ; done > androidclasses.txt

That gives you a nice dump of all the classes available. It's a useful way to get an idea of some of the under the hood capabilities of Android. Perhaps someone wiser in the ways of Java hacking can suggest even better ways of accomplishing the same thing.

Of course, anything that's not officially documented is liable to change!

Tags ,  | 3 comments | no trackbacks

Comments

  1. Kevin said about 3 hours later:

    Take a look at the 'jad' decompiler: http://www.kpdus.com/jad.html

  2. Alicia said about 15 hours later:

    This should prove useful. I have been trying to explore the undercurrents of my android. thanks.

  3. Urmel said 1 day later:

    It's much easier to create a simple Java project in Eclipse, add the JAR as lib to the build path so you can browse the packages and classes directly from within Eclipse. If you have jadclipse (Eclipse Plugin for JAD, the java decompiler) installed you can view the whole source within the IDE.

Trackbacks

Use the following link to trackback from your own site:
http://journal.dedasys.com/articles/trackback/1850

Comments are disabled