Fix Bluetooth 5.x/6.x headsets, Android OBEX prompts, and refresh a1120 images

- Scope WirePlumber 50-bluetooth.conf roles to [ a2dp_sink hsp_hs hfp_hf ], lock HFP to 8 kHz CVSD for QDSP6 INTERNAL_BT_SCO, enable dummy AVRCP player, and set LDAC ABR quality.
- Select BR/EDR bearer and ConnectProfile fallback for Classic Audio headsets while preserving LE bearer for HOGP devices, forward AVRCP media keys to music.so, bound discoverability to 60 s, fix SCO keepalive teardown/readiness and ATA call state sync, and suppress nokia-sparkler speaker haptic audio during BT SCO.
- Advertise Smartphone Class of Device (0x5a020c / btmgmt class 2 3), handle OBEX over both L2CAP SOCK_SEQPACKET and RFCOMM SOCK_STREAM via ObexPacketReader, and add NeoUI incoming file Accept/Reject dialog and configurable target folder picker in networks.so.
- Add scripts/test-bluetooth-headset.py and scripts/test-bluetooth-obex.py, and rebuild/pin verified a1120 (cocojamboo) images and release archives for nokia-argon, nokia-beatles, nokia-coconut, and nokia-sparkler.
This commit is contained in:
Luxferre committed 2026-11-17 10:33:09 +02:00
1 parent 0030dc3910
commit 36a5f8cb8a
29 files changed
+2011 -190

No files matched your search

@@ -25,7 +25,9 @@ on() {
if [ -s /etc/bananarchy/bt_mac ] && [ -x /usr/bin/bananarchy-engmenu-ctl ]; then
/usr/bin/bananarchy-engmenu-ctl apply-boot >/dev/null 2>&1 || true
fi
timeout 2 /usr/bin/btmgmt -i hci0 class 2 3 >/dev/null 2>&1 || true
timeout 2 bluetoothctl power on >/dev/null 2>&1 || true
timeout 2 /usr/bin/btmgmt -i hci0 class 2 3 >/dev/null 2>&1 || true
bt_name=""
if [ -r /home/user/.config/sxmo/bt_name ]; then
@@ -38,18 +40,18 @@ on() {
timeout 2 bluetoothctl system-alias "$bt_name" >/dev/null 2>&1 || true
fi
bt_disc="1"
bt_disc="0"
if [ -r /home/user/.config/sxmo/bt_discoverable ]; then
IFS= read -r bt_disc < /home/user/.config/sxmo/bt_discoverable 2>/dev/null || true
fi
timeout 2 bluetoothctl discoverable-timeout 0 >/dev/null 2>&1 || true
timeout 2 bluetoothctl pairable on >/dev/null 2>&1 || true
timeout 2 bluetoothctl discoverable-timeout 60 >/dev/null 2>&1 || true
case "$bt_disc" in
0|off|OFF|no|NO|false|FALSE)
timeout 2 bluetoothctl discoverable off >/dev/null 2>&1 || true
1|on|ON|yes|YES|true|TRUE)
timeout 2 bluetoothctl pairable on >/dev/null 2>&1 || true
timeout 2 bluetoothctl discoverable on >/dev/null 2>&1 || true
;;
*)
timeout 2 bluetoothctl discoverable on >/dev/null 2>&1 || true
timeout 2 bluetoothctl discoverable off >/dev/null 2>&1 || true
;;
esac