* Changes authored by dianlujitao in commits 7174356 ("Improve lights HAL") and
f8e30fd ("Fix battery light not lit after notification light off") are
adapted as following:
Type(HIDL) -> id(AIDL) in functions and maps
Note: Keep backlight in the map as per b9e44e5007
, allowing SF to set backlight.
Co-authored-by: dianlujitao <dianlujitao@lineageos.org>
Change-Id: I8960a1fe0b44097e703f3f067d4e432a12d26fc3
Signed-off-by: pix106 <sbordenave@gmail.com>
38 lines
1 KiB
Text
38 lines
1 KiB
Text
//
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
//
|
|
|
|
cc_binary {
|
|
defaults: ["hidl_defaults"],
|
|
name: "android.hardware.light@2.0-service.xiaomi_sdm660",
|
|
init_rc: ["hidl/android.hardware.light@2.0-service.xiaomi_sdm660.rc"],
|
|
vintf_fragments: ["hidl/android.hardware.light@2.0-service.xiaomi_sdm660.xml"],
|
|
srcs: ["hidl/service.cpp", "hidl/Light.cpp"],
|
|
shared_libs: [
|
|
"libbase",
|
|
"libhidlbase",
|
|
"libutils",
|
|
"android.hardware.light@2.0",
|
|
],
|
|
relative_install_path : "hw",
|
|
vendor: true,
|
|
}
|
|
|
|
cc_binary {
|
|
name: "android.hardware.lights-service.xiaomi_sdm660",
|
|
relative_install_path: "hw",
|
|
init_rc: ["aidl/android.hardware.lights.xiaomi_sdm660.rc"],
|
|
vintf_fragments: ["aidl/android.hardware.lights.xiaomi_sdm660.xml"],
|
|
vendor: true,
|
|
shared_libs: [
|
|
"libbase",
|
|
"liblog",
|
|
"libhardware",
|
|
"libbinder_ndk",
|
|
"android.hardware.light-ndk_platform",
|
|
],
|
|
srcs: [
|
|
"aidl/Lights.cpp",
|
|
"aidl/main.cpp",
|
|
],
|
|
}
|