Revert "use dalvik.vm.boot-dex2oat-threads inside microdroid"

This reverts commit eee72d6cb3d9f5c6001192247861b28cb0787827.

REASON: not needed. See the other CL in the same topic.
Bug: 197358423
Test: m
Change-Id: Ice0813ed9e349e37c83b163e2c21f17bb1105013
This commit is contained in:
Jiyong Park 2022-01-19 01:34:32 +09:00
parent 4da68c0fe4
commit c9a7de49ea
4 changed files with 3 additions and 11 deletions

View file

@ -44,6 +44,3 @@ dontaudit compos self:global_capability_class_set dac_override;
# TODO(b/209008712): Remove dex2oat once the migration is done.
domain_auto_trans(compos, odrefresh_exec, odrefresh)
domain_auto_trans(compos, dex2oat_exec, dex2oat)
# Allow compos to set dalvik.vm.boot-dex2oat-threads
set_prop(compos, dalvik_config_prop)

View file

@ -28,10 +28,7 @@ allow dex2oat system_file:file lock;
# Allow dex2oat to read /apex/apex-info-list.xml
allow dex2oat apex_info_file:file r_file_perms;
# dex2oat gets the concurrency level via this property which is set by compos
get_prop(dex2oat, dalvik_config_prop)
# Don't audit because we don't configure the compiler through system properties
# in the VM except for dalvik.vm.boot-dex2oat-threads
dontaudit dex2oat dalvik_config_ignored_prop:file { open read getattr map };
# in the VM.
dontaudit dex2oat dalvik_config_prop:file { open read getattr map };
dontaudit dex2oat device_config_runtime_native_prop:file { open read getattr map };

View file

@ -1,5 +1,4 @@
# Declare ART properties for CompOS
system_public_prop(dalvik_config_ignored_prop)
system_public_prop(dalvik_config_prop)
system_restricted_prop(device_config_runtime_native_prop)

View file

@ -163,8 +163,7 @@ ro.vndk.version u:object_r:build_prop:s0 exact string
heapprofd.enable u:object_r:heapprofd_prop:s0 exact bool
# ART properties for CompOS
dalvik.vm. u:object_r:dalvik_config_ignored_prop:s0 prefix
dalvik.vm. u:object_r:dalvik_config_prop:s0 prefix
persist.device_config.runtime_native. u:object_r:device_config_runtime_native_prop:s0 prefix
dalvik.vm.boot-dex2oat-threads u:object_r:dalvik_config_prop:s0 exact int
apexd.payload_metadata.path u:object_r:apexd_payload_metadata_prop:s0 exact string