sm6375-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
This commit is contained in:
Lucchetto 2024-07-18 12:56:42 +05:30 committed by Anand S
parent 383dbba439
commit e35d475f33
No known key found for this signature in database
GPG key ID: 3B2983FA448B3D61
3 changed files with 30 additions and 0 deletions

View file

@ -333,6 +333,10 @@ PRODUCT_PACKAGES += \
libstagefright_softomx.vendor \
libstagefright_softomx_plugin.vendor
# Perf
PRODUCT_PACKAGES += \
libqti-perfd-client
# Permissions
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.audio.pro.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.audio.pro.xml \

View file

@ -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",
],
}

View file

@ -0,0 +1,10 @@
#include <stdint.h>
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() {}
}