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
@@ -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 <msg>` 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 `<video>`/`<audio>`, and autoplay without user gesture requirements) by default, and uses `Mozilla/5.0 (Mobile; rv:123.0) Gecko/123.0 Firefox/123.0 KAIOS/4.0` as the default User-Agent (overridable via `Menu -> User-Agent Override` across 4 presets or a custom multi-tap string persisted in `~/.config/sxmo/webarchy_ua.txt`).
|
||||
- **Renderer profile and troubleshooting**: `nokia-argon` and the other slab targets keep Adreno 304 hardware acceleration (`WEBKIT_HARDWARE_ACCELERATION_POLICY_ALWAYS` + WebGL). The 2720 Flip (`nokia,beatles`) starts on the CPU renderer (`WEBKIT_HARDWARE_ACCELERATION_POLICY_NEVER`) because its DMABUF/WebKit renderer cannot be initialised reliably; WebKitGTK's `WEBKIT_DISABLE_*` variables are presence flags, so they are never left set to `0`. Create `~/.config/sxmo/webarchy_software_renderer` to force the CPU profile on any target. If the WebProcess crashes on a hardware profile, Webarchy switches to software rendering once and reloads the page automatically. Load failures show the WebKit `GError` domain and code in the bottom status line, which makes an "Unexpected WebKit error" diagnosable instead of opaque. The image build also compiles `usr/share/glib-2.0/schemas/gschemas.compiled` from the explicit `glib` and `gsettings-desktop-schemas` packages; if that file is missing, WebKit's network process logs `No GSettings schemas are installed on the system` and reports an internal error before a page can load.
|
||||
@@ -303,24 +311,24 @@ All twenty-five phone applications are compiled as shared-object plugins (`/usr/
|
||||
- **Mouse Cursor Emulation Mode (optional, off by default — toggle with `*#` chord or `Menu -> Toggle Mouse Cursor`)**: renders an on-screen pointer that moves with acceleration using `D-Pad` or `2`/`4`/`6`/`8` (plus diagonals `1`/`3`/`7`/`9`), automatically scrolls the page when pushed against the viewport edges, updates the bottom status bar with `(x,y)` coordinates and the hovered DOM element, and clicks or opens multi-tap input on `5` / `Center OK`.
|
||||
- **Unobtrusive bookmarking (`~/.config/sxmo/webarchy_bookmarks.tsv`)**: displays a `*` prefix on the protocol badge (`*HTTPS` / `*HTTP`) whenever the current URL is bookmarked. Press `*` followed by `1`–`9`/`0` to save the current page to slot `1`–`10` (`**` sets the homepage), `#` followed by `1`–`9`/`0` to open slot `1`–`10` (`#*` opens the homepage), or open `Menu -> Bookmarks` (`Left softkey` saves into the highlighted slot, `Center OK` opens, `Call` deletes).
|
||||
|
||||
22. **GPS test utility and OpenStreetMap navigator (`gps.so` / `xgps` / `xmaps` / `xnav`)**:
|
||||
23. **GPS test utility and OpenStreetMap navigator (`gps.so` / `xgps` / `xmaps` / `xnav`)**:
|
||||
- **Open**: select **GPS & Maps** from the System or Applications menu, or run `xgps` / `xmaps` / `xnav`.
|
||||
- **Three tabs (`1:GPS Status`, `2:OSM Map`, `3:Nav/Search` — switch with `1`–`3` or `Left`/`Right` in Tabs 1 and 3)**:
|
||||
- **`1:GPS Status`**: live GNSS reception test screen displaying Fix Status (`3D/2D FIX` vs `SEARCHING`), Latitude, Longitude, Altitude, Speed (`km/h`), Heading (`deg`), Satellites (`used/view`), HDOP, UTC timestamp, 3GPP cellular tower location (`MCC`/`MNC`/`TAC`/`CID`), and recent NMEA sentences (`$GPGGA`, `$GPRMC`, `$GPGSV`). Press **Center `OK`** to refresh immediately or `5` to center the map on the current GPS fix.
|
||||
- **`2:OSM Map`**: interactive `240x212` OpenStreetMap slippy-map tile viewer with offline PNG tile caching (`~/.cache/sxmo/osm_tiles/<z>/<x>/<y>.png`), crosshair, GPS position marker, saved waypoint pins, and active route polyline overlay. Pan with `D-Pad` (`Up`/`Down`/`Left`/`Right`) or `2`/`8`/`4`/`6`, zoom in/out (`z=2..18`) with `*` / `#` (or `Center OK` / `0`), re-center on GPS (`FOLLOW`) with `5`, or press **Call (green)** to search places.
|
||||
- **`3:Nav/Search`**: displays the active turn-by-turn route summary (total distance and next maneuver) and saved waypoints (`~/.config/sxmo/gps_waypoints.tsv`). Press **Call (green)** (or `Menu -> Search Place (Nominatim)`) to geocode any address or POI via OpenStreetMap Nominatim, or highlight any waypoint and press **Center `OK`** to compute a turn-by-turn road route from your current position via OSRM.
|
||||
|
||||
23. **Passcode phone locker (`locker.so` / `xlocker`)**:
|
||||
24. **Passcode phone locker (`locker.so` / `xlocker`)**:
|
||||
- **Activate**: select **Power -> Lock** or **Power -> Lock (Screen off)**, double-press **End / Power**, close the physical slider, or run `xlocker [lock|screenoff|wake|status]`.
|
||||
- **Controls, verification, and duress mode**: renders a fullscreen `240x320` (`X=0, Y=0`) lock screen showing the live clock, date, battery percentage, and unread SMS/notification count. Enter your numeric system password (`147147` by default, 4 or more digits) using `0`–`9`; when 4 or more digits are entered and match the user's `/etc/shadow` password hash (verified via `/usr/bin/bananarchy-verify-passcode`), the phone unlocks immediately. If a separate **duress passcode** has been configured and is entered on the lock screen (`exit 2`), `/usr/bin/bananarchy-duress-activate` silently activates **duress mode** (`/tmp/bananarchy_duress_mode` and blank profile `/tmp/duress_home`): contacts, call logs, and SMS history are blanked, the microSD card is unmounted and blocked, all active privacy/VPN tunnels are stopped (`bananarchy-privacy-ctl stop-all`), the UI theme and wallpaper are locked to `NordFrost.xth` and `/usr/share/wallpapers/nordic-peaks.png`, `*#06#` displays a session-persistent random Luhn-valid IMEI derived from the device's preconfigured 8-digit TAC, `xfiles` is clamped inside `/tmp/duress_home`, and `xpasscode`, `xprivacy`, `xtox`, `xirc`, `xsip`, and `st` are disabled and hidden from all menus until the phone is powered off or rebooted. Press `BackSpace`, `Left`, or **Right softkey (`Clear`)** to delete a digit; press **End / Power** (or **Right softkey (`Sleep`)** when the input field is empty) to blank the display while staying locked. Repeated wrong attempts enforce a 5-second lockout cooldown.
|
||||
|
||||
24. **Passcode and duress configurator (`passcode.so` / `xpasscode`)**:
|
||||
25. **Passcode and duress configurator (`passcode.so` / `xpasscode`)**:
|
||||
- **Open**: select **Passcode** from the **Config** or **Applications** menu, or run `xpasscode`.
|
||||
- **Two tabs (`1:User PIN`, `2:Duress PIN` — switch with `Left`/`Right`)**:
|
||||
- **`1:User PIN`**: enter your current numeric passcode (`0`–`9`), enter and confirm a new user passcode of any length starting at `4` numeric digits, and press **Center `OK`** on **Save User Passcode** to update the real Linux system password (`user` in `/etc/shadow`).
|
||||
- **`2:Duress PIN`**: verify your current user passcode and set or clear a separate numeric duress passcode (`4+` digits, stored as a salted hash in `/etc/bananarchy/duress.hash`, never matching the user passcode). Press `*` at any time to toggle masked vs. visible digits.
|
||||
|
||||
25. **Privacy Center (`privacy.so` / `xprivacy` / `privacy`)**:
|
||||
26. **Privacy Center (`privacy.so` / `xprivacy` / `privacy`)**:
|
||||
- **Open**: select **Privacy Center** from the **System**, **Applications**, or **Config** menu, or run `xprivacy` / `privacy` (hidden and blocked in Duress Mode).
|
||||
- **Five tabs (`1:Tor`, `2:Warp`, `3:OVPN`, `4:GS`, `5:WG` — switch with `Left`/`Right` or `1`–`5`; `Call` toggles the active tab's service; `*` refreshes status; `0` stops all active tunnels)**:
|
||||
- **`1:Tor`**: start/stop the Tor anonymity daemon (`SocksPort 127.0.0.1:9050`, `TransPort 0.0.0.0:9040`, `DNSPort 0.0.0.0:9053`) with live bootstrap progress (`0%`–`100%`), and independently toggle **Route Native Traffic** (`OUTPUT` TCP + DNS redirection) and **Route Wi-Fi/USB Tether** (`PREROUTING` TCP + DNS redirection for `usb0` and `10.42.0.0/24`).
|
||||
@@ -330,7 +338,7 @@ All twenty-five phone applications are compiled as shared-object plugins (`/usr/
|
||||
- **`5:WG` (WireGuard)**: start/stop a kernel WireGuard interface (`wg0`), generate a fresh Curve25519 keypair (`Generate New Keypair`), import a standard WireGuard `.conf` file, edit custom `PrivateKey`, `Peer PublicKey`, optional `PresharedKey`, `Endpoint (host:port)`, `Interface IP/CIDR`, and `Tunnel DNS`, and independently toggle **Route Native Traffic** and **Route Wi-Fi/USB Tether** (`table 230` with `fwmark 0xca6c` loop avoidance).
|
||||
- **Zero-drain standby**: no background OpenRC daemons run when services are turned off, and `privacy.so` sleeps at `0%` CPU on `poll()` when hidden.
|
||||
|
||||
26. **Engineering menu (`engmenu.so` / `xengmenu`) and extended logging toggle (`bananarchy-engmenu-ctl`)**:
|
||||
27. **Engineering menu (`engmenu.so` / `xengmenu`) and extended logging toggle (`bananarchy-engmenu-ctl`)**:
|
||||
- **Open**: dial **`*#0001#`** (or `###`) in `xdialer`, or run `xengmenu` (hidden and blocked in Duress Mode).
|
||||
- **Eight hardware and privacy controls (`1`–`8` hotkeys or `Up`/`Down` + `Center OK` / `Left softkey`)**:
|
||||
- **`1: Override TTL`**: set a fixed outbound IPv4/IPv6 TTL/hop-limit (`64`, `65`, `128`, or custom `1..255`) for native and tethered traffic until reboot, or `0` to restore default.
|
||||
|
||||
Reference in new issue
Block a user