diff --git a/AGENTS.md b/AGENTS.md index 6705514..c7c86cd 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -135,7 +135,7 @@ Keep this file short. Full details live in `README.md`, `MANUAL.md`, `SDK.md`, ` keypad udev/Xorg rules, BusyBox applet lists, and `scripts/set-bananarchy-hostname.sh`. - The Power menu label is **Reboot to loader** and still calls `sxmo_power.sh bootloader`; `Logout` is removed from `dmenu.c`, `dmenu.so`, `sxmo_appmenu.sh`, and `sxmo_hook_contextmenu.sh`. Keep the compact Power menu layout synchronized. -- Keep `msm8905-cam.c` 180-degree rotation enabled for `nokia,beatles`, `nokia,sparkler`, and `nokia,leo` alongside cached `row_buf` RAW10 demosaic; keep `patches/kernel/0013-msm8909-early-scm-smp-cpufreq.patch` (4-core SMP + `cpufreq` up to `1.267 GHz`), disabled `vibrator@c000` + volume-independent calibrated `157.0 Hz` haptic audio (`sxmo_vibrate.c`, `libpulse` + `SND_PCM_FORMAT_FLOAT_LE`, `HAPTIC_REF_RX3_VOL = 84`), `DEFAULT_USB_TIMEOUT_MS = 30000` (`--usb-timeout`), and `sxmo_timer.sh` / `dmenu.c` keypad cancellation (`scripts/test-timer.py`, `scripts/test-sparkler-port.py`, `scripts/test-edl-firehose-read.py`). +- Keep `quagr` (`quagr.so` / `xquagr`) receiver autostart strictly gated on `autostart_rx=1` plus a valid Rx passphrase or 64-char hex key, closed-flip `QUAGR` cover alerts dismissing on any side button (`scripts/test-quagr.py`), `msm8905-cam.c` 180-degree rotation enabled for `nokia,beatles`, `nokia,sparkler`, and `nokia,leo` alongside cached `row_buf` RAW10 demosaic; keep `patches/kernel/0013-msm8909-early-scm-smp-cpufreq.patch` (4-core SMP + `cpufreq` up to `1.267 GHz`), disabled `vibrator@c000` + volume-independent calibrated `157.0 Hz` haptic audio (`sxmo_vibrate.c`, `libpulse` + `SND_PCM_FORMAT_FLOAT_LE`, `HAPTIC_REF_RX3_VOL = 84`), `DEFAULT_USB_TIMEOUT_MS = 30000` (`--usb-timeout`), and `sxmo_timer.sh` / `dmenu.c` keypad cancellation (`scripts/test-timer.py`, `scripts/test-sparkler-port.py`, `scripts/test-edl-firehose-read.py`, `scripts/test-quagr.py`). - Bluetooth HOGP config and plugin load are verified, but full hardware sign-off still needs a wake-up paired keyboard and **Connect Device** to confirm real HID key events. diff --git a/CHANGELOG.md b/CHANGELOG.md index bf353de..d55f941 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 ``, 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 //raw` and `POST /`), 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`). --- diff --git a/MANUAL.md b/MANUAL.md index 25456ae..fee4b10 100644 --- a/MANUAL.md +++ b/MANUAL.md @@ -274,7 +274,15 @@ All twenty-five phone applications are compiled as shared-object plugins (`/usr/ - **`3:My Tox ID`**: displays your 76-character hexadecimal Tox ID (also exported to `/tmp/tox_id.txt` for easy copying over SSH) and DHT connection state (`DHT(UDP)` / `DHT(TCP)`). - **Standby `ToxAV` voice calls**: incoming 48 kHz Opus `ToxAV` calls wake the display and open `xcallscreen` with a `[TOX]` badge. -20. **Kopher SmallWeb browser (`smallweb.so` / `xkopher` / `kopher` / `xsmallweb`)**: +20. **Quagr encrypted pager (`quagr.so` / `xquagr` / `quagr`)**: + - **Open**: select **Quagr Pager** from the System or Applications menu, or run `xquagr` / `quagr` (hidden and blocked in Duress Mode). + - **Three tabs (`1:Receive`, `2:Send`, `3:Config` — switch with `Left`/`Right`)**: + - **`1:Receive`**: displays relay subscription state (`OFFLINE`, `CONNECT`, `LISTEN`, `RECONN`), topic, Rx key fingerprint, and scrollable received page history (`~/.local/share/sxmo/quagr/rx.log`). Press **Call (green)** (or **Center `OK`** when empty / **Menu -> Listen Now**) to subscribe or stop, and press **Center `OK`** on any received page to open the full wrapped page modal (press **Left softkey (`To Send`)** to copy it into the composer). + - **`2:Send`**: multi-tap / `fcitx5-t9` composer enforced at the `30`-byte UTF-8 Quagr wire limit with a live `N / 30 bytes` progress meter and sent history (`~/.local/share/sxmo/quagr/tx.log`). Press **Center `OK`** or **Call (green)** to encrypt with the Tx key and `POST` to the relay. + - **`3:Config`**: stores `~/.config/sxmo/quagr.conf` (`0600`). Configure **Autostart Receiver** (`ON`/`OFF`), independent **Rx Key Mode** and **Tx Key Mode** (`Passphrase` using `SHA256("QUAGR:" || passphrase)` vs `Raw Hex (64)` for 32-byte raw keys), **Copy Rx -> Tx**, **Generate Rx Hex Key**, **Relay Base URL** (default `https://ntfy.sh`), **Topic ID** (default `quagr-public`), and **Show Secrets**. + - **Opt-in background receiver & notifications**: `quagr_plugin_init` and `dwm-plugin quagr --preload` **only** autostart the background stream receiver when **both** **Autostart Receiver** is `ON` (`autostart_rx=1`) **and** a valid Rx passphrase or 64-character hex key is set. Decrypted incoming pages emit a standard Sxmo notification (`$SXMO_NOTIFDIR/quagr_*` -> desktop toast, sound, and main-screen wake when open) and, on **Nokia 2720 Flip (`nokia-beatles`)** with the flip closed, send `QUAGR ` directly to `bananarchy-cover-idle`, immediately lighting the `240x240` cover display with the full wrapped message until dismissed with any side button (`Volume Up`, `Volume Down`, or `Power`) or by opening the flip. + +21. **Kopher SmallWeb browser (`smallweb.so` / `xkopher` / `kopher` / `xsmallweb`)**: - **Open**: select **SmallWeb (Kopher)** from the System or Applications menu, or run `xkopher [url]` / `kopher [url]`. - **Supported protocols**: **Gopher** (`gopher://`, plus optional TLS `gophers://` or the in-menu `Gopher over TLS` toggle), **Gemini** (`gemini://` over TLS with text/gemini rendering and input prompts), **Spartan** (`spartan://`), and **Nex** (`nex://`), plus built-in `about:kopher` and `about:help` pages. - **Default WAP-style keypad controls (from [Kopher](https://code.luxferre.top/luxferre/kopher.git), customizable in `~/.config/sxmo/smallweb_controls.tsv` via `Menu -> Customize Controls`)**: @@ -294,7 +302,7 @@ All twenty-five phone applications are compiled as shared-object plugins (`/usr/ - **`Call (green)`**: open URL address bar (`*` cycles input mode; `Call` inside the address bar toggles `Gopher TLS`) - **`Right softkey` / `BackSpace`**: navigate back in history (or close when at root) -21. **Webarchy Web browser (`webarchy.so` / `webarchy` / `xwebarchy`)**: +22. **Webarchy Web browser (`webarchy.so` / `webarchy` / `xwebarchy`)**: - **Open**: select **Webarchy (Web)** from the System or Applications menu, or run `webarchy [url]` / `xwebarchy [url]`. - **Engine, User-Agent, encoding, fonts, and multimedia**: built on WPE / WebKit (`webkit2gtk-4.1` + `libwpe-1.0`) with Adreno 304 hardware acceleration (`WEBKIT_HARDWARE_ACCELERATION_POLICY_ALWAYS` and WebGL) and 512 MB RAM pressure tuning (`160 MB` WebProcess cap). Uses `UTF-8` as the primary/default encoding when a server specifies none, configures Google **Noto** (`Noto Sans`, `Noto Serif`, `Noto Sans Symbols`, `Noto Sans Math`, `Noto Color Emoji`) as the default non-monospace web fonts while keeping **Fira Code** with OpenType ligatures (`calt`, `liga`) for monospace (`code`, `pre`, `kbd`, `samp`, `tt`), enables all HTML5/GStreamer multimedia playback (`MediaSource` / MSE, WebAudio, inline `