diff --git a/BoardConfigCommon.mk b/BoardConfigCommon.mk index dd04d13..fd1db6f 100644 --- a/BoardConfigCommon.mk +++ b/BoardConfigCommon.mk @@ -179,6 +179,9 @@ VENDOR_SECURITY_PATCH := 2021-09-01 include device/qcom/sepolicy_vndr/SEPolicy.mk BOARD_SEPOLICY_DIRS += $(COMMON_PATH)/sepolicy/vendor +# Shims +TARGET_LD_SHIM_LIBS := vendor/lib/hw/audio.primary.atoll.so|fakelogprint.so + # Verified Boot BOARD_AVB_ENABLE := true BOARD_AVB_MAKE_VBMETA_IMAGE_ARGS += --flags 3 diff --git a/atoll.mk b/atoll.mk index f60836a..8854933 100644 --- a/atoll.mk +++ b/atoll.mk @@ -205,6 +205,10 @@ PRODUCT_PACKAGES += \ PRODUCT_PACKAGES += \ android.hardware.keymaster@4.1.vendor +# Libshims +PRODUCT_PACKAGES += \ + fakelogprint + # Lights PRODUCT_PACKAGES += \ android.hardware.light-service.xiaomi diff --git a/libshims/Android.bp b/libshims/Android.bp new file mode 100644 index 0000000..d0a9535 --- /dev/null +++ b/libshims/Android.bp @@ -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"], +} diff --git a/libshims/fakelogprint/fakelogprint.cpp b/libshims/fakelogprint/fakelogprint.cpp new file mode 100644 index 0000000..a3c759f --- /dev/null +++ b/libshims/fakelogprint/fakelogprint.cpp @@ -0,0 +1,5 @@ +#include + +int __android_log_print(int prio, const char* tag, const char* fmt, ...) { + return 0; +}