Files
vendor_xiaomi_miuicamera-surya/sepolicy/vendor/platform_app.te
T
Raya Mahardika e55975b0dc sepolicy: Drop vendor_fp_prop access for platform_app
vendor_fp_prop is declared as a vendor_internal_prop on surya,
which violates Treble sepolicy neverallow rules when accessed
by coredomain/platform_app:

  neverallow { coredomain -init -dumpstate } {
    vendor_property_type
    vendor_internal_property_type
    -vendor_restricted_property_type
    -vendor_public_property_type
  }:file no_rw_file_perms;

MiuiCamera does not require fingerprint property access.

Change-Id: Ia900a8e74dac400656dd79659a0c265bc3134e1b
2026-10-27 22:47:15 +00:00

31 lines
916 B
Plaintext

hal_client_domain(platform_app, vendor_hal_camerapostproc_xiaomi)
binder_use(platform_app)
binder_call(platform_app, hal_camera_default)
binder_call(platform_app, vendor_hal_camerapostproc_xiaomi)
allow platform_app vendor_hal_camerapostproc_xiaomi_hwservice:hwservice_manager find;
allow platform_app vendor_hal_misys_hwservice:hwservice_manager find;
allow platform_app adsprpcd_file:dir { open read search };
allow platform_app vendor_xdsp_device:chr_file { ioctl open read write };
allow platform_app vendor_qdsp_device:chr_file { ioctl open read write };
allow platform_app vendor_camera_data_file:dir { append map r_dir_perms write };
allow platform_app vendor_camera_data_file:file { getattr open read };
allow platform_app app_data_file:file execute;
allow platform_app proc_stat:file { read };
# Properties
get_prop(platform_app, vendor_audio_prop)
get_prop(platform_app, vendor_display_prop)