Allow vendor read access to 'ro.camera' property

The Camera HIDL wrapper needs access to
properties "ro.camera.req.fmq.size" and
"ro.camera.res.fmq.size" which control
the fast message queue size. Cases exist
where the default size is not sufficient.
The precise amount can be controlled by
the respective device configuration which
can set the previously mentioned properties.

Bug: 77865891
Test: Manual using application
Change-Id: I468bde2ee356e0d1d20f781fe6a3af48143cc4b2
Merged-In: I468bde2ee356e0d1d20f781fe6a3af48143cc4b2
This commit is contained in:
Emilian Peev
2019-04-25 14:46:28 -07:00
parent 1af82961b8
commit 84ea4994d1
3 changed files with 4 additions and 0 deletions

View File

@@ -7,6 +7,7 @@ allow hal_camera input_device:dir r_dir_perms;
allow hal_camera input_device:chr_file r_file_perms;
set_prop(hal_camera, camera_prop)
get_prop(hal_camera, vendor_ro_camera_prop)
#allow hal_camera sysfs_enable_ps_sensor:file w_file_perms;
r_dir_file(hal_camera, sysfs_type)

View File

@@ -1,4 +1,5 @@
type camera_prop, property_type;
type vendor_ro_camera_prop, property_type;
type cnd_prop, property_type;
type ims_prop, property_type;
type keymaster_prop, property_type;

View File

@@ -1,4 +1,6 @@
persist.camera. u:object_r:camera_prop:s0
ro.camera.req.fmq.size u:object_r:vendor_ro_camera_prop:s0
ro.camera.res.fmq.size u:object_r:vendor_ro_camera_prop:s0
htc.camera. u:object_r:camera_prop:s0
persist.vendor.sys.cnd u:object_r:cnd_prop:s0
persist.sys.cnd u:object_r:cnd_prop:s0