From 2e321b0e85d8cde004ee1f7887353a7a34bbf5de Mon Sep 17 00:00:00 2001 From: Mathieu Chartier Date: Thu, 24 Jan 2019 13:03:56 -0800 Subject: [PATCH] Enable layout compilation by default Aims to get additional coverage of the view compiler. Note that the compiled views are not currently loaded. Test: adb shell getprop Bug: 111895153 Change-Id: I7b172fc55bc47ee1593eb352fb9d9143f44a1e6c --- target/product/runtime_libart.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/target/product/runtime_libart.mk b/target/product/runtime_libart.mk index 4aad5f70e..bca3804a1 100644 --- a/target/product/runtime_libart.mk +++ b/target/product/runtime_libart.mk @@ -91,6 +91,10 @@ PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \ PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \ dalvik.vm.dex2oat-resolve-startup-strings=true +# Enable layout compilation by default. +PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \ + pm.precompile_layouts=true + # Enable minidebuginfo generation unless overridden. PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \ dalvik.vm.minidebuginfo=true \