From 8ca89fd96b55b8d09c7e4a848fe51b32e1b251a9 Mon Sep 17 00:00:00 2001 From: Arian Date: Wed, 14 Aug 2024 23:39:36 +0800 Subject: [PATCH] LG8n: Provide a static lib for power mode extension * [Shirayuki39] change xiaomi to transsion Change-Id: I3e2cf17bf1e733838e9e18afdf3f888e814593dc Signed-off-by: Shirayuki39 --- BoardConfig.mk | 2 +- power/Android.bp | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 power/Android.bp diff --git a/BoardConfig.mk b/BoardConfig.mk index 17e311e..fa89ba0 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -59,7 +59,7 @@ BUILD_BROKEN_VENDOR_PROPERTY_NAMESPACE := true # DT2W TARGET_TAP_TO_WAKE_NODE := /proc/gesture_function -TARGET_POWERHAL_MODE_EXT := $(DEVICE_PATH)/power/power-mode.cpp +TARGET_POWER_LIBPERFMGR_MODE_EXTENSION_LIB := //$(DEVICE_PATH):libperfmgr-ext-transsion # DTB BOARD_PREBUILT_DTBOIMAGE := $(KERNEL_PATH)/dtbo.img diff --git a/power/Android.bp b/power/Android.bp new file mode 100644 index 0000000..d02c4bf --- /dev/null +++ b/power/Android.bp @@ -0,0 +1,11 @@ +cc_library_static { + name: "libperfmgr-ext-transsion", + vendor: true, + srcs: [ + "power-mode.cpp", + ], + shared_libs: [ + "android.hardware.power-V4-ndk", + "libbase", + ], +}