Create on-device Bluetooth patcher module (arm64)

Tested and working on Android 15 QPR2 (library: `/apex/com.android.btservices/lib64/libbluetooth_jni.so`)
This commit is contained in:
Paul
2025-01-25 14:55:34 +01:00
parent 93838d2d10
commit e1dc2c8925
4 changed files with 157 additions and 54 deletions

11
build-magisk-module.sh Executable file
View File

@@ -0,0 +1,11 @@
#!/bin/sh
set -eux
cd root-module
rm -f ../btl2capfix.zip
# COPYFILE_DISABLE env is a macOS fix to avoid parasitic files in ZIPs: https://superuser.com/a/260264
export COPYFILE_DISABLE=1
zip -r ../btl2capfix.zip . -x \*.DS_Store \*__MACOSX \*DEBIAN ._\* .gitignore