lights: Adapt for sdm660

This commit is contained in:
Vasishath Kaushal 2018-06-06 21:34:13 +05:30
parent 44aa3a9119
commit b9eb4bc24c
3 changed files with 7 additions and 3 deletions

View file

@ -15,9 +15,9 @@
cc_binary {
relative_install_path: "hw",
defaults: ["hidl_defaults"],
name: "android.hardware.light@2.0-service.xiaomi_msm8998",
name: "android.hardware.light@2.0-service.xiaomi_sdm660",
proprietary: true,
init_rc: ["android.hardware.light@2.0-service.xiaomi_msm8998.rc"],
init_rc: ["android.hardware.light@2.0-service.xiaomi_sdm660.rc"],
srcs: ["service.cpp", "Light.cpp"],
shared_libs: [
"libhardware",

View file

@ -19,7 +19,7 @@ on boot
# Button backlight
chown system system /sys/class/leds/button-backlight1/brightness
service light-hal-2-0 /vendor/bin/hw/android.hardware.light@2.0-service.xiaomi_msm8998
service light-hal-2-0 /vendor/bin/hw/android.hardware.light@2.0-service.xiaomi_sdm660
class hal
user system
group system

View file

@ -127,3 +127,7 @@ PRODUCT_PACKAGES += \
#Fingerprint
PRODUCT_PACKAGES += \
android.hardware.biometrics.fingerprint@2.1-service.xiaomi_sdm660
#Lights
PRODUCT_PACKAGES += \
android.hardware.light@2.0-service.xiaomi_sdm660