WITH_DEXPREOPT and ART configuration

213 views
Skip to first unread message

Kyle

unread,
Apr 2, 2016, 12:04:11 PM4/2/16
to android-platform
If I use WITH_DEXPREOPT := true when building my Android system image, it sounds like this includes the precompiled OAT files in the system image so that my first boot is faster.  However, it looks like ART still attempts to relocate system apps from /system to /data during boot.

Is this expected?  Or am I misunderstanding the impact WITH_DEXPREOPT is supposed to have?

Kyle

unread,
Apr 2, 2016, 12:04:45 PM4/2/16
to android-platform
(For reference, I'm building Lollipop 5.1.1)

Chih-Wei Huang

unread,
Jun 6, 2016, 3:54:43 PM6/6/16
to android-platform
Kyle於 2016年4月3日星期日 UTC+8上午12時04分11秒寫道:
If I use WITH_DEXPREOPT := true when building my Android system image, it sounds like this includes the precompiled OAT files in the system image so that my first boot is faster.  However, it looks like ART still attempts to relocate system apps from /system to /data during boot.

Is this expected?  Or am I misunderstanding the impact WITH_DEXPREOPT is supposed to have?

You also need:

WITH_DEXPREOPT_PIC := true

Read the article for more details:
https://source.android.com/devices/tech/dalvik/configure.html
Reply all
Reply to author
Forward
0 new messages