diff --git a/BoardConfig.mk b/BoardConfig.mk index 028de3b..c8aaf6f 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-xiaomi # DTB BOARD_PREBUILT_DTBOIMAGE := $(KERNEL_PATH)/dtbo.img diff --git a/power/Android.bp b/power/Android.bp new file mode 100644 index 0000000..91ccc3c --- /dev/null +++ b/power/Android.bp @@ -0,0 +1,11 @@ +cc_library_static { + name: "libperfmgr-ext-xiaomi", + vendor: true, + srcs: [ + "power-mode.cpp", + ], + shared_libs: [ + "android.hardware.power-V4-ndk", + "libbase", + ], +}