From b15744fd7b47605724dc93e6723a8689491020bc Mon Sep 17 00:00:00 2001 From: LuK1337 Date: Tue, 10 Apr 2018 01:08:06 +0200 Subject: [PATCH] msm8976-common: Go back passthrough sensors implementation * Apparently hwbinder causes issues with adaptive brightness. Going back to passthrough seems to fix this issue. Change-Id: I47d60d2d7fb52b5001df8a0d385acddebaa0ec84 --- manifest.xml | 2 +- msm8976.mk | 3 +-- sepolicy/hal_sensors_default.te | 5 ----- sepolicy/system_server.te | 5 +++++ 4 files changed, 7 insertions(+), 8 deletions(-) delete mode 100644 sepolicy/hal_sensors_default.te diff --git a/manifest.xml b/manifest.xml index e714dcd..04328de 100644 --- a/manifest.xml +++ b/manifest.xml @@ -176,7 +176,7 @@ android.hardware.sensors - hwbinder + passthrough 1.0 ISensors diff --git a/msm8976.mk b/msm8976.mk index 6b77f69..91c5a2a 100644 --- a/msm8976.mk +++ b/msm8976.mk @@ -269,8 +269,7 @@ PRODUCT_COPY_FILES += \ # Sensors PRODUCT_PACKAGES += \ - android.hardware.sensors@1.0-impl \ - android.hardware.sensors@1.0-service + android.hardware.sensors@1.0-impl # TimeKeep PRODUCT_PACKAGES += \ diff --git a/sepolicy/hal_sensors_default.te b/sepolicy/hal_sensors_default.te deleted file mode 100644 index 20142b5..0000000 --- a/sepolicy/hal_sensors_default.te +++ /dev/null @@ -1,5 +0,0 @@ -allow hal_sensors_default sensors_data_file:file rw_file_perms; -allow hal_sensors_default iio_device:chr_file r_file_perms; - -allow hal_sensors_default efs_file:dir search; -r_dir_file(hal_sensors_default, app_efs_file) diff --git a/sepolicy/system_server.te b/sepolicy/system_server.te index a3e6ca1..d5bdfb8 100644 --- a/sepolicy/system_server.te +++ b/sepolicy/system_server.te @@ -1,3 +1,8 @@ allow system_server qti_debugfs:file r_file_perms; +allow system_server sensors_data_file:file rw_file_perms; +allow system_server iio_device:chr_file r_file_perms; + allow system_server sysfs_mdnie:file rw_file_perms; + +r_dir_file(system_server, app_efs_file)