diff --git a/manifest.xml b/manifest.xml index 8103baf..4da5205 100644 --- a/manifest.xml +++ b/manifest.xml @@ -115,7 +115,7 @@ android.hardware.ir - passthrough + hwbinder 1.0 IConsumerIr diff --git a/msm8974.mk b/msm8974.mk index 3bda121..7f550aa 100644 --- a/msm8974.mk +++ b/msm8974.mk @@ -1,5 +1,5 @@ # Copyright (C) 2012 The CyanogenMod Project -# Copyright (C) 2017-2019 The LineageOS Project +# Copyright (C) 2017-2020 The LineageOS Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -128,8 +128,7 @@ PRODUCT_COPY_FILES += \ # IR Blaster PRODUCT_PACKAGES += \ - android.hardware.ir@1.0-impl \ - consumerir.msm8974 + android.hardware.ir@1.0-service.samsung # Keylayouts PRODUCT_COPY_FILES += \ diff --git a/sepolicy/common/file_contexts b/sepolicy/common/file_contexts index 5a4c887..67c8f19 100644 --- a/sepolicy/common/file_contexts +++ b/sepolicy/common/file_contexts @@ -20,6 +20,7 @@ # executeables /system/vendor/bin/macloader u:object_r:macloader_exec:s0 +/(vendor|system/vendor)/bin/hw/android\.hardware\.ir@1\.0-service\.samsung u:object_r:hal_ir_default_exec:s0 /(vendor|system/vendor)/bin/hw/android\.hardware\.sensors@1\.0-service.samsung8974 u:object_r:hal_sensors_default_exec:s0 /(vendor|system/vendor)/bin/hw/vendor\.lineage\.livedisplay@2\.0-service\.samsung-qcom u:object_r:hal_lineage_livedisplay_sysfs_exec:s0 /(vendor|system/vendor)/bin/hw/vendor\.lineage\.touch@1\.0-service\.samsung u:object_r:hal_lineage_touch_default_exec:s0 diff --git a/sepolicy/common/hal_ir_default.te b/sepolicy/common/hal_ir_default.te new file mode 100644 index 0000000..0c41eee --- /dev/null +++ b/sepolicy/common/hal_ir_default.te @@ -0,0 +1,2 @@ +allow hal_ir_default sysfs_sec_ir:dir search; +allow hal_ir_default sysfs_sec_ir:file w_file_perms; diff --git a/sepolicy/common/system_server.te b/sepolicy/common/system_server.te index 73ebc56..b8a9ca0 100644 --- a/sepolicy/common/system_server.te +++ b/sepolicy/common/system_server.te @@ -9,7 +9,6 @@ allow system_server { }:file r_file_perms; allow system_server { - sysfs_sec_ir sysfs_sec_led sysfs_sec_touchkey }:file w_file_perms;