From 9939267f44f997972a05d9cb9c12d97b73596bd8 Mon Sep 17 00:00:00 2001 From: Martin Stjernholm Date: Wed, 19 Apr 2023 15:10:06 +0100 Subject: Propagate useartservice setting from experiment flag to global flag. Only propagate it if it turns off ART Service - if OEMs have disabled it with dalvik.vm.useartservice then we shouldn't enable it. Introduce a new art_boot binary to do it, which is only run at boot through a oneshot service. We cannot use setprop commands directly in the init script, because non-vendor APEXes are prohibited from using `on` actions (b/278862348). Test: boot -> Check that dalvik.vm.useartservice is not false adb root adb shell setprop persist.device_config.runtime_native_boot.useartservice false -> Check that dalvik.vm.useartservice is not false adb reboot -> Check that dalvik.vm.useartservice is false on udc-dev Test: Same as above, but with an unbundled ART module build installed on git_sc-release and git_tm-release. Test: boot -> Check that dalvik.vm.useartservice is unset adb root adb shell setprop persist.device_config.runtime_native_boot.useartservice true -> Check that dalvik.vm.useartservice is unset adb reboot -> Check that dalvik.vm.useartservice is unset on udc-dev with dalvik.vm.useartservice unset Bug: 272056722 Change-Id: Ifc552ed924818d7363aef822cd3060f7adfc92b6 (cherry picked from commit 4cdcab58b438a91c91cd5b09235c703251c6e328) Merged-In: Ifc552ed924818d7363aef822cd3060f7adfc92b6 --- build/apex/art_apex_test.py | 1 + 1 file changed, 1 insertion(+) (limited to 'build/apex/art_apex_test.py') diff --git a/build/apex/art_apex_test.py b/build/apex/art_apex_test.py index f55e3523c9..891fd0f0a5 100755 --- a/build/apex/art_apex_test.py +++ b/build/apex/art_apex_test.py @@ -550,6 +550,7 @@ class ReleaseTargetChecker: # removed in Android R. # Check binaries for ART. + self._checker.check_executable('art_boot') self._checker.check_executable('artd') self._checker.check_executable('oatdump') self._checker.check_executable("odrefresh") -- cgit v1.2.3-59-g8ed1b