Skip to content
Snippets Groups Projects
Commit c9d46d4f authored by Ashutosh Joshi's avatar Ashutosh Joshi Committed by ashutoshj
Browse files

Add sepolicy for sensors

Adding sepoilcy for sensors.

Test: Sensors work.
Change-Id: Ibbf0c1a22654a17b1573e3761ea9ccd816150255
parent 90ab4dfb
No related branches found
No related tags found
No related merge requests found
...@@ -241,6 +241,7 @@ ...@@ -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\.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\.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\.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\.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\.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 /system/bin/hw/android\.hardware\.vr@1\.0-service u:object_r:hal_vr_default_exec:s0
......
type hal_sensors_default, hal_sensors, domain;
type hal_sensors_default_exec, exec_type, file_type;
init_daemon_domain(hal_sensors_default)
...@@ -125,6 +125,7 @@ attribute hal_light; ...@@ -125,6 +125,7 @@ attribute hal_light;
attribute hal_memtrack; attribute hal_memtrack;
attribute hal_nfc; attribute hal_nfc;
attribute hal_power; attribute hal_power;
attribute hal_sensors;
attribute hal_telephony; attribute hal_telephony;
attribute hal_thermal; attribute hal_thermal;
attribute hal_vibrator; attribute hal_vibrator;
......
# hwbinder access
hwbinder_use(hal_sensors)
...@@ -165,6 +165,7 @@ binder_call(system_server, hal_ir) ...@@ -165,6 +165,7 @@ binder_call(system_server, hal_ir)
binder_call(system_server, hal_light) binder_call(system_server, hal_light)
binder_call(system_server, hal_memtrack) binder_call(system_server, hal_memtrack)
binder_call(system_server, hal_power) binder_call(system_server, hal_power)
binder_call(system_server, hal_sensors)
binder_call(system_server, hal_thermal) binder_call(system_server, hal_thermal)
binder_call(system_server, hal_vibrator) binder_call(system_server, hal_vibrator)
binder_call(system_server, hal_vr) binder_call(system_server, hal_vr)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment