diff --git a/Android.mk b/Android.mk index 7327f25..f2ef2b6 100644 --- a/Android.mk +++ b/Android.mk @@ -8,14 +8,7 @@ include $(CLEAR_VARS) LOCAL_MODULE_RELATIVE_PATH := hw # KEYSTONE(I1132378f14428bf511f3cea4f419e90a6e89f823,b/181709127) -LOCAL_SHARED_LIBRARIES := liblog libcutils libdl libxml2 libbase libutils libbinder_ndk - -ifeq ( ,$(filter Tiramisu T 13, $(PLATFORM_VERSION))) - LOCAL_SHARED_LIBRARIES += android.hardware.power-V1-ndk_platform -else - LOCAL_SHARED_LIBRARIES += android.hardware.power-V1-ndk -endif - +LOCAL_SHARED_LIBRARIES := liblog libcutils libdl libxml2 libbase libutils android.hardware.power-V1-ndk_platform libbinder_ndk 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 diff --git a/config/neo/powerhint.xml b/config/neo/powerhint.xml new file mode 100644 index 0000000..406f053 --- /dev/null +++ b/config/neo/powerhint.xml @@ -0,0 +1,415 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/config/parrot/powerhint.xml b/config/parrot/powerhint.xml new file mode 100644 index 0000000..6e24a52 --- /dev/null +++ b/config/parrot/powerhint.xml @@ -0,0 +1,333 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/power-vendor-product.mk b/power-vendor-product.mk index 2a019cc..8d44b56 100644 --- a/power-vendor-product.mk +++ b/power-vendor-product.mk @@ -19,4 +19,8 @@ else ifeq ($(TARGET_BOARD_PLATFORM),taro) PRODUCT_COPY_FILES += vendor/qcom/opensource/power/config/taro/powerhint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.xml else ifeq ($(TARGET_BOARD_PLATFORM),kalama) PRODUCT_COPY_FILES += vendor/qcom/opensource/power/config/kalama/powerhint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.xml +else ifeq ($(TARGET_BOARD_PLATFORM),parrot) +PRODUCT_COPY_FILES += vendor/qcom/opensource/power/config/parrot/powerhint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.xml +else ifeq ($(TARGET_BOARD_PLATFORM),neo) +PRODUCT_COPY_FILES += vendor/qcom/opensource/power/config/neo/powerhint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.xml endif