diff --git a/private/compat/31.0/31.0.ignore.cil b/private/compat/31.0/31.0.ignore.cil index a3a113186..f9e073eb1 100644 --- a/private/compat/31.0/31.0.ignore.cil +++ b/private/compat/31.0/31.0.ignore.cil @@ -6,6 +6,7 @@ (typeattributeset new_objects ( new_objects artd_service + camera2_extensions_prop power_stats_service transformer_service )) diff --git a/private/property_contexts b/private/property_contexts index 0799e575c..62862e9ab 100644 --- a/private/property_contexts +++ b/private/property_contexts @@ -330,6 +330,9 @@ ro.camera.enableLazyHal u:object_r:camera_config_prop:s0 exact bool ro.camerax.extensions.enabled u:object_r:camerax_extensions_prop:s0 exact bool +ro.vendor.camera.extensions.package u:object_r:camera2_extensions_prop:s0 exact string +ro.vendor.camera.extensions.service u:object_r:camera2_extensions_prop:s0 exact string + # ART properties dalvik.vm. u:object_r:dalvik_config_prop:s0 ro.dalvik.vm. u:object_r:dalvik_config_prop:s0 diff --git a/public/app.te b/public/app.te index a49faafc5..e4b293f2d 100644 --- a/public/app.te +++ b/public/app.te @@ -593,5 +593,8 @@ neverallow appdomain system_bootstrap_lib_file:file neverallow appdomain system_bootstrap_lib_file:dir { open read getattr search }; +# Allow to read ro.vendor.camera.extensions.enabled +get_prop(appdomain, camera2_extensions_prop) + # Allow to ro.camerax.extensions.enabled get_prop(appdomain, camerax_extensions_prop) diff --git a/public/property.te b/public/property.te index 57146a46f..1d3f358fd 100644 --- a/public/property.te +++ b/public/property.te @@ -123,6 +123,7 @@ system_vendor_config_prop(build_odm_prop) system_vendor_config_prop(build_vendor_prop) system_vendor_config_prop(camera_calibration_prop) system_vendor_config_prop(camera_config_prop) +system_vendor_config_prop(camera2_extensions_prop) system_vendor_config_prop(camerax_extensions_prop) system_vendor_config_prop(charger_config_prop) system_vendor_config_prop(codec2_config_prop) diff --git a/public/vendor_init.te b/public/vendor_init.te index b0e1da519..0999f4880 100644 --- a/public/vendor_init.te +++ b/public/vendor_init.te @@ -218,6 +218,7 @@ allow vendor_init self:capability sys_nice; set_prop(vendor_init, apk_verity_prop) set_prop(vendor_init, bluetooth_a2dp_offload_prop) set_prop(vendor_init, bluetooth_audio_hal_prop) +set_prop(vendor_init, camera2_extensions_prop) set_prop(vendor_init, camerax_extensions_prop) set_prop(vendor_init, cpu_variant_prop) set_prop(vendor_init, dalvik_runtime_prop)