mirror of
https://github.com/chararomandroid/android_device_samsung_a20
synced 2026-08-23 12:35:33 -04:00
universal7885: sepolicy: Rename for aidl hals
This commit is contained in:
parent
7d0a8dc3d0
commit
983a25b4d2
6 changed files with 20 additions and 17 deletions
|
|
@ -9,8 +9,9 @@
|
||||||
/data/debug(/.*)? u:object_r:eklogger_data_file:s0
|
/data/debug(/.*)? u:object_r:eklogger_data_file:s0
|
||||||
|
|
||||||
# SamsungParts
|
# SamsungParts
|
||||||
/system/bin/vendor\.eureka\.hardware\.parts@[0-9]\.[0-9]-service u:object_r:hal_parts_default_exec:s0
|
/system/bin/vendor\.eureka\.hardware\.parts-service u:object_r:hal_parts_default_exec:s0
|
||||||
|
|
||||||
# FMRadio
|
# FMRadio
|
||||||
/system/bin/vendor\.eureka\.hardware\.fmradio@[0-9]\.[0-9]-service u:object_r:hal_fmradio_default_exec:s0
|
/system/bin/vendor\.eureka\.hardware\.fmradio-service u:object_r:hal_fmradio_default_exec:s0
|
||||||
|
|
||||||
/dev/radio0 u:object_r:fm_radio_device:s0
|
/dev/radio0 u:object_r:fm_radio_device:s0
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,11 @@
|
||||||
type hal_fmradio_default, domain, coredomain;
|
type hal_fmradio_default, domain, coredomain;
|
||||||
type hal_fmradio_default_exec, exec_type, file_type, system_file_type;
|
type hal_fmradio_default_exec, exec_type, file_type, system_file_type;
|
||||||
add_hwservice(hal_fmradio_default, hal_fmradio_hwservice);
|
|
||||||
|
add_service(hal_fmradio_default, hal_fmradio_service);
|
||||||
init_daemon_domain(hal_fmradio_default);
|
init_daemon_domain(hal_fmradio_default);
|
||||||
|
|
||||||
hwbinder_use(hal_fmradio_default);
|
binder_use(hal_fmradio_default);
|
||||||
get_prop(hal_fmradio_default, hwservicemanager_prop);
|
get_prop(hal_fmradio_default, servicemanager_prop);
|
||||||
|
|
||||||
allow hal_fmradio_default sysfs_fmradio_tune:file rw_file_perms;
|
allow hal_fmradio_default sysfs_fmradio_tune:file rw_file_perms;
|
||||||
allow hal_fmradio_default sysfs_fmradio_tune:dir search;
|
allow hal_fmradio_default sysfs_fmradio_tune:dir search;
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,11 @@
|
||||||
type hal_parts_default, domain, coredomain;
|
type hal_parts_default, domain, coredomain;
|
||||||
type hal_parts_default_exec, exec_type, file_type, system_file_type;
|
type hal_parts_default_exec, exec_type, file_type, system_file_type;
|
||||||
add_hwservice(hal_parts_default, hal_parts_hwservice);
|
|
||||||
|
add_hwservice(hal_parts_default, hal_parts_service);
|
||||||
init_daemon_domain(hal_parts_default);
|
init_daemon_domain(hal_parts_default);
|
||||||
|
|
||||||
hwbinder_use(hal_parts_default);
|
binder_use(hal_parts_default);
|
||||||
get_prop(hal_parts_default, hwservicemanager_prop);
|
get_prop(hal_parts_default, servicemanager_prop);
|
||||||
|
|
||||||
# Battery
|
# Battery
|
||||||
allow hal_parts_default sysfs_sec_switch:dir { search };
|
allow hal_parts_default sysfs_sec_switch:dir { search };
|
||||||
|
|
|
||||||
|
|
@ -1,2 +0,0 @@
|
||||||
type hal_parts_hwservice, hwservice_manager_type;
|
|
||||||
type hal_fmradio_hwservice, hwservice_manager_type;
|
|
||||||
2
universal7885-common/sepolicy/private/service.te
Normal file
2
universal7885-common/sepolicy/private/service.te
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
type hal_parts_service, service_manager_type;
|
||||||
|
type hal_fmradio_service, service_manager_type;
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
# SamsungParts
|
# SamsungParts
|
||||||
vendor.eureka.hardware.parts::IBatteryStats u:object_r:hal_parts_hwservice:s0
|
vendor.eureka.hardware.parts::IBatteryStats u:object_r:hal_parts_service:s0
|
||||||
vendor.eureka.hardware.parts::IFlashBrightness u:object_r:hal_parts_hwservice:s0
|
vendor.eureka.hardware.parts::IFlashBrightness u:object_r:hal_parts_service:s0
|
||||||
vendor.eureka.hardware.parts::IDisplayConfigs u:object_r:hal_parts_hwservice:s0
|
vendor.eureka.hardware.parts::IDisplayConfigs u:object_r:hal_parts_service:s0
|
||||||
vendor.eureka.hardware.parts::ISwapOnData u:object_r:hal_parts_hwservice:s0
|
vendor.eureka.hardware.parts::ISwapOnData u:object_r:hal_parts_service:s0
|
||||||
vendor.eureka.hardware.parts::ISmartCharge u:object_r:hal_parts_hwservice:s0
|
vendor.eureka.hardware.parts::ISmartCharge u:object_r:hal_parts_service:s0
|
||||||
# FMRadio
|
# FMRadio
|
||||||
vendor.eureka.hardware.fmradio::IFMRadio u:object_r:hal_fmradio_hwservice:s0
|
vendor.eureka.hardware.fmradio::IFMRadio u:object_r:hal_fmradio_service:s0
|
||||||
Loading…
Reference in a new issue