sdk: Add HIDL compat in LineageHardwareManager
* While we're at it, hide the use of getSupportedFeatures(),
since it only works for lineagehw java features, not hidl
* Cleanup some minor styling/organization issues
Change-Id: I905010bc7c6d7d8578eeca501be23f665127aa27
diff --git a/Android.bp b/Android.bp
index 6fbd4da..a68b149 100644
--- a/Android.bp
+++ b/Android.bp
@@ -1,5 +1,5 @@
//
-// Copyright (C) 2018 The LineageOS Project
+// Copyright (C) 2018-2019 The LineageOS Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -61,6 +61,11 @@
"android-support-v14-preference",
]
+lineage_sdk_LOCAL_STATIC_JAVA_LIBRARIES = [
+ "vendor.lineage.livedisplay-V2.0-java",
+ "vendor.lineage.touch-V1.0-java",
+]
+
// READ ME: ########################################################
//
// When updating this list of aidl files, consider if that aidl is
@@ -74,7 +79,7 @@
java_library {
name: "org.lineageos.platform",
- static_libs: ["telephony-ext"],
+ static_libs: ["telephony-ext"] + lineage_sdk_LOCAL_STATIC_JAVA_LIBRARIES,
libs: [
"services",
@@ -101,7 +106,7 @@
java_library_static {
name: "org.lineageos.platform.internal",
required: ["services"],
- static_libs: ["telephony-ext"],
+ static_libs: ["telephony-ext"] + lineage_sdk_LOCAL_STATIC_JAVA_LIBRARIES,
libs: lineage_sdk_LOCAL_JAVA_LIBRARIES,
srcs: [
@@ -125,6 +130,7 @@
name: "org.lineageos.platform.sdk",
required: ["services"],
libs: lineage_sdk_LOCAL_JAVA_LIBRARIES,
+ static_libs: lineage_sdk_LOCAL_STATIC_JAVA_LIBRARIES,
srcs: [
lineage_sdk_src + "/**/*.java",