mirror of
https://github.com/kavishdevar/librepods.git
synced 2026-01-28 22:01:50 +00:00
Patcher module: abort for qti libraries
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user