sm7250-common: lights: Rebrand for Xiaomi SM7250
Signed-off-by: xSylla <syllamodder@gmail.com>
This commit is contained in:
parent
7a4119089d
commit
5372c713af
@ -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",
|
||||
|
@ -1,5 +0,0 @@
|
||||
service vendor.light-default /vendor/bin/hw/android.hardware.lights-service.example
|
||||
class hal
|
||||
user nobody
|
||||
group nobody
|
||||
shutdown critical
|
5
lights/lights-xiaomi_lito.rc
Normal file
5
lights/lights-xiaomi_lito.rc
Normal 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
|
3
sepolicy/vendor/file_contexts
vendored
3
sepolicy/vendor/file_contexts
vendored
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user