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
@@ -44,20 +44,24 @@ Keep this file short. Full details live in `README.md`, `MANUAL.md`, `SDK.md`, `
|
||||
|
||||
## Critical invariants
|
||||
|
||||
- Bluetooth requires `ControllerMode = dual` and `Class = 0x5a020c` (`btmgmt -i hci0 class 2 3`) in `etc/bluetooth/main.conf`
|
||||
and `bananarchy-bt-le-enable.sh`; BlueZ 5.87 rejects LE-only HOGP in `bredr` mode, and `a2dp_source` must stay out
|
||||
of `50-bluetooth.conf` so paired Android phones recognize Object Push rather than an audio sink. Keep `UserspaceHID=true`,
|
||||
`LEAutoSecurity=true`, `ClassicBondedOnly=false`, and `IdleTimeout=0` in `input.conf`. `bananarchy-bt-obex` must power on,
|
||||
enable LE, select the LE bearer (`PreferredBearer = "le"`) for HID-over-GATT devices, select the BR/EDR bearer
|
||||
(`PreferredBearer = "bredr"`, public address preference, `ConnectProfile` fallback) for Classic Audio / dual-mode
|
||||
BT 5.x/6.x headsets, pair unbonded devices, forward `(AVRCP)` media keys to `xmusic`, handle both L2CAP `SOCK_SEQPACKET`
|
||||
and RFCOMM via `ObexPacketReader` with `xnetworks` incoming confirmation / target folder (`~/.config/sxmo/bt_obex_dir`) IPC,
|
||||
and keep discoverability hidden-by-default with a 60 s timeout (`bt_discoverable=0`, never `discoverable-timeout 0`).
|
||||
Keep all four `50-bluetooth.conf` copies synced with `bluez5.roles = [ a2dp_sink hsp_hs hfp_hf ]`,
|
||||
`bluez5.enable-msbc = false`, `bluez5.enable-lc3-a127 = false`, `bluez5.dummy-avrcp-player = true`, and
|
||||
`bluez5.a2dp.ldac.quality = "auto"` (no `a2dp_source`, `bap_*`, `hsp_ag`, `hfp_ag`, or `lc3` — WCN3620 SCO routes internally
|
||||
at 8 kHz CVSD to QDSP6 `INTERNAL_BT_SCO_RX`/`TX`). `util-linux-misc` and `bluez-btmgmt` support the live PTY scan wrapper;
|
||||
guard `scripts/test-bluetooth-{hid,scan,live-scan,headset,obex}.py`.
|
||||
- Bluetooth requires `ControllerMode = dual`, `PairableTimeout = 0`, and `Class = 0x5a020c` (`btmgmt -i hci0 class 2 3`,
|
||||
`bredr on`, `ssp on`, `linksec on`, `bondable on`, `advertising off`, `le on`) in `etc/bluetooth/main.conf` and
|
||||
`bananarchy-bt-le-enable.sh`; BlueZ 5.87 rejects LE-only HOGP in `bredr` mode, and `a2dp_source` must stay out of
|
||||
`50-bluetooth.conf` so paired Android phones recognize Object Push rather than an audio sink. Keep `UserspaceHID=true`,
|
||||
`LEAutoSecurity=true`, `ClassicBondedOnly=false`, and `IdleTimeout=0` in `input.conf`. `bananarchy-bt-obex` must register
|
||||
a persistent `"KeyboardDisplay"` `Agent1` (never `"NoInputNoOutput"`) with `/run/bananarchy/bt-obex/pair_{prompt,decision}.tsv`
|
||||
and `xnetworks` `BtPairingPrompt` UI (auto-confirming Classic Audio headsets, prompting user confirmation/PIN/passkey
|
||||
for phones/keyboards, `50 s` `Pair` timeout, `--async-ui` non-blocking operations, phone `is_phone_or_computer_props` vs
|
||||
audio separation), power on, enable LE/SSP, select the LE bearer (`PreferredBearer = "le"`) for HID-over-GATT devices,
|
||||
select the BR/EDR bearer (`PreferredBearer = "bredr"`, public address preference, `ConnectProfile` fallback) for
|
||||
Classic Audio / dual-mode BT 5.x/6.x headsets, pair unbonded devices, forward `(AVRCP)` media keys to `xmusic`,
|
||||
handle both L2CAP `SOCK_SEQPACKET` and RFCOMM via `ObexPacketReader` with `xnetworks` incoming confirmation / target
|
||||
folder (`~/.config/sxmo/bt_obex_dir`) IPC, and keep discoverability hidden-by-default with a 60 s timeout
|
||||
(`bt_discoverable=0`, never `discoverable-timeout 0`). Keep all four `50-bluetooth.conf` copies synced with
|
||||
`bluez5.roles = [ a2dp_sink hsp_hs hfp_hf ]`, `bluez5.enable-msbc = false`, `bluez5.enable-lc3-a127 = false`,
|
||||
`bluez5.dummy-avrcp-player = true`, and `bluez5.a2dp.ldac.quality = "auto"` (no `a2dp_source`, `bap_*`, `hsp_ag`,
|
||||
`hfp_ag`, or `lc3` — WCN3620 SCO routes internally at 8 kHz CVSD to QDSP6 `INTERNAL_BT_SCO_RX`/`TX`).
|
||||
`util-linux-misc` and `bluez-btmgmt` support the live PTY scan wrapper; guard `scripts/test-bluetooth-{hid,scan,live-scan,headset,obex}.py`.
|
||||
- WebKit requires explicit `glib` and `gsettings-desktop-schemas` packages. Because apk uses `--no-scripts`,
|
||||
`apply-bananarchy-overlay.sh` must run `compile-gsettings-schemas.sh`; without `gschemas.compiled`, the WebKit network
|
||||
process aborts. Keep the Webarchy renderer fallback.
|
||||
|
||||
Reference in new issue
Block a user