Android lollipop framework.jar has no classes.dex

2,739 views
Skip to first unread message

Manvir Singh

unread,
Jan 4, 2015, 6:45:23 AM1/4/15
to android-...@googlegroups.com
Im trying to modify framework.jar after the modifications everything builds with no errors but the problem comes when i put the framework.jar on my device my device gives me a error basicly saying there is no "classes.dex" in framework.jar so i checked framework.jar by opening it as a zip and the only file in the jar is "preloaded-classes". So my question is how can I get it to compile so that the framework.jar has the "classes.dex" file?

Farooq Shiak

unread,
Jan 5, 2015, 1:34:01 AM1/5/15
to android-...@googlegroups.com
classes.dex as far as i know generated when you make apk file not jar file android accept .apk files not jar files

Miro Kropáček

unread,
Feb 9, 2015, 4:15:58 PM2/9/15
to android-...@googlegroups.com
No, this is a good question. Formerly, it was possible to download /system/framework/framework.jar, extract classes.dex from there and use them for experiments. Now the file classes.dex is not present anymore, where has it gone?

Eduardo Aguirre

unread,
Feb 13, 2015, 7:50:55 AM2/13/15
to android-...@googlegroups.com
AFAIK the virtual machine changed, so I think that maybe the dex files don't exist anymore

Miro Kropáček

unread,
Feb 13, 2015, 10:26:24 AM2/13/15
to android-...@googlegroups.com
Yes, of course. The question is how to access those new, odex, if I'm not mistaken, files? The SDK must be somewhere on the disk for sure :)

pip...@gmail.com

unread,
Feb 13, 2015, 12:44:04 PM2/13/15
to android-...@googlegroups.com
In Lollipop and the switch to ART and production builds with WITH_DEXPREOPT=true, the bootclasspath files are inside Boot.oat (/system/framework/arm/boot.oat), you won't wind anything inside the frameworks jars.
You have to build with WITH_DEXPREOPT=false to have the classic framework.jar with classes.dex inside.
Reply all
Reply to author
Forward
0 new messages