Add sepolicy for IInputProcessor HAL
This sepolicy is needed so that the vendor can launch a new HAL process, and then this HAL process could join the servicemanager as an impl for IInputProcessor. This HAL will be used to contain the previous impl of InputClassifier and also new features that we are going to add. Bug: 210158587 Test: use together with a HAL implementation, make sure HAL runs Change-Id: I476c215ad622ea18b4ce5cba9c07ae3257a65817
This commit is contained in:
parent
ada5f690db
commit
c655bece6a
8 changed files with 16 additions and 0 deletions
|
@ -24,6 +24,7 @@
|
|||
hal_dumpstate_service
|
||||
hal_graphics_composer_service
|
||||
hal_health_service
|
||||
hal_input_processor_service
|
||||
hal_ir_service
|
||||
hal_nlinterceptor_service
|
||||
hal_radio_config_service
|
||||
|
|
|
@ -10,6 +10,7 @@ android.hardware.graphics.composer3.IComposer/default u:object_r:
|
|||
android.hardware.health.storage.IStorage/default u:object_r:hal_health_storage_service:s0
|
||||
android.hardware.health.IHealth/default u:object_r:hal_health_service:s0
|
||||
android.hardware.identity.IIdentityCredentialStore/default u:object_r:hal_identity_service:s0
|
||||
android.hardware.input.processor.IInputProcessor/default u:object_r:hal_input_processor_service:s0
|
||||
android.hardware.ir.IConsumerIr/default u:object_r:hal_ir_service:s0
|
||||
android.hardware.light.ILights/default u:object_r:hal_light_service:s0
|
||||
android.hardware.memtrack.IMemtrack/default u:object_r:hal_memtrack_service:s0
|
||||
|
|
|
@ -295,6 +295,7 @@ hal_client_domain(system_server, hal_gnss)
|
|||
hal_client_domain(system_server, hal_graphics_allocator)
|
||||
hal_client_domain(system_server, hal_health)
|
||||
hal_client_domain(system_server, hal_input_classifier)
|
||||
hal_client_domain(system_server, hal_input_processor)
|
||||
hal_client_domain(system_server, hal_ir)
|
||||
hal_client_domain(system_server, hal_light)
|
||||
hal_client_domain(system_server, hal_memtrack)
|
||||
|
|
|
@ -347,6 +347,7 @@ hal_attribute(health);
|
|||
hal_attribute(health_storage);
|
||||
hal_attribute(identity);
|
||||
hal_attribute(input_classifier);
|
||||
hal_attribute(input_processor);
|
||||
hal_attribute(ir);
|
||||
hal_attribute(keymaster);
|
||||
hal_attribute(keymint);
|
||||
|
|
5
public/hal_input_processor.te
Normal file
5
public/hal_input_processor.te
Normal file
|
@ -0,0 +1,5 @@
|
|||
# HwBinder IPC from client to server
|
||||
binder_call(hal_input_processor_client, hal_input_processor_server)
|
||||
binder_call(hal_input_processor_server, servicemanager)
|
||||
|
||||
hal_attribute_service(hal_input_processor, hal_input_processor_service)
|
|
@ -273,6 +273,7 @@ type hal_graphics_composer_service, vendor_service, protected_service, service_m
|
|||
type hal_health_service, vendor_service, protected_service, service_manager_type;
|
||||
type hal_health_storage_service, vendor_service, protected_service, service_manager_type;
|
||||
type hal_identity_service, vendor_service, protected_service, service_manager_type;
|
||||
type hal_input_processor_service, vendor_service, protected_service, service_manager_type;
|
||||
type hal_ir_service, vendor_service, protected_service, service_manager_type;
|
||||
type hal_keymint_service, vendor_service, protected_service, service_manager_type;
|
||||
type hal_light_service, vendor_service, protected_service, service_manager_type;
|
||||
|
|
1
vendor/file_contexts
vendored
1
vendor/file_contexts
vendored
|
@ -51,6 +51,7 @@
|
|||
/(vendor|system/vendor)/bin/hw/android\.hardware\.health\.storage-service\.default u:object_r:hal_health_storage_default_exec:s0
|
||||
/(vendor|system/vendor)/bin/hw/android\.hardware\.identity-service.example u:object_r:hal_identity_default_exec:s0
|
||||
/(vendor|system/vendor)/bin/hw/android\.hardware\.input\.classifier@1\.0-service u:object_r:hal_input_classifier_default_exec:s0
|
||||
/(vendor|system/vendor)/bin/hw/android\.hardware\.input\.processor-service u:object_r:hal_input_processor_default_exec:s0
|
||||
/(vendor|system/vendor)/bin/hw/android\.hardware\.ir@1\.0-service u:object_r:hal_ir_default_exec:s0
|
||||
/(vendor|system/vendor)/bin/hw/android\.hardware\.ir-service\.example u:object_r:hal_ir_default_exec:s0
|
||||
/(vendor|system/vendor)/bin/hw/android\.hardware\.keymaster@3\.0-service u:object_r:hal_keymaster_default_exec:s0
|
||||
|
|
5
vendor/hal_input_processor_default.te
vendored
Normal file
5
vendor/hal_input_processor_default.te
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
type hal_input_processor_default, domain;
|
||||
hal_server_domain(hal_input_processor_default, hal_input_processor)
|
||||
|
||||
type hal_input_processor_default_exec, exec_type, vendor_file_type, file_type;
|
||||
init_daemon_domain(hal_input_processor_default)
|
Loading…
Reference in a new issue