Files
bananarchy/overlay/rootfs/usr/bin/bananarchy-bt-le-enable.sh
T
Luxferre 1e1fe7c317 Fix Bluetooth KeyboardDisplay pairing agent, MGMT flags, and refresh a1120 images
- Switch bananarchy-bt-obex Agent1 from NoInputNoOutput to KeyboardDisplay with /run/bananarchy/bt-obex/pair_{prompt,decision}.tsv and op_done.tsv IPC, auto-confirming Classic Audio headsets while prompting user confirmation, PIN, passkey, or keyboard display codes.
- Enforce bredr on, ssp on, linksec on, bondable on, advertising off, class 2 3, and le on in bananarchy-bt-le-enable.sh alongside PairableTimeout = 0 in main.conf (keeping DiscoverableTimeout = 60 hidden by default) and boot hook sync in sxmo_hook_start.sh.
- Fix root/user daemon UID collisions and sticky-/tmp status/PID writes, separate phones from Classic Audio headsets, increase Pair timeout to 50 s, and add non-blocking --async-ui pairing/connect plus NetModal::BtPairingPrompt in networks.so.
- Extend scripts/test-bluetooth-obex.py, scripts/test-bluetooth-headset.py, scripts/check-rebuild.sh, docs, and rebuild/pin a1120 (cocojamboo) images and archives for nokia-argon, nokia-beatles, nokia-coconut, and nokia-sparkler.
2026-11-17 11:30:42 +02:00

18 lines
665 B
Bash
Executable File

#!/bin/sh
# Enable BR/EDR + SSP + bondable + link security + Smartphone CoD + LE Central
# (disable LE peripheral advertising so phones pair via BR/EDR SSP, not CTKD).
set -eu
if [ "$(id -u)" -ne 0 ]; then
echo "bananarchy-bt-le-enable.sh must run as root" >&2
exit 1
fi
/usr/bin/btmgmt -i hci0 bredr on >/dev/null 2>&1 || true
/usr/bin/btmgmt -i hci0 ssp on >/dev/null 2>&1 || true
/usr/bin/btmgmt -i hci0 linksec on >/dev/null 2>&1 || true
/usr/bin/btmgmt -i hci0 bondable on >/dev/null 2>&1 || true
/usr/bin/btmgmt -i hci0 advertising off >/dev/null 2>&1 || true
/usr/bin/btmgmt -i hci0 class 2 3 >/dev/null 2>&1 || true
exec /usr/bin/btmgmt -i hci0 le on