Control use of dex2oat64 by device property

Gate use of dex2oat64 by a device property.

Bug: 153380900
Test: atest -c  installd_dexopt_test
Change-Id: I640085b5cd744cdc4563f565f8a914f9b1adc3ab
This commit is contained in:
David Sehr 2020-04-15 22:11:24 -07:00
parent 018214dd8e
commit 80a1403c62
3 changed files with 3 additions and 2 deletions

View file

@ -2,7 +2,7 @@
# System files
#
(/.*)? u:object_r:system_file:s0
/bin/dex2oat(d)? u:object_r:dex2oat_exec:s0
/bin/dex2oat(32|64)?(d)? u:object_r:dex2oat_exec:s0
/bin/dexoptanalyzer(d)? u:object_r:dexoptanalyzer_exec:s0
/bin/profman(d)? u:object_r:profman_exec:s0
/lib(64)?(/.*)? u:object_r:system_lib_file:s0

View file

@ -2,7 +2,7 @@
# System files
#
(/.*)? u:object_r:system_file:s0
/bin/dex2oat u:object_r:dex2oat_exec:s0
/bin/dex2oat(32|64)? u:object_r:dex2oat_exec:s0
/bin/dexoptanalyzer u:object_r:dexoptanalyzer_exec:s0
/bin/profman u:object_r:profman_exec:s0
/lib(64)?(/.*)? u:object_r:system_lib_file:s0

View file

@ -275,6 +275,7 @@ dalvik.vm.dex2oat-cpu-set u:object_r:exported_dalvik_prop:s0 e
dalvik.vm.dex2oat-filter u:object_r:exported_dalvik_prop:s0 exact string
dalvik.vm.dex2oat-flags u:object_r:exported_dalvik_prop:s0 exact string
dalvik.vm.dex2oat-threads u:object_r:exported_dalvik_prop:s0 exact int
dalvik.vm.dex2oat64.enabled u:object_r:exported_dalvik_prop:s0 exact bool
dalvik.vm.dexopt.secondary u:object_r:exported_dalvik_prop:s0 exact bool
dalvik.vm.execution-mode u:object_r:exported_dalvik_prop:s0 exact string
dalvik.vm.extra-opts u:object_r:exported_dalvik_prop:s0 exact string