Optionally use ART Service for optimizing packages.
It is only used when the system property dalvik.vm.useartservice is
true and the requested options are supported.
Test: adb root
adb shell cmd package force-dex-opt com.google.android.dialer
with dalvik.vm.useartservice=true and
DexoptOptions.DEXOPT_INSTALL_WITH_DEX_METADATA_FILE added to the
flags in DexOptHelper.forceDexOpt. Check that artd calls dex2oat and
that /data/dalvik-cache/x86_64/*@classes.dex are created and used
with:
adb shell am start -S -W -c android.intent.category.LAUNCHER \
-a android.intent.action.MAIN com.google.android.dialer
adb shell cat '/proc/`pidof com.google.android.dialer`/maps' \
| grep classes.dex
Bug: 251903639
Change-Id: Iea2fd2d1cb5d77e725f51c00211d7df43826700a
2 files changed