diff --git a/Misc/Features/Bluetooth_Improved_Quality.txt b/Misc/Features/Bluetooth_Improved_Quality.txt new file mode 100644 index 00000000..9e906854 --- /dev/null +++ b/Misc/Features/Bluetooth_Improved_Quality.txt @@ -0,0 +1,16 @@ +Without: + Service: Media Codec - Audio SBC (44100 | JointStereo | block: 16 | subbands: 8 | allocation: Loudness | bitpool: 2..53) + +With: + Service: Media Codec - Audio SBC (44100 | DualChannel | block: 16 | subbands: 8 | allocation: Loudness not set | bitpool: 2..53) + +How to check: + Enable developer options + Enable Bluetooth HCI logging + Connect a Bluetooth device + Play some music + Enable ADB + Generate bug report + Open FS/data/misc/bluetooth/logs/btsnoop_hci.log in Wireshark + Filter for btavdtp + Look at GetCapabilities and SetConfiguration lines diff --git a/Scripts/LineageOS-14.1/Patch.sh b/Scripts/LineageOS-14.1/Patch.sh index 4d3622bf..f7f272a8 100755 --- a/Scripts/LineageOS-14.1/Patch.sh +++ b/Scripts/LineageOS-14.1/Patch.sh @@ -147,7 +147,7 @@ enterAndClear "packages/inputmethods/LatinIME"; patch -p1 < "$DOS_PATCHES_COMMON/android_packages_inputmethods_LatinIME/0001-Voice.patch"; #Remove voice input key enterAndClear "system/bt"; -patch -p1 < "$DOS_PATCHES/android_system_bt/Improve_Quality.patch"; #Improve Bluetooth audio quality, credit @ValdikSS +patch -p1 < "$DOS_PATCHES/android_system_bt/0001-Improve_Quality.patch"; #Improve Bluetooth audio quality, credit @ValdikSS enterAndClear "system/core"; if [ "$DOS_HOSTS_BLOCKING" = true ]; then cat "$DOS_HOSTS_FILE" >> rootdir/etc/hosts; fi; #Merge in our HOSTS file diff --git a/Scripts/LineageOS-15.1/Patch.sh b/Scripts/LineageOS-15.1/Patch.sh index 675f1d32..5062ed68 100755 --- a/Scripts/LineageOS-15.1/Patch.sh +++ b/Scripts/LineageOS-15.1/Patch.sh @@ -148,7 +148,7 @@ enterAndClear "packages/inputmethods/LatinIME"; patch -p1 < "$DOS_PATCHES_COMMON/android_packages_inputmethods_LatinIME/0001-Voice.patch"; #Remove voice input key enterAndClear "system/bt"; -patch -p1 < "$DOS_PATCHES/android_system_bt/Improve_Quality.patch"; #Improve Bluetooth audio quality, credit @ValdikSS +patch -p1 < "$DOS_PATCHES/android_system_bt/0001-Improve_Quality.patch"; #Improve Bluetooth audio quality, credit @ValdikSS enterAndClear "system/core"; if [ "$DOS_HOSTS_BLOCKING" = true ]; then cat "$DOS_HOSTS_FILE" >> rootdir/etc/hosts; fi; #Merge in our HOSTS file