Merge "Enable resolution of startup const-string for non user builds"
am: 8fdf4e0f5b
Change-Id: Ia82d22d35bbc051fbcddd87bcab88c682c02cbf9
diff --git a/target/product/runtime_libart.mk b/target/product/runtime_libart.mk
index 9057e32..26ddeca 100644
--- a/target/product/runtime_libart.mk
+++ b/target/product/runtime_libart.mk
@@ -87,6 +87,15 @@
pm.dexopt.inactive=verify \
pm.dexopt.shared=speed
+# Currently for all non-user builds only.
+ifneq (user,$(TARGET_BUILD_VARIANT))
+
+# Enable resolution of startup const strings.
+PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
+ dalvik.vm.dex2oat-resolve-startup-strings=true
+
+endif
+
# Enable minidebuginfo generation unless overridden.
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
dalvik.vm.minidebuginfo=true \