sm7250-common: lights: Rebrand for Xiaomi SM7250

Signed-off-by: xSylla <syllamodder@gmail.com>
This commit is contained in:
SebaUbuntu 2021-06-27 17:32:29 +02:00 committed by xSylla
parent 7a4119089d
commit 5372c713af
5 changed files with 11 additions and 8 deletions

View File

@ -1,8 +1,8 @@
cc_binary {
name: "android.hardware.lights-service.example",
name: "android.hardware.lights-service.xiaomi_lito",
relative_install_path: "hw",
init_rc: ["lights-default.rc"],
vintf_fragments: ["lights-default.xml"],
init_rc: ["lights-xiaomi_lito.rc"],
vintf_fragments: ["lights-xiaomi_lito.xml"],
vendor: true,
shared_libs: [
"libbase",

View File

@ -1,5 +0,0 @@
service vendor.light-default /vendor/bin/hw/android.hardware.lights-service.example
class hal
user nobody
group nobody
shutdown critical

View File

@ -0,0 +1,5 @@
service vendor.light-xiaomi_lito /vendor/bin/hw/android.hardware.lights-service.xiaomi_lito
class hal
user nobody
group nobody
shutdown critical

View File

@ -59,6 +59,9 @@
/sys/devices/platform/soc/[a-z0-9]+.qcom,spmi/spmi-[0-1]/spmi0-0[0-9]/[a-z0-9]+.qcom,spmi:qcom,[a-z0-9]+@[0-9]:qcom,leds@d000/leds(/.*)? u:object_r:sysfs_leds:s0
/sys/devices/platform/soc/[a-z0-9]+.i2c/i2c-[0-9]/[0-9]-[0-9]+/leds(/.*)? u:object_r:sysfs_leds:s0
# Lights
/vendor/bin/hw/android\.hardware\.lights-service\.xiaomi_lito u:object_r:hal_light_default_exec:s0
# Mlipay
/vendor/bin/mlipayd@1\.1 u:object_r:hal_mlipay_default_exec:s0