About the ART on Nexus 5

82 views
Skip to first unread message

Qiang Wang

unread,
May 9, 2015, 7:39:57 PM5/9/15
to android-...@googlegroups.com
Hi, all

I'm switching from Android 4.4 to Android 5.1.
I'm using Nexus 5.
I know well about the dalvik in which I can replace the framework.jar when need.
But I found that the framework.jar and other jars are packed into the boot.oat.

While  when I build the Android 5.1 source with the branch  android-5.1.1_r1
source build/envsetup.sh
lunch  aosp_hammerhead-eng
make -j4

I can't get the the boot.art and boot.oat.
I have to use the dex2oat command to convert the jars into the boot.art and boot.oat.
But when I replace the factory release files, the Android can't start normally.

So how should I do ?

thanks alot.

程超

unread,
May 26, 2015, 12:34:46 PM5/26/15
to android-...@googlegroups.com
HI Qiang:

You mean that the device can work normally but you can't find the boot.art and boot.oat files?

If so the ART may work in interpreter-only mode caused by default settings.

You can try to change the flag:

Example usage (in products BoardConfig.mk):

WITH_DEXPREOPT := true


https://source.android.com/devices/tech/dalvik/configure.html




在 2015年5月10日星期日 UTC+8上午7:39:57,Qiang Wang写道:

Reply all
Reply to author
Forward
0 new messages