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.
This commit is contained in:
1 parent
36a5f8cb8a
commit
1e1fe7c317
17 files changed
+1387
-326
No files matched your search
@@ -60,6 +60,7 @@ def load_obex_pure_helpers():
|
||||
tree = ast.parse(src, filename=str(BT_OBEX))
|
||||
wanted_assigns = {"CLASSIC_AUDIO_UUID_PREFIXES"}
|
||||
wanted_defs = {
|
||||
"is_phone_or_computer_props",
|
||||
"is_hog_device_props",
|
||||
"is_classic_audio_props",
|
||||
"avrcp_fifo_command_for_key",
|
||||
@@ -107,6 +108,7 @@ def test_wireplumber_config():
|
||||
|
||||
def test_obex_bearer_and_avrcp():
|
||||
ns = load_obex_pure_helpers()
|
||||
is_phone = ns["is_phone_or_computer_props"]
|
||||
is_hog = ns["is_hog_device_props"]
|
||||
is_audio = ns["is_classic_audio_props"]
|
||||
map_avrcp = ns["avrcp_fifo_command_for_key"]
|
||||
@@ -122,11 +124,23 @@ def test_obex_bearer_and_avrcp():
|
||||
"Icon": "audio-headset",
|
||||
"Class": 0x240404,
|
||||
}
|
||||
android_phone = {
|
||||
"AddressType": "public",
|
||||
"Icon": "phone",
|
||||
"Class": 0x5a020c,
|
||||
"UUIDs": [
|
||||
"00001105-0000-1000-8000-00805f9b34fb",
|
||||
"0000110a-0000-1000-8000-00805f9b34fb",
|
||||
"0000111f-0000-1000-8000-00805f9b34fb",
|
||||
],
|
||||
}
|
||||
ble_beacon = {"AddressType": "random", "UUIDs": ["00001800-0000-1000-8000-00805f9b34fb"]}
|
||||
cod_only_speaker = {"Class": 0x200414}
|
||||
|
||||
require(is_hog(hog_kbd) and not is_audio(hog_kbd),
|
||||
"HOGP keyboard misclassified as Classic Audio")
|
||||
require(is_phone(android_phone) and not is_audio(android_phone),
|
||||
"Android phone with Audio Source/HFP-AG UUIDs misclassified as Classic Audio")
|
||||
require(is_audio(bt5_dual_buds) and not is_hog(bt5_dual_buds),
|
||||
"Dual-mode BT 5.x/6.x headset not recognized for BR/EDR bearer selection")
|
||||
require(is_audio({"Icon": "audio-headphones"}),
|
||||
@@ -163,14 +177,17 @@ def test_discoverability_and_power():
|
||||
obex_src = read(BT_OBEX)
|
||||
toggle_src = read(BT_TOGGLE)
|
||||
net_src = read(NETWORKS_CPP)
|
||||
main_src = read(BASE / "overlay/rootfs/etc/bluetooth/main.conf")
|
||||
|
||||
require('DiscoverableTimeout = 60' in main_src and 'PairableTimeout = 0' in main_src,
|
||||
"main.conf must enforce DiscoverableTimeout = 60 and PairableTimeout = 0")
|
||||
require('discoverable-timeout 0' not in toggle_src,
|
||||
"sxmo_bluetoothtoggle.sh still sets infinite discoverable-timeout 0")
|
||||
require('discoverable-timeout 60' in toggle_src and 'bt_disc="0"' in toggle_src,
|
||||
"sxmo_bluetoothtoggle.sh must default bt_disc=0 and timeout=60")
|
||||
require('"discoverable-timeout", "0"' not in obex_src and
|
||||
'("org.bluez.Adapter1", "PairableTimeout", ("u", 0))' not in obex_src,
|
||||
"bananarchy-bt-obex still forces infinite discoverable/pairable timeout 0")
|
||||
'("org.bluez.Adapter1", "PairableTimeout", ("u", 0))' in obex_src,
|
||||
"bananarchy-bt-obex must bound discoverable-timeout to 60 and keep PairableTimeout=0")
|
||||
require('"discoverable-timeout", "60"' in obex_src and 'bt_disc = "0"' in obex_src,
|
||||
"bananarchy-bt-obex must default bt_disc='0' and timeout=60")
|
||||
require("discoverable-timeout 0" not in net_src and
|
||||
|
||||
Reference in new issue
Block a user