File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff 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
9796done
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+
104108ui_print " Calculating patch addresses for $SOURCE_FILE ..."
105109
106110# export R2_LIBDIR="$UNZIP_DIR/radare2-android/libs/arm64-v8a"
You can’t perform that action at this time.
0 commit comments