From 8b60c822abbc57e662cf81409241deb1ccb972a3 Mon Sep 17 00:00:00 2001 From: SzuWei Lin Date: Mon, 10 Jul 2017 15:09:32 +0800 Subject: [PATCH] Force generic system image to load dex pre-opt from system Generic system image always generates dex pre-opt in system image, to improve the time of first boot. But the property ro.cp_system_other_odex could be defined in vendor image, so we disable the property in generic system image to force dex pre-opt be loaded from system image. Bug: 62645784 Test: Test the patch on a A/B project with GSI, confirm the dex pre-opt is loaded from GSI. Change-Id: I71b4a5bed517841b5f889d21d73429fa91da25ba Merged-In: I71b4a5bed517841b5f889d21d73429fa91da25ba (cherry picked from commit 5677b877fbeb500b6c81228e49ddb35375ca3446) --- target/board/treble_system.prop | 2 ++ 1 file changed, 2 insertions(+) diff --git a/target/board/treble_system.prop b/target/board/treble_system.prop index e69de29bb..bedf10c52 100644 --- a/target/board/treble_system.prop +++ b/target/board/treble_system.prop @@ -0,0 +1,2 @@ +# GSI always generate dex pre-opt in system image +ro.cp_system_other_odex=0