diff --git a/private/file_contexts b/private/file_contexts index 41e1459dad3966bd583932ebcba33cc37377a596..6f8f7416af44d1c5ffebf0d90a804d8f1ef16781 100644 --- a/private/file_contexts +++ b/private/file_contexts @@ -241,6 +241,7 @@ /system/bin/hw/android\.hardware\.memtrack@1\.0-service u:object_r:hal_memtrack_default_exec:s0 /system/bin/hw/android\.hardware\.nfc@1\.0-service u:object_r:hal_nfc_default_exec:s0 /system/bin/hw/android\.hardware\.power@1\.0-service u:object_r:hal_power_default_exec:s0 +/system/bin/hw/android\.hardware\.sensors@1\.0-service u:object_r:hal_sensors_default_exec:s0 /system/bin/hw/android\.hardware\.thermal@1\.0-service u:object_r:hal_thermal_default_exec:s0 /system/bin/hw/android\.hardware\.vibrator@1\.0-service u:object_r:hal_vibrator_default_exec:s0 /system/bin/hw/android\.hardware\.vr@1\.0-service u:object_r:hal_vr_default_exec:s0 diff --git a/private/hal_sensors_default.te b/private/hal_sensors_default.te new file mode 100644 index 0000000000000000000000000000000000000000..5f294466998ba80b3bad67423f18c5ef083f0b5a --- /dev/null +++ b/private/hal_sensors_default.te @@ -0,0 +1,4 @@ +type hal_sensors_default, hal_sensors, domain; +type hal_sensors_default_exec, exec_type, file_type; + +init_daemon_domain(hal_sensors_default) diff --git a/public/attributes b/public/attributes index abe5955d88013d886468cbaadc93c0c808868a74..faf6b974298c6922c82bd4dd3123d51a39bc8da5 100644 --- a/public/attributes +++ b/public/attributes @@ -125,6 +125,7 @@ attribute hal_light; attribute hal_memtrack; attribute hal_nfc; attribute hal_power; +attribute hal_sensors; attribute hal_telephony; attribute hal_thermal; attribute hal_vibrator; diff --git a/public/hal_sensors.te b/public/hal_sensors.te new file mode 100644 index 0000000000000000000000000000000000000000..e3e48ab747427ed159cd41abcc5ce2eb5acb30cd --- /dev/null +++ b/public/hal_sensors.te @@ -0,0 +1,2 @@ +# hwbinder access +hwbinder_use(hal_sensors) diff --git a/public/system_server.te b/public/system_server.te index 052f632c3d7647f7867ae87ae2a150fc82f87683..b77cf15adb8448c70a26f7fe23122f3c19de08df 100644 --- a/public/system_server.te +++ b/public/system_server.te @@ -165,6 +165,7 @@ binder_call(system_server, hal_ir) binder_call(system_server, hal_light) binder_call(system_server, hal_memtrack) binder_call(system_server, hal_power) +binder_call(system_server, hal_sensors) binder_call(system_server, hal_thermal) binder_call(system_server, hal_vibrator) binder_call(system_server, hal_vr)