power: Replace library name with ndk from ndk_platform for upgrade sdk version

Replace library name with suffix ndk from ndk_platform for upgrade sdk version

Change-Id: If9f07dd855bf5b13806a8c80036c49c2c2df8f51
Signed-off-by: Vinay Rijhwani <quic_vrijhwan@quicinc.com>
diff --git a/Android.mk b/Android.mk
index f2ef2b6..af78f3e 100644
--- a/Android.mk
+++ b/Android.mk
@@ -8,7 +8,14 @@
 
 LOCAL_MODULE_RELATIVE_PATH := hw
 # KEYSTONE(I1132378f14428bf511f3cea4f419e90a6e89f823,b/181709127)
-LOCAL_SHARED_LIBRARIES := liblog libcutils libdl libxml2 libbase libutils android.hardware.power-V1-ndk_platform libbinder_ndk
+LOCAL_SHARED_LIBRARIES := liblog libcutils libdl libxml2 libbase libutils libbinder_ndk
+
+ifeq ($(call math_gt_or_eq, $(PLATFORM_SDK_VERSION), 34), true)
+LOCAL_SHARED_LIBRARIES += android.hardware.power-V1-ndk
+else
+LOCAL_SHARED_LIBRARIES += android.hardware.power-V1-ndk_platform
+endif
+
 LOCAL_HEADER_LIBRARIES += libutils_headers
 LOCAL_HEADER_LIBRARIES += libhardware_headers
 LOCAL_SRC_FILES := power-common.c metadata-parser.c utils.c list.c hint-data.c powerhintparser.c Power.cpp main.cpp