Merge pull request #40 from devnoname120/patcher-module-remove-qti-support

Patcher module: abort for qti libraries
This commit is contained in:
Kavish Devar
2025-01-27 19:22:29 +05:30
committed by GitHub

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"