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:
Luxferre committed 2026-11-17 11:30:42 +02:00
1 parent 36a5f8cb8a
commit 1e1fe7c317
17 files changed
+1387 -326

No files matched your search

+16 -8
View File
@@ -557,15 +557,15 @@ fi
echo "[check] Known-good flashable image set..."
for pair in \
"92b23d34180c157861c492e7c2ea848ea4580857f3c1674020ae6b9f6fbdd39f images/bananarchy-nokia-argon.img" \
"5c284c314a378d09fda37e56ebe745ab557d45c77499206440e8c362c709e7a7 images/bananarchy-nokia-beatles.img" \
"80485ccf2af4f1d6107965ecde43d888c66ec19006e6feabc7fb63b6a7852391 images/boot-bananarchy-nokia-beatles.img" \
"09c46d21b140b486e21ebed39740b57808f8f1f0045f1801af2a7f8eba72bb4d images/bananarchy-nokia-argon.img" \
"5d8c50f89e257dbadd9050479d56c46b1902cb38707f6f692e3508b44aa4fd10 images/bananarchy-nokia-beatles.img" \
"f6c897f8e5fac17df38ac3d3222279f229b84c53ea73c323d06de5c40b26ccc0 images/boot-bananarchy-nokia-beatles.img" \
"b5549698c20f4de7603fc746d32bb5baa96ec377e41e74407823c98506fc185d images/boot-lk2nd-nokia-beatles-display.img" \
"4e1d4799d42f56423f9cba8e175adf3b1f6c7fcd89965a7bc0b84a4f03ebc6e5 images/bananarchy-nokia-coconut.img" \
"1e22879fc0533f419dc98c88a1700d75101fda85669837d1457bb15b9ab4ed9c images/boot-bananarchy-nokia-coconut.img" \
"836331fb3034d0527f8c03eb90aae25bc8c87a84cc56baf24459d2e81e7a28d1 images/bananarchy-nokia-coconut.img" \
"6e2fefec812594dc7b4dc322c68b1ab4c10b1c93abee4a0fbd11dfbf2dc59a0b images/boot-bananarchy-nokia-coconut.img" \
"e876424b38b0782f589756b4107337b24f27f7c37d624cc7d3907a5331df050a images/boot-lk2nd-nokia-coconut-display.img" \
"6b40db4674821bdde80d6f7619acc5a6414df684201d3e4e2e7cc3ac6c25dcfd images/bananarchy-nokia-sparkler.img" \
"8f41328f0197f5debba92eaffa9df46c530721719309024a4d9cd7bf79a722c7 images/boot-bananarchy-nokia-sparkler.img" \
"61a068ca432f064812a96356b0dc49f1a38102a717c8dccd31768f0cbd1d7639 images/bananarchy-nokia-sparkler.img" \
"4357d48ac069104495629f1f35e220a01cde3412950e73e3e47e5372649fb6a2 images/boot-bananarchy-nokia-sparkler.img" \
"bc41c2ddd1079246a7e91a40222fcafb82b0b52965c8ee8081872767d006748f images/boot-lk2nd-nokia-sparkler-display.img"; do
set -- $pair
want=$1
@@ -2043,11 +2043,19 @@ if ! "$BT_HEADSET_TEST" >/dev/null 2>&1; then
fail "host Bluetooth headset verification failed"
fi
echo "[check] Bluetooth OBEX phone CoD, L2CAP SEQPACKET, and confirmation dialog..."
echo "[check] Bluetooth OBEX phone CoD, L2CAP SEQPACKET, pairing agent, and confirmation dialog..."
BT_OBEX_TEST="$BASE_DIR/scripts/test-bluetooth-obex.py"
if [ ! -x "$BT_OBEX_TEST" ]; then
fail "missing host unit test scripts/test-bluetooth-obex.py"
fi
if ! grep -qF 'Class = 0x5a020c' "$BT_MAIN_CONF" || \
! grep -qF 'PairableTimeout = 0' "$BT_MAIN_CONF" || \
! grep -qF 'btmgmt -i hci0 ssp on' "$BASE_DIR/overlay/rootfs/usr/bin/bananarchy-bt-le-enable.sh" || \
! grep -qF '"KeyboardDisplay"' "$BT_OBEX" || \
! grep -qF 'PAIR_PROMPT' "$BASE_DIR/src/dwm-plugins/networks_plugin.cpp" || \
! grep -qF 'BtPairingPrompt' "$BASE_DIR/src/dwm-plugins/networks_plugin.cpp"; then
fail "Bluetooth OBEX or KeyboardDisplay pairing dialog configuration is missing"
fi
if ! "$BT_OBEX_TEST" >/dev/null 2>&1; then
fail "host Bluetooth OBEX verification failed"
fi