From d1c9828f55426b4dedea6b2675f16cbb76a4757e Mon Sep 17 00:00:00 2001 From: Lucchetto Date: Wed, 12 Aug 2020 14:14:36 +0200 Subject: [PATCH] sm6150-common: Create dummy libqti-perfd-client * proprietary perfd blobs can finally be nuked without breaking goodix * we could even map the functions to use libperfmgr powerhints in the future Change-Id: I124652f3041761966a3e3bd97c757fecc39cc5fb --- libqti-perfd-client/Android.bp | 16 ++++++++++++++++ libqti-perfd-client/client.cpp | 10 ++++++++++ sm6150.mk | 4 ++++ 3 files changed, 30 insertions(+) create mode 100644 libqti-perfd-client/Android.bp create mode 100644 libqti-perfd-client/client.cpp diff --git a/libqti-perfd-client/Android.bp b/libqti-perfd-client/Android.bp new file mode 100644 index 0000000..e5cb610 --- /dev/null +++ b/libqti-perfd-client/Android.bp @@ -0,0 +1,16 @@ +cc_library_shared { + name: "libqti-perfd-client", + proprietary: true, + defaults: ["hidl_defaults"], + srcs: [ + "client.cpp", + ], + cflags: [ + "-Werror", + "-Wextra", + "-Wall", + ], + shared_libs: [ + "libutils", + ], +} diff --git a/libqti-perfd-client/client.cpp b/libqti-perfd-client/client.cpp new file mode 100644 index 0000000..58d56c7 --- /dev/null +++ b/libqti-perfd-client/client.cpp @@ -0,0 +1,10 @@ +#include + +namespace android { + extern "C" void perf_get_feedback() {} + extern "C" void perf_hint() {} + extern "C" void perf_lock_acq() {} + extern "C" void perf_lock_cmd() {} + extern "C" void perf_lock_rel() {} + extern "C" void perf_lock_use_profile() {} +} diff --git a/sm6150.mk b/sm6150.mk index 0a648e4..eb9b790 100644 --- a/sm6150.mk +++ b/sm6150.mk @@ -274,6 +274,10 @@ DEVICE_PACKAGE_OVERLAYS += \ PRODUCT_ENFORCE_RRO_TARGETS += * +# Perf +PRODUCT_PACKAGES += \ + libqti-perfd-client + # Power PRODUCT_PACKAGES += \ android.hardware.power-service.xiaomi-libperfmgr