Patcher module: abort for qti libraries

This commit is contained in:
Paul
2025-01-27 00:28:35 +01:00
parent f67e5defcf
commit a5c65a324f

View File

@@ -89,10 +89,9 @@ for lib_path in \
"/system/lib64/libbluetooth_qti.so" \
"/system_ext/lib64/libbluetooth_qti.so"; do
if [ -f "$lib_path" ]; then
SOURCE_FILE="$lib_path"
LIBRARY_NAME="$(basename "$lib_path")"
ui_print "Detected library: $SOURCE_FILE"
break
ui_print "Detected library: $lib_path"
[ -z "$SOURCE_FILE" ] && SOURCE_FILE="$lib_path"
[ -z "$LIBRARY_NAME" ] && LIBRARY_NAME="$(basename "$lib_path")"
fi
done
@@ -101,6 +100,11 @@ done
abort "No target library found."
}
if echo "$LIBRARY_NAME" | grep -q "qti"; then
ui_print "ERROR: \"qti\" Bluetooth libraries are NOT supported by the patcher and you won't be able to use aln. Aborting..."
abort "Bluetooth driver not compatible."
fi
ui_print "Calculating patch addresses for $SOURCE_FILE..."
# export R2_LIBDIR="$UNZIP_DIR/radare2-android/libs/arm64-v8a"