mirror of
https://github.com/chararomandroid/android_device_samsung_a20
synced 2026-08-23 04:25:33 -04:00
universal7885: address camera selinux denials
This commit is contained in:
parent
3d5c62859f
commit
6ef9da0b1e
5 changed files with 28 additions and 71 deletions
4
universal7885-common/sepolicy/vendor/fastbootd.te
vendored
Normal file
4
universal7885-common/sepolicy/vendor/fastbootd.te
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
allow fastbootd {
|
||||
dtb_block_device
|
||||
system_block_device
|
||||
}:blk_file rw_file_perms;
|
||||
|
|
@ -12,6 +12,8 @@ allow hal_camera_default sysfs_battery_writable:dir search;
|
|||
allow hal_camera_default sysfs_battery_writable:file r_file_perms;
|
||||
|
||||
get_prop(hal_camera_default, exported_camera_prop)
|
||||
set_prop(hal_camera_default, vendor_camera_prop)
|
||||
get_prop(hal_camera_default, exported_default_prop)
|
||||
|
||||
binder_call(hal_camera_default, system_server)
|
||||
binder_call(system_server, hal_camera_default)
|
||||
|
|
|
|||
|
|
@ -11,6 +11,9 @@ ro.vendor.radio. u:object_r:vendor_radio_prop:s0
|
|||
vendor.wifi. u:object_r:vendor_wifi_prop:s0
|
||||
ro.vendor.wifi. u:object_r:vendor_wifi_prop:s0
|
||||
|
||||
# fastbootd
|
||||
ro.fastbootd.available u:object_r:exported_default_prop:s0
|
||||
|
||||
# bluetooth
|
||||
persist.bluetooth_fw_ver u:object_r:bluetooth_prop:s0
|
||||
ro.bluetooth.tty u:object_r:bluetooth_prop:s0
|
||||
|
|
@ -29,6 +32,15 @@ persist.data.wda. u:object_r:persist_data_wda_prop:s0
|
|||
# CAMERA
|
||||
persist.sys.camera. u:object_r:camera_prop:s0
|
||||
persist.vendor.sys.camera. u:object_r:vendor_camera_prop:s0
|
||||
vendor.camera.aux. u:object_r:exported_camera_prop:s0
|
||||
|
||||
# Charger
|
||||
ro.charger.enable_suspend u:object_r:exported_default_prop:s0
|
||||
|
||||
# Samsung
|
||||
ro.product_ship u:object_r:exported_default_prop:s0
|
||||
ro.debug_level u:object_r:exported_default_prop:s0
|
||||
ro.hardware.chipname u:object_r:exported_default_prop:s0
|
||||
|
||||
# GPS
|
||||
ro.spid.gps. u:object_r:vendor_gps_prop:s0
|
||||
|
|
|
|||
Loading…
Reference in a new issue