**Bananarchy** is a keypad-first Linux distribution hardforked from postmarketOS (`v26.06` / Alpine `edge``armv7`), built for **Qualcomm MSM8905 (Snapdragon 205)** and **Qualcomm MSM8909 (Snapdragon 210)** smart feature phones with **240x320 QVGA non-touch displays** and **physical 12-key T9 keypads**.
- **Device builds (`a1125` — codename `ampere`)** — available in the [shared download folder](https://drive.google.com/drive/folders/1jS68CQbKJPrNM7MZgV64qi6penY5g1nM?usp=sharing):
- **Mainline Linux 6.12 kernel**: custom patches and out-of-tree drivers for Adreno 304 (`FD304`) 3D GPU acceleration, full-bandwidth `48 kHz` QDSP6/WCD HiFi audio with lossless stereo-to-mono speaker downmixing and automatic 3.5mm headphone jack detection, Dual-SIM modem control, 2MP rear V4L2 camera (automatically upright per target), torch/flash LEDs, zero-latency `input_core` keypad chatter debouncing, calibrated `157 Hz` speaker-LRA haptics on Nokia 8000 4G (isolated during loudspeaker media playback), and event-driven standby power management (`< 95 MB` idle RAM on 512 MB devices; see [BATTERY-OPTIMIZATION-ANALYSIS.md](./BATTERY-OPTIMIZATION-ANALYSIS.md)).
- **Pure X11 desktop (`Xlibre` + `sxmo-de-dwm`)**: GPU-accelerated X11 via Glamor/DRI3/GLX over `panel-mipi-dbi`, custom `240x320` vertical layouts, native desktop clock and softkey bar without Conky overhead, compiled C idle/autostart daemons, `< 2 ms` key/slider wake latency, and zero Wayland overhead.
- **Nokia 2720 Flip external cover display**: kernel-driven `240x240` outer screen while the flip is closed (clock, date, battery/network indicators, caller ID with outer side-button mute/hangup, and Quagr pager alerts) alongside hall-sensor `SW_LID` handling and per-device lid profiles (`slider`, `flip`, `none`).
- **Stock radio firmware and time sync**: `msm-firmware-loader` mounts factory `modem` and `persist` partitions directly so Wi-Fi, Bluetooth, and LTE run with factory calibration and zero redistributed proprietary blobs. `chronyd` (plus an optional GPS-only clock mode) keeps system time and live timezone changes synchronized across the status bar, lock screen, and cover display.
- **Menus and quick drawer (`dmenu`, `xdrawer`)**: instant T9-filtered vertical menus, keypad-cancellable timers, dual-softkey quick drawer (volume, output routing, ringer/vibration intensity, flashlight, mic/sound mute, screen and keypad brightness), and `*` + `#` PNG screenshots to `~/Pictures/`.
- **Passcode lock screen and Duress Mode (`xlocker`, `xpasscode`)**: fullscreen numeric PIN lock screen (default **`147147`**) verified against `/etc/shadow`, configurable idle blank/lock timeout, and optional plausible-deniability **Duress Mode** (blank RAM profile, unmounted microSD, hidden terminal and encrypted messaging apps, and a randomized Luhn-valid `*#06#` IMEI until reboot).
- **Telephony, Dual-SIM, LTE data, and VoLTE/VoWiFi (`xdialer`, `xcalllog`, `xcallscreen`, `xcontacts`, `xsms`, `xmodem`)**: T9 contact dialer, interactive USSD, Dual-SIM Dual Standby (DSDS) with Primary/Secondary 4G slot swapping, one-key WAV call recording, 5-tab call log and threaded Unicode/concatenated SMS with shared anti-spam blocklist, QMI SIM phonebook import/export, and Qualcomm MCFG `.mbn` IMS profile management with `auto`-mode 4G-only **VoLTE** and **`SWu` VoWiFi** (`112`/`911` cellular-first emergency routing).
- **Wi-Fi, cellular APN, and Bluetooth (`xnetworks`, `bananarchy-bt-obex`)**: Wi-Fi client and hotspot, USB tethering, 4G/LTE mobile data (`wwan0`) and APN editor, Bluetooth 5.x/6.x `A2DP`/`HSP`/`HFP` headset audio with AVRCP controls, BLE/Classic HID keyboards, mice, and gamepads, and Android SSP pairing with bidirectional OBEX file transfer.
- **Files, media, camera, and theming (`xfiles`, `xmusic`, `xcamera`, `xthemes`, `xwallpapers`, `xringtones`)**: file manager with microSD automount (`/media/sdcard`), GUI multi-tap text editor, image viewer, `.mbn`/`.jar`/`.gb`/`.yab` launchers, `mpv` + `libopenmpt` audio and chiptune tracker player, monophonic RTTTL/eMelody/iMelody ringtone synth and previewer, V4L2 camera app, and **21 live-reloadable `.Xresources` themes**.
- **Communication, web, privacy, and navigation suite**:
- **SIP VoIP (`xsip`)**: RFC 3261 account-registered and direct P2P URI softphone with **ZRTP/SRTP** voice encryption and wideband/narrowband codecs (`Opus`, `G.722`, `AMR-WB`/`NB`, `G.711`, `GSM`, `G.726`, `DVI4`, `L16`).
- **Email (`xemail`)**: multi-account `IMAP4rev1` / `POP3` / `SMTP` client with TLS/`STARTTLS` and offline inbox cache.
- **IRC (`xirc`)**: multi-server TLS IRCv3 client with `SASL PLAIN` and background highlight alerts, preconfigured for **Abjects** (`irc.abjects.net:6697`, `#bananarchy`).
- **Tox (`xtox`)**: encrypted P2P messenger and `ToxAV` 48 kHz Opus voice calls.
- **Webarchy (`webarchy`) and Kopher (`xkopher`)**: WebKitGTK HTML5/CSS3/JS browser (keypad link-stepping and `*#` cursor modes) alongside a Gopher, Gemini, Spartan, and Nex SmallWeb client.
- **Privacy Center (`xprivacy`) and zero-log defaults**: 5-tab tunneling control (**Tor**, **GS-Warp**, **OpenVPN**, **GSocket**, **WireGuard**) for on-device and hotspot/USB-tethered traffic; system and X11 logging are **OFF** by default with optional RAM-only Extended Logging (`Config -> Extended Logging`).
- **GPS and Maps (`xgps`, `bananarchy-gps`)**: live GNSS/cell status, offline-cached OpenStreetMap viewer, Nominatim search, and OSRM turn-by-turn routing.
- **6-mode `fcitx5-t9` keypad input**: press `#` to cycle `abc`, `Abc`, `ABC`, `Sym`, `Ctl`, and `123` modes (plus automatic direct QWERTY `[KBD]` pass-through when a USB or Bluetooth keyboard is connected).
- **First-class Linux terminal (`st`)**: patched with HarfBuzz `Fira Code` OpenType ligatures, XIM T9 input, and live theme reload.
- **Games and emulators**: standalone `Snake`, `Tetris`, and `Scoundrel`, **Gambatte (`gbemu`)** Game Boy / Color emulator, and **ReMEdy (`remedy`)** native `240x320` J2ME (MIDP 2.0 + Adreno 304 JSR-184 M3G 3D) emulator.
- **CLI utilities and NeoUI/NeoNet SDK**: preinstalled `curl`, `git`, GNU `coreutils`, `bc`/`dc`, `mandoc`, `nano`, `less`, `ed`, `rlwrap`, `tcl`/`expect`, `frotz`, the [Bantam](https://bantam.luxferre.top/) coding agent, and **Yabasic** paired with `libneoui.so` (`neoui.h` / `neoui.yab`) and `neonet.yab` (see [SDK.md](./SDK.md)).
1. Download your target archive (`bananarchy-<device>-a1125-ampere.zip`) from the [shared download folder](https://drive.google.com/drive/folders/1jS68CQbKJPrNM7MZgV64qi6penY5g1nM?usp=sharing) and extract its `.img` files into `images/` (for `nokia-argon`, `bootloader/lk2nd-msm8909.img` is already tracked in the repo).
2. Boot the phone into Qualcomm EDL mode and run the automated flasher (uses the vendored `vendor/edl/` client and automatically backs up EFS/IMEI/modem partitions before writing):
3. On first boot, unlock the screen with the default passcode **`147147`**, connect over USB RNDIS SSH with `ssh user@172.16.42.1` (password `147147`; fallback listener on port `2222`), and use **Menu -> Power -> Reboot to loader** to reach the `lk2nd` Fastboot / EDL menu.
See [MANUAL.md](./MANUAL.md) for manual `bkerler/edl`, Fastboot, and microSD installation methods, device button combinations, and complete keypad controls, and [bootloader/lk2nd/README.md](./bootloader/lk2nd/README.md) for source `lk2nd` details.
A clean clone builds a complete flashable image autonomously inside rootless Docker:
```bash
./scripts/check-rebuild.sh [target]# offline preflight checks (all targets by default)
./rebuild-image.sh nokia-argon # bootstraps rootfs/ and writes images/bananarchy-<target>.img
./rebuild-image.sh nokia-beatles --mkinitfs
./rebuild-image.sh nokia-coconut --mkinitfs
./rebuild-image.sh nokia-sparkler --mkinitfs
./prepare-release.sh <target> # validates and packages release .zip archives
```
All cross-compiled outputs live under `prebuilt/` (synced automatically into `overlay/rootfs/` via `scripts/sync-prebuilt-overlay.sh`), and `scripts/rootfs-packages.txt` defines the `armv7` package set. Optional helper scripts let you rebuild individual layers or customize `rootfs/`: