Pass boot image flags based on system properties when invoking dex2oat.
This makes dex2oat align with what the runtime is using.
Also, this CL swaps the priority of
"persist.device_config.runtime_native_boot.profilebootclasspath" and
"dalvik.vm.profilebootclasspath". This is to reflect the fix in
https://r.android.com/2297438.
Bug: 229268202
Test: m test-art-host-gtest-art_artd_tests
Test: -
1. adb shell setprop dalvik.vm.profilebootclasspath true
2. adb shell stop && adb shell start
3. adb shell pm art optimize-package -m speed-profile -f com.google.android.youtube
4. adb shell am start -S -W -c android.intent.category.LAUNCHER -a android.intent.action.MAIN com.google.android.youtube
5. See the oat file and the vdex file in the process map.
Ignore-AOSP-First: ART Services.
Change-Id: I9fce9e34497dbbf0e01f9459085f9f35b32163a8
3 files changed