Skip to content

Commit b607885

Browse files
authored
Merge pull request #40 from devnoname120/patcher-module-remove-qti-support
Patcher module: abort for qti libraries
2 parents 58b3ee4 + a5c65a3 commit b607885

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

root-module/customize.sh

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,9 @@ for lib_path in \
8989
"/system/lib64/libbluetooth_qti.so" \
9090
"/system_ext/lib64/libbluetooth_qti.so"; do
9191
if [ -f "$lib_path" ]; then
92-
SOURCE_FILE="$lib_path"
93-
LIBRARY_NAME="$(basename "$lib_path")"
94-
ui_print "Detected library: $SOURCE_FILE"
95-
break
92+
ui_print "Detected library: $lib_path"
93+
[ -z "$SOURCE_FILE" ] && SOURCE_FILE="$lib_path"
94+
[ -z "$LIBRARY_NAME" ] && LIBRARY_NAME="$(basename "$lib_path")"
9695
fi
9796
done
9897

@@ -101,6 +100,11 @@ done
101100
abort "No target library found."
102101
}
103102

103+
if echo "$LIBRARY_NAME" | grep -q "qti"; then
104+
ui_print "ERROR: \"qti\" Bluetooth libraries are NOT supported by the patcher and you won't be able to use aln. Aborting..."
105+
abort "Bluetooth driver not compatible."
106+
fi
107+
104108
ui_print "Calculating patch addresses for $SOURCE_FILE..."
105109

106110
# export R2_LIBDIR="$UNZIP_DIR/radare2-android/libs/arm64-v8a"

0 commit comments

Comments
 (0)