Skip to content

Commit

Permalink
sdm660-common: ir: Rebrand to Xiaomi SDM660
Browse files Browse the repository at this point in the history
Change-Id: I20146c0bc065a460f5a86455ed9a21abce5f9417
  • Loading branch information
SebaUbuntu committed Sep 20, 2021
1 parent c280fad commit 91c106c
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 6 deletions.
6 changes: 3 additions & 3 deletions ir/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion ir/ConsumerIr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion ir/service.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
3 changes: 3 additions & 0 deletions sepolicy/vendor/file_contexts
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 91c106c

Please sign in to comment.