mirror of
https://github.com/PixelExperience-Devices/device_xiaomi_sm6250-common.git
synced 2025-04-29 02:27:21 +09:00
sm6250-common: Add a shim to silence prebuilt audio HAL
For some reason Xiaomi built audio HAL with "very very verbose logging" enabled [1] and it spams really too much. Until Xiaomi builds audio HAL with sane logging level or a way to resolve OSS audio HAL issues is found, just shim the whole log function to return nothing. [1] https://github.com/LineageOS/android_hardware_qcom_audio/blob/c659e83702/hal/audio_hw.c#L41 Co-authored-by: Jan Engelmohr <jan.engelmohr@mailbox.tu-dresden.de> Change-Id: Iff278c44f203dc7b81bccb2281edfc3f5687a47c
This commit is contained in:
parent
8f5db33fc0
commit
b68c6447fa
@ -179,6 +179,9 @@ VENDOR_SECURITY_PATCH := 2021-09-01
|
|||||||
include device/qcom/sepolicy_vndr/SEPolicy.mk
|
include device/qcom/sepolicy_vndr/SEPolicy.mk
|
||||||
BOARD_SEPOLICY_DIRS += $(COMMON_PATH)/sepolicy/vendor
|
BOARD_SEPOLICY_DIRS += $(COMMON_PATH)/sepolicy/vendor
|
||||||
|
|
||||||
|
# Shims
|
||||||
|
TARGET_LD_SHIM_LIBS := vendor/lib/hw/audio.primary.atoll.so|fakelogprint.so
|
||||||
|
|
||||||
# Verified Boot
|
# Verified Boot
|
||||||
BOARD_AVB_ENABLE := true
|
BOARD_AVB_ENABLE := true
|
||||||
BOARD_AVB_MAKE_VBMETA_IMAGE_ARGS += --flags 3
|
BOARD_AVB_MAKE_VBMETA_IMAGE_ARGS += --flags 3
|
||||||
|
4
atoll.mk
4
atoll.mk
@ -205,6 +205,10 @@ PRODUCT_PACKAGES += \
|
|||||||
PRODUCT_PACKAGES += \
|
PRODUCT_PACKAGES += \
|
||||||
android.hardware.keymaster@4.1.vendor
|
android.hardware.keymaster@4.1.vendor
|
||||||
|
|
||||||
|
# Libshims
|
||||||
|
PRODUCT_PACKAGES += \
|
||||||
|
fakelogprint
|
||||||
|
|
||||||
# Lights
|
# Lights
|
||||||
PRODUCT_PACKAGES += \
|
PRODUCT_PACKAGES += \
|
||||||
android.hardware.light-service.xiaomi
|
android.hardware.light-service.xiaomi
|
||||||
|
12
libshims/Android.bp
Normal file
12
libshims/Android.bp
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
//
|
||||||
|
// Copyright (C) 2021 The LineageOS Project
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
//
|
||||||
|
|
||||||
|
cc_library_shared {
|
||||||
|
name: "fakelogprint",
|
||||||
|
vendor: true,
|
||||||
|
shared_libs: ["liblog"],
|
||||||
|
srcs: ["fakelogprint/fakelogprint.cpp"],
|
||||||
|
}
|
5
libshims/fakelogprint/fakelogprint.cpp
Normal file
5
libshims/fakelogprint/fakelogprint.cpp
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
#include <log/log.h>
|
||||||
|
|
||||||
|
int __android_log_print(int prio, const char* tag, const char* fmt, ...) {
|
||||||
|
return 0;
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user