raphael: Patch configs to drop NFC logging levels

This commit is contained in:
luk1337
2025-02-21 21:13:31 +00:00
committed by Joey Huab
parent 0c45a7e286
commit 98f4b395de

View File

@@ -56,11 +56,11 @@ fi
function blob_fixup() {
case "${1}" in
vendor/lib64/camera/components/com.qti.node.watermark.so)
vendor/lib64/camera/components/com.qti.node.watermark.so)
[ "$2" = "" ] && return 0
grep -q "libpiex_shim.so" "${2}" || "${PATCHELF}" --add-needed "libpiex_shim.so" "${2}"
;;
vendor/lib64/mediadrm/libwvdrmengine.so|vendor/lib64/libwvhidl.so)
vendor/lib64/mediadrm/libwvdrmengine.so|vendor/lib64/libwvhidl.so)
[ "$2" = "" ] && return 0
grep -q "libcrypto-v33.so" "${2}" || "${PATCHELF}" --replace-needed "libcrypto.so" "libcrypto-v33.so" "$2"
;;
@@ -68,6 +68,15 @@ function blob_fixup() {
[ "$2" = "" ] && return 0
grep -q "gettid: 1" "${2}" || echo "gettid: 1" >> "${2}"
;;
vendor/etc/libnfc-nci.conf)
[ "$2" = "" ] && return 0
sed -i "s/NFC_DEBUG_ENABLED=1/NFC_DEBUG_ENABLED=0/" "${2}"
;;
vendor/etc/libnfc-nxp.conf)
[ "$2" = "" ] && return 0
sed -i "/NXPLOG_\w\+_LOGLEVEL/ s/0x03/0x02/" "${2}"
sed -i "s/NFC_DEBUG_ENABLED=1/NFC_DEBUG_ENABLED=0/" "${2}"
;;
*)
return 1
;;