hikey/hikey960: powerHAL: Move to vendor partition for treble

Change-Id: I4762e9ce17095852dc271976eccb39a2341b3a85
Signed-off-by: vishal <vishal.bhoj@linaro.org>
Signed-off-by: John Stultz <john.stultz@linaro.org>
diff --git a/power/Android.mk b/power/Android.mk
index 187d56e..53e464e 100644
--- a/power/Android.mk
+++ b/power/Android.mk
@@ -19,9 +19,13 @@
 # hw/<POWERS_HARDWARE_MODULE_ID>.<ro.hardware>.so
 include $(CLEAR_VARS)
 
-LOCAL_MODULE_RELATIVE_PATH := hw
 LOCAL_SHARED_LIBRARIES := liblog libcutils
 LOCAL_SRC_FILES := power_hikey.c
+
+LOCAL_MODULE_RELATIVE_PATH := hw
+LOCAL_VENDOR_MODULE := true
+
+LOCAL_HEADER_LIBRARIES += libhardware_headers
 LOCAL_MODULE := power.$(TARGET_BOARD_PLATFORM)
 LOCAL_MODULE_TAGS := optional
 include $(BUILD_SHARED_LIBRARY)
diff --git a/power/power_hikey.c b/power/power_hikey.c
index 34264d8..f9a3ddb 100644
--- a/power/power_hikey.c
+++ b/power/power_hikey.c
@@ -31,7 +31,7 @@
 //#define LOG_NDEBUG 0
 
 #define LOG_TAG "HiKeyPowerHAL"
-#include <utils/Log.h>
+#include <log/log.h>
 
 #include <hardware/hardware.h>
 #include <hardware/power.h>