Add QTI health implementation

Currently, this only has qti_healthd_board_init() that waits for
battery power supply for a max timeout of 5 seconds. This is to
ensure by the time health HAL service starts, battery power
supply device is available. Without this, health HAL couldn't
find battery power supply sometimes because of the time taken
for battery charger driver to probe on platforms where it can
happen only after remote subsytem is bought out of reset.

Change-Id: I96ee53ef15dd61c98d317e9ec221456ca564249f
diff --git a/Android.bp b/Android.bp
index 3b5b836..782d1b7 100644
--- a/Android.bp
+++ b/Android.bp
@@ -1,5 +1,3 @@
-
-
 cc_library_static {
     name: "libhealthd.msm",
     srcs: [
@@ -20,3 +18,38 @@
     ],
 
 }
+
+cc_library_shared {
+    name: "android.hardware.health@2.1-impl-qti",
+    stem: "android.hardware.health@2.0-impl-2.1-qti",
+    vendor: true,
+    recovery_available: true,
+
+    relative_install_path: "hw",
+
+    srcs: [
+        "healthimpl.cpp",
+    ],
+
+    cflags: [
+        "-Wall",
+        "-Werror",
+    ],
+
+    static_libs: [
+        "android.hardware.health@1.0-convert",
+        "libbatterymonitor",
+        "libhealthloop",
+        "libhealth2impl",
+    ],
+
+    shared_libs: [
+        "libbase",
+        "libcutils",
+        "libhidlbase",
+        "liblog",
+        "libutils",
+        "android.hardware.health@2.0",
+        "android.hardware.health@2.1",
+    ],
+}