# Allow to execute data files
allow platform_app app_data_file:file execute;

# Allow to find camera hal
allow platform_app hal_xiaomi_camera_hwservice:hwservice_manager find;

# Allow to call camera hidl
binder_call(platform_app, hal_camera_default)

# Allow to read camera props
get_prop(platform_app, vendor_camera_prop)
get_prop(platform_app, vendor_camera_sensor_prop)

allow platform_app cgroup:file r_file_perms;

# Allow to read display props
get_prop(platform_app, vendor_display_prop)

# Allow to read audio props
get_prop(platform_app, vendor_audio_prop)

# Allow to access proc/stat
allow platform_app proc_stat:file read;

# Camera Post Processing
typeattribute platform_app halclientdomain;
typeattribute platform_app vendor_hal_camerapostproc_xiaomi_client;

allow platform_app { vendor_hal_camerapostproc_xiaomi_hwservice hal_misys_hwservice }:hwservice_manager find;

