Re: What is the purpose of /system/framework/framework.jar?

2,875 views
Skip to first unread message

Gulshan Singh

unread,
Jan 5, 2013, 12:17:34 PM1/5/13
to android-...@googlegroups.com
I guess the title of this question isn't very good. The framework.jar combined with the framework.odex together makes the file that is equivalent to the android.jar but without any classes stripped out.

The title of this question really should be what is the preloaded-classes file inside framework.jar.

On Thursday, January 3, 2013 8:35:33 PM UTC-5, Gulshan Singh wrote:
When I look at /system/framework/framework.jar in the source code the only file I see is a preloaded-classes file. The comment at the top of the file says:

# Classes which are preloaded by com.android.internal.os.ZygoteInit.
# Automatically generated by frameworks/base/tools/preload/WritePreloadedClassFile.java.
# MIN_LOAD_TIME_MICROS=1250
# MIN_PROCESSES=10

And the rest of the file is a list of classes.

What is the purpose of this file? 

Mateor

unread,
Jan 5, 2013, 12:35:53 PM1/5/13
to android-...@googlegroups.com
Preloaded classes are loaded by zygote upon boot. That is simply a text file within the framework.jar, you can play with it post build. My understanding is that the method of determining it's contents is mostly deeply informed guesswork. If you are adding stuff to the core (or perhaps security features) it is worth looking at.
Reply all
Reply to author
Forward
0 new messages