mirror of
https://github.com/kavishdevar/librepods.git
synced 2026-03-25 23:45:27 +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/lib64/libbluetooth_qti.so" \
|
||||||
"/system_ext/lib64/libbluetooth_qti.so"; do
|
"/system_ext/lib64/libbluetooth_qti.so"; do
|
||||||
if [ -f "$lib_path" ]; then
|
if [ -f "$lib_path" ]; then
|
||||||
SOURCE_FILE="$lib_path"
|
ui_print "Detected library: $lib_path"
|
||||||
LIBRARY_NAME="$(basename "$lib_path")"
|
[ -z "$SOURCE_FILE" ] && SOURCE_FILE="$lib_path"
|
||||||
ui_print "Detected library: $SOURCE_FILE"
|
[ -z "$LIBRARY_NAME" ] && LIBRARY_NAME="$(basename "$lib_path")"
|
||||||
break
|
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
@@ -101,6 +100,11 @@ done
|
|||||||
abort "No target library found."
|
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..."
|
ui_print "Calculating patch addresses for $SOURCE_FILE..."
|
||||||
|
|
||||||
# export R2_LIBDIR="$UNZIP_DIR/radare2-android/libs/arm64-v8a"
|
# export R2_LIBDIR="$UNZIP_DIR/radare2-android/libs/arm64-v8a"
|
||||||
|
|||||||
Reference in New Issue
Block a user