summaryrefslogtreecommitdiff
path: root/light/Android.bp
diff options
context:
space:
mode:
authordianlujitao <dianlujitao@lineageos.org>2020-02-06 23:02:18 +0800
committerMichael Bestas <mkbestas@lineageos.org>2020-04-30 00:49:34 +0300
commitc279339ab927e2bdb77aa42973ef3e320c025364 (patch)
treee0792b6e068209cc5bb2a5f12aa3039a625fba6d /light/Android.bp
parent938bdfae0a0a69e765d39121ba18de111df28eaa (diff)
sdm660-common: Improve lights HAL
* Use libbase logging and file utils * Read max brightness from sysfs * Convert constants to constexpr * Move helper functions to anonymous namespace * Bug fixes * Remove redundant chmod * Start the service after permissions are set up because it reads max brightness in constructor. Change-Id: I145d393c785e182060c5651e796d489f8c4d697b [SQUASHME] Let's dejank paths a bit... Change-Id: Ifd3d05588b0271e7a361aa4c7374a91fe5639a1f
Diffstat (limited to 'light/Android.bp')
-rw-r--r--light/Android.bp14
1 files changed, 6 insertions, 8 deletions
diff --git a/light/Android.bp b/light/Android.bp
index e05d16d..7a2474b 100644
--- a/light/Android.bp
+++ b/light/Android.bp
@@ -19,14 +19,12 @@ cc_binary {
init_rc: ["android.hardware.light@2.0-service.xiaomi_sdm660.rc"],
srcs: ["service.cpp", "Light.cpp"],
shared_libs: [
- "libhardware",
- "libhidlbase",
- "libhidltransport",
- "liblog",
- "libhwbinder",
- "libutils",
- "android.hardware.light@2.0",
+ "libbase",
+ "libhidlbase",
+ "libhidltransport",
+ "libutils",
+ "android.hardware.light@2.0",
],
relative_install_path : "hw",
- proprietary: true,
+ vendor: true,
}