From 09dfad32bedbd3c640b07e2b554525128c979e11 Mon Sep 17 00:00:00 2001 From: Lucchetto Date: Mon, 3 May 2021 23:00:24 +0800 Subject: [PATCH] sdm660-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 Signed-off-by: Lucchetto Signed-off-by: Chenyang Zhong --- libqti-perfd-client/Android.bp | 16 ++++++++++++++++ libqti-perfd-client/client.cpp | 10 ++++++++++ proprietary-files.txt | 4 ---- sdm660.mk | 4 ++++ 4 files changed, 30 insertions(+), 4 deletions(-) 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 00000000..e5cb610a --- /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 00000000..58d56c7c --- /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/proprietary-files.txt b/proprietary-files.txt index 36ea653f..f7a6c252 100644 --- a/proprietary-files.txt +++ b/proprietary-files.txt @@ -490,10 +490,6 @@ vendor/lib64/libmlipay@1.1.so|4dfa016779bcba8da2ff293e5112c678044c6474 vendor/lib64/vendor.xiaomi.hardware.mlipay@1.0.so|d0bb854210433066945f9d6e7943d08a8435e746 vendor/lib64/vendor.xiaomi.hardware.mlipay@1.1.so|785984e3c3b30671b78624484899dd418979cb56 -# Perf - from Taimen RP1A.201005.004 -vendor/lib/libqti-perfd-client.so|08b0cd20dbc79645ee73ea4fdc5221d41d09588a -vendor/lib64/libqti-perfd-client.so|cd3def30b6d444430ea8cea8956623d9d165eb7a - # Perf - from LA.UM.8.6.2.r1-08600-89xx.0 vendor/lib64/libadaptlaunch.so|cf784401fc827e5195d595a6d855ec89ea8c22bf vendor/lib64/libappclassifier.so|d5956c2dc9344ddcca0e78d84c393320c2e0cc97 diff --git a/sdm660.mk b/sdm660.mk index f7a169d7..1f5c1e29 100644 --- a/sdm660.mk +++ b/sdm660.mk @@ -438,6 +438,10 @@ PRODUCT_COPY_FILES += \ frameworks/native/data/etc/android.software.vulkan.deqp.level-2020-03-01.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.vulkan.deqp.level.xml \ frameworks/native/data/etc/android.hardware.ethernet.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.ethernet.xml +# Perfd (dummy) +PRODUCT_PACKAGES += \ + libqti-perfd-client + # Power PRODUCT_PACKAGES += \ android.hardware.power-service.xiaomi_sdm660-libperfmgr \