Port Quagr NeoUI pager plugin, opt-in receiver daemon, and cover alerts
- Port Quagr (<=30-byte SHA-256 + XOR + checksum) as C++20 NeoUI DWM plugin quagr.so (xquagr / quagr) across all targets with 3-tab UI (Receive, Send, Config) and independent Rx/Tx Passphrase or Raw 64-Hex key support. - Enforce strict receiver autostart gating in quagr_plugin_init and --preload (starts only when autostart_rx=1 and a valid Rx key/passphrase is set) with atomic $SXMO_NOTIFDIR system notification emission and duress-mode blocking. - Integrate QUAGR/QUAGR_CLEAR full-message wrapped rendering, extended ASCII 5x7 glyphs, persistent hold, and any-side-button dismissal into bananarchy-cover-idle and bananarchy-cover-event.sh for nokia-beatles. - Rebuild and pin a1120 (cocojamboo) images and release archives for nokia-argon, nokia-beatles, nokia-coconut, and nokia-sparkler, and add scripts/test-quagr.py.
This commit is contained in:
1 parent
0d8047ddfe
commit
f6b42ff604
81 files changed
+3182
-58
No files matched your search
+9
-4
@@ -21,6 +21,11 @@ Upcoming release build (`a1120` / `cocojamboo` via `scripts/version.sh`) targeti
|
||||
- **Kernel DTS, volume-independent calibrated 157 Hz speaker-LRA haptic audio, dual-GPIO torch, and upright cached-row camera (`msm8905-cam` / `camera.so`)**: set `deviceinfo_drm="true"` and `matrix_keypad`/`matrix_keymap` in `devices/nokia-sparkler/modules-initfs`; updated `qcom-msm8909-nokia-sparkler.dts` and `qcom-msm8909-nokia-sparkler.dtb` with stock MSM8909 MTP root IDs (`0xf5`/`0x8`/`0x100`/`0x1000d`), `512 MiB` `/memory`, QDSP6/Q6Voice audio (`wcd_codec: audio-codec@f000`, `apr`, `sound@7702000` with `dai-link-multimedia3` disabled, `lpass_codec: audio-codec@771c000`), Sxmo keypad codes (`0x500d4` `KEY_CAMERA`, `0x100007f` `KEY_COMPOSE`, `0x205000e` `BackSpace`, `0x301009e` `KEY_BACK`), and disabled unpopulated PM8909 `vibrator@c000` (`status = "disabled";`); added native `157.0 Hz` speaker-LRA haptic audio (`vibrate_haptic_audio()`, `libpulse` sink/input query via `pa_sw_volume_to_linear`, `RX3 Digital Volume` + PipeWire `softVolumes` gain compensation over `SND_PCM_FORMAT_FLOAT_LE`, calibrated `1950` / `2550` / `3300` reference amplitudes at `HAPTIC_REF_RX3_VOL = 84`, `10 ms` cosine fade, `HOME=/home/user` root-drop fix, `plughw:0,0` / muted-sink bypass, and non-speaker exclusion) in `src/dwm-plugins/sxmo_vibrate.c` (`links libasound` + `libpulse` + `libm`), verified live on `nokia-sparkler` across `0%`..`100%` speaker volume (`23.95`–`26.15` RMS at L2) and concurrent playback; updated `src/leds-msm8905-torch/leds-msm8905-torch.c` (`GPIO_32` `flash-en` + `GPIO_31` `flash-now` `BC847BS`); added `nokia,sparkler` and `nokia,leo` to `rotate_180` plus cached `row_buf[2][CAM_RAW_STRIDE]` burst copies in `src/msm8905-cam/msm8905-cam.c` and reduced `camera_plugin.cpp` post-frame sleep to `10 ms` (verified `/dev/video0` frame time reduced from `1.34 s` to `0.193–0.229 s/frame` with upright JPEG output); wired `nokia-sparkler` across `check-beatles-bootimg.py`, `sync-beatles-bootfs.py`, `flash-edl.py`, `prepare-release.sh`, `check-rebuild.sh`, `test-sparkler-port.py`, and docs.
|
||||
- **EDL Firehose `<read>`, USB reconnect, and `30 s` USB timeout (`vendor/edl/Library/{firehose,usb,sahara}.py`, `flash-edl.py`, `MANUAL.md`)**: handled standard Qualcomm `rawmode="true"` XML ACK packets in `qualcomm_firehose` (`_begin_raw_read` / `_read_raw_sectors`) alongside FIH's immediate raw streams and capped reads to `min(bytes_to_read, max_chunk)`, fixing GPT/partition corruption on `8k.mbn` (`nokia-sparkler`, `nokia-leo`) and `2720v.mbn`; skipped redundant `set_configuration()` in `usb_class.connect()` when an active USB configuration already exists; raised per-transfer USB bulk read/write timeout to `30000 ms` (`DEFAULT_USB_TIMEOUT_MS = 30000`, `flash-edl.py --usb-timeout`, `2000 ms` Sahara connect probe, and `5–30 s` Fastboot/ADB kick timeouts); added `nokia-leo` to `UNLOCK_DEFAULT_DEVICES`, suppressed duplicate `Bootloader (boot)` output when a per-device `lk2nd` image is active, updated the EDL/Fastboot button-combo hints to **`*` + `#`** (EDL) and **`#`** (Fastboot) for `nokia-sparkler` and `nokia-leo`, added `scripts/test-edl-firehose-read.py`, and verified full live `--only-backup --dump-diagnostics` extraction from the connected `nokia-sparkler`.
|
||||
|
||||
### Quagr encrypted pager plugin (`quagr.so` / `xquagr`) and Nokia 2720 Flip cover alerts across all targets
|
||||
|
||||
- **Core C++20 NeoUI plugin (`src/dwm-plugins/quagr_plugin.cpp`, `quagr.so`, `xquagr`, `quagr`)**: ported the Quagr `<= 30`-byte SHA-256/XOR cipher (`SHA256("QUAGR:" || passphrase)` or direct 64-character raw hex keys, independently configurable for receive and send) over `ntfy` HTTP/HTTPS relays (`NetStream` chunked/raw streaming `GET /<topic>/raw` and `POST /<topic>`), with a 3-tab NeoUI keypad UI (`Receive`, `Send`, `Config`), `rx.log`/`tx.log` persistence, duress-mode blocking/hiding (`dmenu.c`, `dwm_plugin_runner.c`, `phone_data.h`, `xdrawer.cpp`, `sxmo_hook_apps.sh`, `bananarchy-duress-activate`), and Sxmo notification emission (`$SXMO_NOTIFDIR` -> `bananarchy-notifmonitor` sound + `dunstify`).
|
||||
- **Strict opt-in autostart & `nokia-beatles` external cover screen integration (`bananarchy-cover-idle.c`, `bananarchy-cover-event.sh`)**: gated `quagr_plugin_init` and `--preload` so the receiver daemon **only** starts when `autostart_rx=1` and a valid Rx passphrase or 64-hex key is configured (`0%` idle RAM/CPU otherwise); added `QUAGR`/`QUAGR_CLEAR`, full printable ASCII 5x7 glyphs, and multi-line `draw_wrapped_centered()` rendering to `bananarchy-cover-idle.c` so incoming closed-flip Quagr pages wake the outer `240x240` display immediately, show the entire wrapped message past `wake_blank_timeout` / concurrent `NOTIFY` races, and dismiss cleanly on any side button (`VOLUP`, `VOLDOWN`, `POWER`) or `LID OPEN` while keeping incoming call priority intact; verified via `scripts/test-quagr.py` and `scripts/check-rebuild.sh`.
|
||||
|
||||
### Keypad-friendly timer countdown and alarm cancellation across all targets
|
||||
|
||||
- **Permissionless `sxmo_timer.sh`, `dmenu` **Stop Timer** / **Cancel Timer**, and hook integration**: replaced `sxmo_sleep -c boottime_alarm` (`CLOCK_BOOTTIME_ALARM`, which failed with `Operation not permitted` for unprivileged `user`) with tracked `${XDG_RUNTIME_DIR}/sxmo_timers/*.timer` + `/tmp/sxmo_timer_ringing` state in `overlay/rootfs/usr/bin/sxmo_timer.sh`; added non-blocking `stty min 0 time 10` + `dd | tr` keypad cancellation (`Enter`/`0`/`q`/`BackSpace`/`#`/`*`) during countdown and any-key dismissal on expiry; replaced the infinite notification/vibration loop with a single wake, one replaceable critical notification, and a bounded `30 s` alert loop (`pw-play` / `mpv` + `sxmo_vibrate`) alongside `status`, `stop`, and `stop_ringing` subcommands and `HUP INT TERM EXIT` traps; added live `timer_menu_state()` **Stop Timer** / **Cancel Timer** items at the top of the `Sys` and `Timer` menus and `Clear Notification` / `sxmo_hook_mute_ring.sh` / `sxmo_hook_discard.sh` cancellation hooks, verified offline (`scripts/test-timer.py`) and live on `nokia-sparkler`.
|
||||
@@ -56,10 +61,10 @@ Upcoming release build (`a1120` / `cocojamboo` via `scripts/version.sh`) targeti
|
||||
### Image persistence and upcoming `a1120` (`cocojamboo`) release archives
|
||||
|
||||
- **Verified `a1120` / `cocojamboo` image set (`--mkinitfs`) and packaged archives**:
|
||||
- `images/bananarchy-nokia-argon.img`: SHA-256 `6ada66359a650a7e93f8937082a46353171989a54de19661821c1b91ea642ae3` (packaged in `bananarchy-nokia-argon-a1120-cocojamboo.zip`, SHA-256 `b4c8c1ede10d4dd764362f12bf4c783fd5d2558eb5fd3f0159c099a05a89c9a4`, alongside `bootloader/lk2nd-msm8909.img`).
|
||||
- `images/bananarchy-nokia-beatles.img`: SHA-256 `33b8b9181d5a23dd4a4bb473d827c6a87cf3407374c2e8b409fc45a7e60881b9`, `images/boot-bananarchy-nokia-beatles.img`: SHA-256 `7e242e51cb3b16fe932d83c5807b0df93188606aa78859c484e3a8ed4414a8ff`, and `images/boot-lk2nd-nokia-beatles-display.img`: SHA-256 `b5549698c20f4de7603fc746d32bb5baa96ec377e41e74407823c98506fc185d` (packaged in `bananarchy-nokia-beatles-a1120-cocojamboo.zip`, SHA-256 `11474af3d5301856da0363b891ae2e4ec7241ecebb54043eb5bfd72297614554`).
|
||||
- `images/bananarchy-nokia-coconut.img`: SHA-256 `4928a008fc1394e84c2bc2040b91b515eb2f506c39f0c822d8242e40dbf31eb6`, `images/boot-bananarchy-nokia-coconut.img`: SHA-256 `ac4ea812933bb9d990540881110ecf88f1585c31590d4b860834f1553f2f1537`, and `images/boot-lk2nd-nokia-coconut-display.img`: SHA-256 `e876424b38b0782f589756b4107337b24f27f7c37d624cc7d3907a5331df050a` (packaged in `bananarchy-nokia-coconut-a1120-cocojamboo.zip`, SHA-256 `7cb55ff1e9fedda3e2c594e1ec2e9536a09e35e3a9895a5f488c4b2eb4cf5520`).
|
||||
- `images/bananarchy-nokia-sparkler.img`: SHA-256 `7b8de44bac9cded16f219d723748806a17053886dd1762d7261ac6de308918d6`, `images/boot-bananarchy-nokia-sparkler.img`: SHA-256 `1ae0dfe5f189cbf381cdc26a89d95bfbabf2e267e86091fd1e8b32392460fa79`, and `images/boot-lk2nd-nokia-sparkler-display.img`: SHA-256 `bc41c2ddd1079246a7e91a40222fcafb82b0b52965c8ee8081872767d006748f` (packaged in `bananarchy-nokia-sparkler-a1120-cocojamboo.zip`, SHA-256 `e98a3454ff9df21648cff697a11144498658479c8c971725ff8884650b656528`).
|
||||
- `images/bananarchy-nokia-argon.img`: SHA-256 `640127f7d49e25906df1d9bb9e63fb2c07374bfa908092658d0e763c7ac87a94` (packaged in `bananarchy-nokia-argon-a1120-cocojamboo.zip`, SHA-256 `80c1284f5f8ba305065085ed9e4cb5e2494797ab21a2aeb6582d2f43cca21145`, alongside `bootloader/lk2nd-msm8909.img`).
|
||||
- `images/bananarchy-nokia-beatles.img`: SHA-256 `289698c31daf25adceba6af8fcdc93cd85673d0a24faf5c848ef0c0bb659fab7`, `images/boot-bananarchy-nokia-beatles.img`: SHA-256 `cc0678bcdcd3fbafe54a4e5236f104d647dd6965aa05dfe4de56217095b8eba8`, and `images/boot-lk2nd-nokia-beatles-display.img`: SHA-256 `b5549698c20f4de7603fc746d32bb5baa96ec377e41e74407823c98506fc185d` (packaged in `bananarchy-nokia-beatles-a1120-cocojamboo.zip`, SHA-256 `dfb10c9938c586cc89939f667ecb005a34bad9eb29903b33b6c6e9f2996c963e`).
|
||||
- `images/bananarchy-nokia-coconut.img`: SHA-256 `1f36243dc318fb024650c55e64202941c761227bf528fbb3128a1b5063eead0d`, `images/boot-bananarchy-nokia-coconut.img`: SHA-256 `e38cba2eaf502eaccf4c6b8b4b3dc97145cde1aefed940546385793ef25035e0`, and `images/boot-lk2nd-nokia-coconut-display.img`: SHA-256 `e876424b38b0782f589756b4107337b24f27f7c37d624cc7d3907a5331df050a` (packaged in `bananarchy-nokia-coconut-a1120-cocojamboo.zip`, SHA-256 `f68d3703f7e8d89602a7181b71c233a3a5c3bfa2c625fa0ddb0aded304d7344b`).
|
||||
- `images/bananarchy-nokia-sparkler.img`: SHA-256 `170e1ef659755b7c10571a926211ff14352e194eaf92ecc8177c04003936091d`, `images/boot-bananarchy-nokia-sparkler.img`: SHA-256 `8ebfb07dd3d3a5108e47962e90a4594c43e66343986175791097542828d016e3`, and `images/boot-lk2nd-nokia-sparkler-display.img`: SHA-256 `bc41c2ddd1079246a7e91a40222fcafb82b0b52965c8ee8081872767d006748f` (packaged in `bananarchy-nokia-sparkler-a1120-cocojamboo.zip`, SHA-256 `895cc86195c6e55d46f256cb559c1a8bcb06f38de2420157d00fd3730f135dd0`).
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in new issue
Block a user