kunlun2: 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 <lucchetto.tie@live.com> Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
This commit is contained in:
parent
647ce59262
commit
779979796b
3 changed files with 30 additions and 0 deletions
|
@ -236,6 +236,10 @@ PRODUCT_COPY_FILES += \
|
||||||
PRODUCT_PACKAGES += \
|
PRODUCT_PACKAGES += \
|
||||||
netutils-wrapper-1.0
|
netutils-wrapper-1.0
|
||||||
|
|
||||||
|
# Perfd (dummy)
|
||||||
|
PRODUCT_PACKAGES += \
|
||||||
|
libqti-perfd-client
|
||||||
|
|
||||||
# Permissions
|
# Permissions
|
||||||
PRODUCT_COPY_FILES += \
|
PRODUCT_COPY_FILES += \
|
||||||
frameworks/native/data/etc/android.hardware.audio.low_latency.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.audio.low_latency.xml \
|
frameworks/native/data/etc/android.hardware.audio.low_latency.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.audio.low_latency.xml \
|
||||||
|
|
16
libqti-perfd-client/Android.bp
Normal file
16
libqti-perfd-client/Android.bp
Normal 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",
|
||||||
|
],
|
||||||
|
}
|
10
libqti-perfd-client/client.cpp
Normal file
10
libqti-perfd-client/client.cpp
Normal 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() {}
|
||||||
|
}
|
Loading…
Reference in a new issue