Merge "stable aidl vibrator policy" am: a71c74c188

am: 416aa29a30

Change-Id: Idf57558173f171f9cde4d9538614511b2bb30fcc
This commit is contained in:
Steven Moreland 2019-11-01 14:47:22 -07:00 committed by android-build-merger
commit 685d10c87f
5 changed files with 15 additions and 0 deletions

View file

@ -16,6 +16,7 @@
hal_can_bus_hwservice
hal_can_controller_hwservice
hal_tv_tuner_hwservice
hal_vibrator_service
init_svc_debug_prop
iorap_prefetcherd
iorap_prefetcherd_data_file

View file

@ -1,3 +1,5 @@
android.hardware.vibrator.IVibrator/default u:object_r:hal_vibrator_service:s0
accessibility u:object_r:accessibility_service:s0
account u:object_r:account_service:s0
activity u:object_r:activity_service:s0

View file

@ -4,6 +4,11 @@ binder_call(hal_vibrator_server, hal_vibrator_client);
hal_attribute_hwservice(hal_vibrator, hal_vibrator_hwservice)
add_service(hal_vibrator_server, hal_vibrator_service)
binder_call(hal_vibrator_server, servicemanager)
allow hal_vibrator_client hal_vibrator_service:service_manager find;
# vibrator sysfs rw access
allow hal_vibrator sysfs_vibrator:file rw_file_perms;
allow hal_vibrator sysfs_vibrator:dir search;

View file

@ -189,6 +189,12 @@ type window_service, system_api_service, system_server_service, service_manager_
type inputflinger_service, system_api_service, system_server_service, service_manager_type;
type wpantund_service, system_api_service, service_manager_type;
###
### HAL Services
###
type hal_vibrator_service, vendor_service, service_manager_type;
###
### Neverallow rules
###

View file

@ -61,6 +61,7 @@
/(vendor|system/vendor)/bin/hw/android\.hardware\.tv\.tuner@1\.0-service u:object_r:hal_tv_tuner_default_exec:s0
/(vendor|system/vendor)/bin/hw/android\.hardware\.usb@1\.0-service u:object_r:hal_usb_default_exec:s0
/(vendor|system/vendor)/bin/hw/android\.hardware\.vibrator@1\.0-service u:object_r:hal_vibrator_default_exec:s0
/(vendor|system/vendor)/bin/hw/android\.hardware\.vibrator-service.example u:object_r:hal_vibrator_default_exec:s0
/(vendor|system/vendor)/bin/hw/android\.hardware\.vr@1\.0-service u:object_r:hal_vr_default_exec:s0
/(vendor|system/vendor)/bin/hw/android\.hardware\.wifi\.offload@1\.0-service u:object_r:hal_wifi_offload_default_exec:s0
/(vendor|system/vendor)/bin/hw/android\.hardware\.wifi@1\.0-service u:object_r:hal_wifi_default_exec:s0