diff --git a/prebuilts/api/31.0/private/dexoptanalyzer.te b/prebuilts/api/31.0/private/dexoptanalyzer.te index d194acb02..b99349edf 100644 --- a/prebuilts/api/31.0/private/dexoptanalyzer.te +++ b/prebuilts/api/31.0/private/dexoptanalyzer.te @@ -51,3 +51,6 @@ allow dexoptanalyzer system_data_file:lnk_file { getattr }; # Allow query ART device config properties get_prop(dexoptanalyzer, device_config_runtime_native_prop) get_prop(dexoptanalyzer, device_config_runtime_native_boot_prop) + +# Allow dexoptanalyzer to read /apex/apex-info-list.xml +allow dex2oat apex_info_file:file r_file_perms; diff --git a/private/dexoptanalyzer.te b/private/dexoptanalyzer.te index d194acb02..b99349edf 100644 --- a/private/dexoptanalyzer.te +++ b/private/dexoptanalyzer.te @@ -51,3 +51,6 @@ allow dexoptanalyzer system_data_file:lnk_file { getattr }; # Allow query ART device config properties get_prop(dexoptanalyzer, device_config_runtime_native_prop) get_prop(dexoptanalyzer, device_config_runtime_native_boot_prop) + +# Allow dexoptanalyzer to read /apex/apex-info-list.xml +allow dex2oat apex_info_file:file r_file_perms;