aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastiano Barezzi <barezzisebastiano@gmail.com>2021-09-13 01:27:22 +0200
committerSebastiano Barezzi <barezzisebastiano@gmail.com>2021-09-20 14:19:36 +0200
commit91c106c2951ed596750e8f431dcba8b3abcc73b1 (patch)
tree17b6c7b7b84d2bd7f8631f50c176982b84c69963
parentc280fadac20ef907764c8f5adafbabae2d24e6a8 (diff)
sdm660-common: ir: Rebrand to Xiaomi SDM660
Change-Id: I20146c0bc065a460f5a86455ed9a21abce5f9417
-rw-r--r--ir/Android.bp6
-rw-r--r--ir/ConsumerIr.cpp2
-rw-r--r--ir/android.hardware.ir@1.0-service.xiaomi_sdm660.rc (renamed from ir/android.hardware.ir@1.0-service.rc)2
-rw-r--r--ir/android.hardware.ir@1.0-service.xiaomi_sdm660.xml (renamed from ir/android.hardware.ir@1.0-service.xml)0
-rw-r--r--ir/service.cpp2
-rw-r--r--sepolicy/vendor/file_contexts3
6 files changed, 9 insertions, 6 deletions
diff --git a/ir/Android.bp b/ir/Android.bp
index b9e782a..4db4936 100644
--- a/ir/Android.bp
+++ b/ir/Android.bp
@@ -5,11 +5,11 @@
//
cc_binary {
- name: "android.hardware.ir@1.0-service",
+ name: "android.hardware.ir@1.0-service.xiaomi_sdm660",
defaults: ["hidl_defaults"],
relative_install_path: "hw",
- init_rc: ["android.hardware.ir@1.0-service.rc"],
- vintf_fragments: ["android.hardware.ir@1.0-service.xml"],
+ init_rc: ["android.hardware.ir@1.0-service.xiaomi_sdm660.rc"],
+ vintf_fragments: ["android.hardware.ir@1.0-service.xiaomi_sdm660.xml"],
srcs: [
"ConsumerIr.cpp",
"service.cpp",
diff --git a/ir/ConsumerIr.cpp b/ir/ConsumerIr.cpp
index 14aa26a..d632d25 100644
--- a/ir/ConsumerIr.cpp
+++ b/ir/ConsumerIr.cpp
@@ -4,7 +4,7 @@
* SPDX-License-Identifier: Apache-2.0
*/
-#define LOG_TAG "ConsumerIrService"
+#define LOG_TAG "ConsumerIrService.xiaomi_sdm660"
#include <android-base/logging.h>
diff --git a/ir/android.hardware.ir@1.0-service.rc b/ir/android.hardware.ir@1.0-service.xiaomi_sdm660.rc
index b2f1f7d..320dd9a 100644
--- a/ir/android.hardware.ir@1.0-service.rc
+++ b/ir/android.hardware.ir@1.0-service.xiaomi_sdm660.rc
@@ -1,4 +1,4 @@
-service vendor.ir-hal-1-0 /vendor/bin/hw/android.hardware.ir@1.0-service
+service vendor.ir-hal-1-0 /vendor/bin/hw/android.hardware.ir@1.0-service.xiaomi_sdm660
interface android.hardware.ir@1.0::IConsumerIr default
class hal
user system
diff --git a/ir/android.hardware.ir@1.0-service.xml b/ir/android.hardware.ir@1.0-service.xiaomi_sdm660.xml
index a188190..a188190 100644
--- a/ir/android.hardware.ir@1.0-service.xml
+++ b/ir/android.hardware.ir@1.0-service.xiaomi_sdm660.xml
diff --git a/ir/service.cpp b/ir/service.cpp
index 3af6202..ad32be2 100644
--- a/ir/service.cpp
+++ b/ir/service.cpp
@@ -4,7 +4,7 @@
* SPDX-License-Identifier: Apache-2.0
*/
-#define LOG_TAG "android.hardware.ir@1.0-service"
+#define LOG_TAG "android.hardware.ir@1.0-service.xiaomi_sdm660"
#include <android-base/logging.h>
#include <hidl/HidlTransportSupport.h>
diff --git a/sepolicy/vendor/file_contexts b/sepolicy/vendor/file_contexts
index f1d7aee..04f6cec 100644
--- a/sepolicy/vendor/file_contexts
+++ b/sepolicy/vendor/file_contexts
@@ -21,6 +21,9 @@
/dev/lirc0 u:object_r:spidev_device:s0
/dev/spidev7.1 u:object_r:spidev_device:s0
+# IR HAL
+/(vendor|system/vendor)/bin/hw/android\.hardware\.ir@1\.0-service\.xiaomi_sdm660 u:object_r:hal_ir_default_exec:s0
+
# Light HAL
/(vendor|system/vendor)/bin/hw/android\.hardware\.light@2\.0-service\.xiaomi_sdm660 u:object_r:hal_light_default_exec:s0