Add IMS/VoLTE/VoWiFi stack and fix Dual-SIM cellular mobile data
- Add Qualcomm MCFG .mbn parser and profile store (bananarchy-imsctl), QMI_PDC/QMI_IMSDCM VoLTE daemon (bananarchy-imsd), and SWu IKEv2/EAP-AKA/ESP/SIP/AMR VoWiFi engine (bananarchy-vowifi) with disabled-by-default (auto) 4G-only activation and xmodem/xfiles/xcallscreen UI support. - Add libmm-wds-bind.so QMI_SERVICE_WDS PRIMARY subscription binding (including serialized post-mux/data-port binding), msm-modem-uim-selection DSDS PS-domain handoff, cs-only dial pause/restore (10-bananarchy-dpm.sh), cold-boot mmcli -K recovery, and networks.so connection.autoconnect no race fix. - Add offline test suites (test-ims-mbn.py, test-imsd-volte.py, test-vowifi-swu-ims.py, test-lte-mobile-data.py), update docs (CHANGELOG.md Unreleased, README.md, MANUAL.md, AGENTS.md), and pin rebuilt 4-target image SHA-256 hashes in scripts/check-rebuild.sh.
This commit is contained in:
1 parent
03bc80f267
commit
c40ec932de
65 files changed
+11916
-129
No files matched your search
@@ -196,7 +196,7 @@ All twenty-five phone applications are compiled as shared-object plugins (`/usr/
|
||||
- **Image preview and wallpaper installation**: pressing `Return` on any image file (`.jpg`, `.png`, `.bmp`, `.gif`, `.webp`, `.ppm`, `.tif`, `.ico`, `.svg`) opens the built-in image viewer (`*` toggles full-screen preview; **Left softkey (`Set Wall`)** installs the image into `~/Pictures/Wallpapers/`, applies it via `feh`, and refreshes the desktop overlay). You can also select **Preview Image** or **Set as Wallpaper** directly from the **Left softkey (`Actions`)** menu.
|
||||
- **Monophonic ringtone viewer (`.nrt`, `.rtttl`, `.rtx`, `.emy`, `.imy`), audio playback, and ringtone/notification installation**: pressing `Return` on any Nokia RTTTL (`.nrt`, `.rtttl`, `.rtx`), Ericsson eMelody (`.emy`), or IrDA iMelody (`.imy`) file opens the built-in **Ringtone Viewer** (`RingtoneView`), displaying the melody title, format tag, BPM, note count, duration, graphical piano-roll pitch contour, and scrollable note sequence (`Up`/`Down`), with instant playback preview (`*` or `Center OK`), `Left`/`Right` to step through ringtones in the current folder, **Left softkey (`Set Ring`)** to set as the active call ringtone, **`#`** to set as the active notification/SMS sound, and `1` to edit the melody text. Pressing `Return` on standard audio or tracker module files opens **Music (`xmusic`)**. From the **Left softkey (`Actions`)** menu on any monophonic melody, audio, or tracker file, select **Preview Ringtone**, **Set as Ringtone**, **Set as Notif / SMS Sound**, **Open in Ringtones App**, or **Play in Music Player**.
|
||||
- **MicroSD card (`/media/sdcard`) integration**: the external microSD slot (`sdhci@7864000`) uses `non-removable` boot-time detection with zero card-detect polling (when empty or idle, `7864900.sdhci` enters `runtime_status = suspended` and drops `l11`/`l12` to `0 mA`). If a microSD card (`/dev/mmcblk1`) is present at boot, `udev` and `/usr/bin/sxmo_sdcard.sh` automatically mount it at `/media/sdcard`; if a card is inserted or swapped while powered on (such as on side-tray phones), run `sxmo_sdcard.sh rescan` or pick **Rescan SD Card Slot** from **System menu -> SD Card**. From the **Left softkey (`Actions`)** menu inside `xfiles` (or **System menu -> SD Card**), select **Open SD Card (/media/sdcard)** to jump straight to the card (mounting it on demand if needed) or **Mount / Unmount SD Card** (`sxmo_sdcard.sh unmount`) to safely flush buffers and unbind `7864900.sdhci` before card removal.
|
||||
- **Bluetooth file transfer (`Send via Bluetooth`)**: select **Send via Bluetooth** from the **Left softkey (`Actions`)** menu on any file to choose a paired or nearby Bluetooth device (`*` rescans) and transmit the file over Bluetooth OBEX Object Push (`/usr/bin/bananarchy-bt-obex`).
|
||||
- **Bluetooth file transfer (`Send via Bluetooth`) and IMS `.mbn` profiles**: select **Send via Bluetooth** from the **Left softkey (`Actions`)** menu on any file to choose a paired or nearby Bluetooth device (`*` rescans) and transmit the file over Bluetooth OBEX Object Push (`/usr/bin/bananarchy-bt-obex`). On Qualcomm MCFG `.mbn` files, **Install IMS Profile** and **Inspect MBN Profile** parse ELF32 `MCFG_SW` metadata and install/activate the profile via `/usr/bin/bananarchy-imsctl` (blocked in Duress Mode).
|
||||
- **File management actions**: the **Left softkey (`Actions`)** menu also provides **Edit in Text Editor**, **View Text**, **Edit in nano**, **New Folder**, **New File**, **Rename**, **Copy**, **Cut / Move**, **Paste Here**, **Properties**, **Open Terminal Here**, and **Delete**.
|
||||
|
||||
9. **Camera (`camera.so` / `xcamera`)**:
|
||||
@@ -207,19 +207,20 @@ All twenty-five phone applications are compiled as shared-object plugins (`/usr/
|
||||
- **Open**: select **Themes** from the System, Apps, or Config menu, or run `xthemes`.
|
||||
- **Live theme switching and customizer**: browse 21 preinstalled `.xth` schemes (`~/.xthemes/*.xth`) with live color swatches and press **Center `OK`** or **Call (green)** to apply across `dwm`, `dmenu`, `st`, `dunst` (`bananarchy-sync-dunst-theme`), and all plugins with zero restart. Press **`*`** or **Left softkey** to customize individual colors and font sizes, save a custom theme (`#`), or edit the `.xth` file in Nano.
|
||||
|
||||
11. **Modem, Dual-SIM, and PIN/PUK manager (`modem.so` / `xmodem`)**:
|
||||
11. **Modem, Dual-SIM, IMS / VoLTE / VoWiFi, and PIN/PUK manager (`modem.so` / `xmodem`)**:
|
||||
- **Open**: select **Modem** from the System menu, or run `xmodem`. Also opens automatically when a SIM card requires PIN or PUK unlock.
|
||||
- **Four control tabs (`Left`/`Right` or `1`–`4`)**:
|
||||
- **Five control tabs (`Left`/`Right` or `1`–`5`)**:
|
||||
- **`1:SIMs`**: inspects both physical SIM slots via QMI UIM (`PRESENT`/`EMPTY`, `[PRI 4G / DEFAULT]`, `[PRI 4G / DSDS]`, `[SEC 2G / DEFAULT]`, `[SEC 2G / DSDS]`, `READY`/`PIN-LOCK`/`PUK-LOCK`, remaining retries, operator, RAT, and phone number). Press `Return` on a slot (or use the bottom quick-action rows) to **Set as Default SIM (Calls/SMS)** (instant switch without dropping network registration), **Make Primary GW (4G/Data Swap)** (`msm-modem-uim-selection switch <slot> --swap-gw` to move 4G/LTE/3G + Mobile Data to that slot and 2G DSDS standby to the other), **Unlock SIM PIN**, **Unblock SIM with PUK**, **Enable / Disable PIN Lock**, or **Change SIM PIN** (with automatic `ModemManager` reprobe after unlock).
|
||||
- **`2:Radio`**: shows signal bar, registration status, access technology (`LTE`/`UMTS`/`GSM`), operator, both IMEIs, and phone number, with actions to switch **Network Mode** (`4G/3G/2G`, `3G/2G`, `4G Only`, `3G Only`, `2G Only`), **Send USSD Code**, toggle **Modem Power**, or **Restart ModemManager**.
|
||||
- **`3:AT`**: interactive AT command console with presets (`AT`, `ATI`, `AT+CPIN?`, `AT+CSQ`, `AT+COPS?`, etc.) and custom keypad entry.
|
||||
- **`4:Log`**: scrollable history of calls, SMS events, and USSD responses.
|
||||
- **`3:IMS`**: displays live VoLTE and VoWiFi registration status, active carrier MBN profile, `QMI_PDC` / `QMI_IMSDCM` bearer state, and ISIM/USIM `EAP-AKA` readiness. Configure **VoLTE Mode** (`auto` / `on` / `off`), **VoWiFi Mode** (`auto` / `on` / `off`), **VoLTE Backend** (`auto` / `baseband` / `userspace`), **WFC Preference** (`Cellular Pref.` / `Wi-Fi Pref.`), **VoWiFi Roaming**, **Active IMS SIM Slot**, **Manage `.mbn` Profiles** (install, activate, auto-match MCC/MNC, remove, or reset to modem default), and **ePDG & SIP Settings** (`/etc/bananarchy/ims.conf`). Both VoLTE and VoWiFi default to `auto` (disabled unless connected to a strictly **4G-only** network).
|
||||
- **`4:AT`**: interactive AT command console with presets (`AT`, `ATI`, `AT+CPIN?`, `AT+CSQ`, `AT+COPS?`, etc.) and custom keypad entry.
|
||||
- **`5:Log`**: scrollable history of calls, SMS events, and USSD responses.
|
||||
|
||||
12. **Networks and Bluetooth manager (`networks.so` / `xnetworks` / `xbluetooth`)**:
|
||||
- **Open**: select **Networks** or **Bluetooth** from the System menu, or run `xnetworks` / `xbluetooth`.
|
||||
- **Three connectivity tabs (`Left`/`Right` or `1`–`3`)**:
|
||||
- **`1:Wi-Fi`**: toggle Wi-Fi radio, rescan (`*`), toggle **Wi-Fi Hotspot**, and connect to WPA2/open networks with a multi-tap password dialog (`*` toggles password visibility).
|
||||
- **`2:Cell/APN`**: toggle **Mobile Data** (configuring the QMI `bam-dmux` `wwan0` static IPv4 bearer, default route, and DNS via NetworkManager `rc-manager=file` + local `dnsmasq` caching, with automatic `1.1.1.1`/`9.9.9.9` fallback when a carrier omits DNS), inspect `wwan0` IPv4 status, edit **APN Configuration**, and toggle **USB Tethering** (forwarding tethered `172.16.42.1:53` queries to local `dnsmasq`).
|
||||
- **`2:Cell/APN`**: toggle **Mobile Data** (running `msm-modem-uim-selection mobile-data-prep` to open QMI `bam-dmux` `wwan0`, synchronize WDS `Profile [1]`/`attach_pdn`/`def_prof`, bind `QMI_WDS` via `libmm-wds-bind.so`, and temporarily pause/restore Dual-SIM `Secondary GW` if required by carrier EFS, then configuring `wwan0` IPv4, default route, and DNS via NetworkManager `rc-manager=file` + local `dnsmasq` caching with automatic `1.1.1.1`/`9.9.9.9` fallback when a carrier omits DNS), inspect `wwan0` IPv4 status, edit **APN Configuration**, and toggle **USB Tethering** (forwarding tethered `172.16.42.1:53` queries to local `dnsmasq`).
|
||||
- **`3:Bluetooth`**: toggle **Bluetooth Power** (showing a live `ON (N Active)` badge and starting `/usr/bin/bananarchy-bt-obex`), toggle **Discoverable** (`OFF (Hidden)` by default to avoid continuous Inquiry Scan standby draw, or `ON (Visible for 60s)`, persisted in `~/.config/sxmo/bt_discoverable`), edit the **Bluetooth Device Name** (`Name: <Alias> [Edit]`, persisted in `~/.config/sxmo/bt_name` and applied via `bluetoothctl system-alias` independently of the system hostname), configure the **OBEX File Receiver** (`OBEX Dir: <folder> [Set]`, opening actions to **Set Target Directory...** via an interactive folder picker including `/media/sdcard`, **Open Folder in Files**, or **Reset to ~/Downloads**, persisted in `~/.config/sxmo/bt_obex_dir`; `#` quick-opens the folder in `xfiles`), scan nearby devices (`*` or `Scan`, 15-second discovery scan), and manage paired/discovered devices. Pairing runs via a persistent `KeyboardDisplay` `Agent1` in `/usr/bin/bananarchy-bt-obex` (with `ssp on`, `bondable on`, `linksec on`, `advertising off`, Smartphone class `2 3`, and `PairableTimeout = 0`), popping up an interactive pairing dialog in `xnetworks` for 6-digit passkey confirmation (`Accept & Pair` / `Reject Pairing`), keypad PIN/passkey entry, or outgoing keyboard pairing codes (while auto-confirming screenless Classic Audio headsets). Incoming OBEX file pushes (over both L2CAP `SOCK_SEQPACKET` and RFCOMM, with Smartphone Class of Device `0x5a020c` and no `a2dp_source` role so paired Android phones recognize OPP rather than a headset) pop up an interactive confirmation dialog showing sender, filename, size, **Accept & Save File**, **Dir: ... [Set]** to pick a different destination folder on the spot, and **Reject Transfer**. The scan now drives one interactive `bluetoothctl` client through `script(1)` (`/usr/local/bin/bluetoothctl` -> `/usr/bin/bananarchy-bt-scan.sh`), sets auto transport and duplicate-data, asks the same client for `devices` three times while discovery is active, parses both `[NEW] Device ...` / `[CHG] Device ...` and `Device <MAC> <Name>` lines, and stops discovery cleanly before the client exits; the controller is also powered on automatically if `bluetoothctl show` reports `Powered: no`. A narrow `doas` helper runs `btmgmt -i hci0 le on` alongside BR/EDR SSP/bondable flags before discovery because this WCNSS controller otherwise starts with LE and pairing flags unconfigured. BlueZ keeps `ControllerMode = dual`: `bredr` mode rejects the LE-only HOGP profile, so BLE HID devices would connect at the GATT level but never create a keyboard or mouse input node. **Connect Device** and **Pair & Trust Device** run non-blockingly (`--async-ui`), power the adapter on, enable LE/SSP, select the `le` bearer for HID-over-GATT devices, prefer public BR/EDR entries and the `bredr` bearer (`ConnectProfile` A2DP/HFP fallback) for Classic Audio / dual-mode Bluetooth 5.x/6.x headsets or `OBEX/PAN` phones, and automatically pair unpaired peripherals. Active connections are pinned to the top of the device list with a green border and live profile/battery badges (`[ACTIVE: A2DP]`, `[ACTIVE: HSP/HFP]`, `[ACTIVE: HID Gamepad]`, `[ACTIVE: HID Keyboard]`, `[ACTIVE: HID Mouse]`), and the device actions menu (`Center OK`) provides **Connect Device**, **Disconnect Device**, **Pair & Trust Device**, **Switch Audio (A2DP / HSP-HFP)**, and **Forget / Remove Device**. Supports Bluetooth **A2DP** (`sbc`, `sbc_xq`, `aac`, `ldac` ABR `auto`, `aptx`, `aptx_hd`) with AVRCP hardware volume and Play/Pause/Next/Prev headset button control of `xmusic`, and **HSP/HFP** (`CVSD` 8 kHz over QDSP6 `INTERNAL_BT_SCO`, with `mSBC`/`LC3-A127`/`LC3` and unsupported LE Audio BAP roles disabled, plus headset `ATA` call answer/A2DP restore synchronization), **HID keyboards** (automatically switching `fcitx5-t9` and NeoUI/plugin inputs to `[KBD]` direct QWERTY mode so `0-9`, `*`, `#`, `Shift+0-9`, and letters bypass T9 multi-tap and preedit popups), **HID mice** (automatically showing the X11 mouse cursor whenever a mouse is connected and hiding it when disconnected), and **HID gamepads** (automatically bridged to the phone's D-Pad, softkeys, and action keys via `/dev/uinput`).
|
||||
|
||||
13. **Ringtones, notification/SMS sounds, and ringer manager (`ringtones.so` / `xringtones`)**:
|
||||
@@ -248,7 +249,7 @@ All twenty-five phone applications are compiled as shared-object plugins (`/usr/
|
||||
- **`1:Dialer`**: enter a SIP URI (`user@host[:port]` or `sip:user@host[:port]`) or account extension (`1001`) using multi-tap alphanumeric input (`*` or `#` cycles `[abc]` / `[ABC]` / `[123]` / `[Sym]` / `[Abc]`) or select a recent peer with `Up`/`Down`, and press **Call (green)** or **Center `OK`** to place an outgoing SIP call. Outbound calls work both with a registered SIP account and directly without any configured account (`Direct URI` mode, selectable via `Menu -> Switch Account` when accounts are also present).
|
||||
- **`2:Accounts`**: add or edit SIP accounts (`~/.config/sxmo/sip_accounts.tsv`: Label, alphanumeric Username, Password, Domain, Port, UDP/TCP/TLS transport, ZRTP toggle, Preferred Codec, Enabled). Enabled accounts maintain RFC 3261 `REGISTER` keepalives with Digest MD5 authentication in the background even when `xsip` is closed.
|
||||
- **`3:History`**: browse incoming, outgoing, and missed SIP calls (`~/.local/share/sxmo/sip_history.tsv`) and press **Call (green)** or **Center `OK`** to redial.
|
||||
- **Audio codecs (`AUTO`, `PCMU`, `PCMA`, `GSM`, `OPUS`, `G722`, `G726-32`, `DVI4`, `L16`)**: supports full SDP `m=audio` / `a=rtpmap` / `a=fmtp` negotiation across 10 narrowband (`8 kHz`) and wideband (`16 kHz`) RTP/SRTP audio profiles, prioritizing **ITU-T G.711** `PCMU` (`PT 0`) and `PCMA` (`PT 8`, 8 kHz 64 kbps) first in `AUTO` mode, followed by **GSM 06.10 Full Rate** (`GSM/8000`, `PT 3`, 8 kHz 13 kbps RPE-LTP), **Opus** (`opus/48000/2`, RFC 7587, 16 kHz wideband VoIP with in-band FEC), **ITU-T G.722** (`G722/8000`, 16 kHz wideband 64 kbps SB-ADPCM), **ITU-T G.726-32** (`G726-32/8000`, 8 kHz 32 kbps ADPCM), **IMA ADPCM** (`DVI4/8000` `PT 5` and `DVI4/16000` `PT 6`), and **uncompressed 16-bit PCM** (`L16/8000` and `L16/16000`), plus **RFC 2833 / RFC 4733 `telephone-event/8000`** DTMF. Preferred codec priority is configurable per account (`Codec` field in the Account Editor) or for direct accountless calls (`Menu -> Cycle Direct Codec`).
|
||||
- **Audio codecs (`AUTO`, `PCMU`, `PCMA`, `GSM`, `OPUS`, `G722`, `AMR-WB`, `AMR-NB`, `G726-32`, `DVI4`, `L16`)**: supports full SDP `m=audio` / `a=rtpmap` / `a=fmtp` negotiation across narrowband (`8 kHz`) and wideband (`16 kHz`) RTP/SRTP audio profiles, prioritizing **ITU-T G.711** `PCMU` (`PT 0`) and `PCMA` (`PT 8`, 8 kHz 64 kbps) first in `AUTO` mode, followed by **GSM 06.10 Full Rate** (`GSM/8000`, `PT 3`, 8 kHz 13 kbps RPE-LTP), **Opus** (`opus/48000/2`, RFC 7587, 16 kHz wideband VoIP with in-band FEC), **ITU-T G.722** (`G722/8000`, 16 kHz wideband 64 kbps SB-ADPCM), **AMR-WB** (`AMR-WB/16000`) and **AMR-NB** (`AMR/8000`, RFC 4867 octet-aligned and bandwidth-efficient modes), **ITU-T G.726-32** (`G726-32/8000`, 8 kHz 32 kbps ADPCM), **IMA ADPCM** (`DVI4/8000` `PT 5` and `DVI4/16000` `PT 6`), and **uncompressed 16-bit PCM** (`L16/8000` and `L16/16000`), plus **RFC 2833 / RFC 4733 `telephone-event/8000`** DTMF. Preferred codec priority is configurable per account (`Codec` field in the Account Editor) or for direct accountless calls (`Menu -> Cycle Direct Codec`).
|
||||
- **ZRTP / SRTP encryption and CallScreen (`xcallscreen`) integration**: supports RFC 6189 **ZRTP** (`DH3k` 3072-bit / `DH2k` 2048-bit Diffie-Hellman key agreement with `a=zrtp-hash` SDP signaling and persistent 96-bit `ZID`) and RFC 3711 **SRTP** (`AES-128-CM` + `HMAC-SHA1-80`/`32`) encrypted voice media (`ON` by default per account and for direct accountless calls via `Menu -> Toggle Direct ZRTP`). Incoming `INVITE` requests wake the phone, trigger the ringtone/vibrator, and open `xcallscreen` with a `[SIP/<codec>]` badge; once ZRTP completes its handshake, the active codec and 4-character Short Authentication String (`SAS`) are displayed in both `xsip` (`<codec> | ZRTP SAS:<sas>`) and `xcallscreen` (`[SIP/<codec>:<sas>]`).
|
||||
|
||||
17. **Email client (`email.so` / `xemail` / `xmail`)**:
|
||||
@@ -586,10 +587,26 @@ Both the rear loudspeaker (`Speaker`, with boosted `RX3 Digital Volume` for loud
|
||||
```bash
|
||||
doas /usr/libexec/msm-modem-uim-selection ussd initiate --sim 2 "*111#"
|
||||
```
|
||||
- **Prepare cellular PS attach / WDS APN profiles and restore Dual-SIM standby cleanly**:
|
||||
```bash
|
||||
doas /usr/libexec/msm-modem-uim-selection mobile-data-prep internet
|
||||
nmcli connection up internet
|
||||
nmcli connection down internet
|
||||
doas /usr/libexec/msm-modem-uim-selection restore-dsds
|
||||
```
|
||||
- **Inspect ModemManager registration, operator, and signal quality**:
|
||||
```bash
|
||||
mmcli -m any
|
||||
```
|
||||
- **Inspect or configure IMS `.mbn` profiles, VoLTE, and VoWiFi (`/etc/bananarchy/ims.conf`)**:
|
||||
```bash
|
||||
bananarchy-imsctl status
|
||||
bananarchy-imsctl probe --json
|
||||
doas bananarchy-imsctl profile inspect /path/to/mcfg_sw.mbn
|
||||
doas bananarchy-imsctl profile install /path/to/mcfg_sw.mbn --activate
|
||||
doas bananarchy-imsctl set volte_mode on|auto|off vowifi_mode on|auto|off
|
||||
doas bananarchy-imsctl auto-match
|
||||
```
|
||||
|
||||
### 5.5 Adreno 304 GPU hardware acceleration and OpenGL / OpenGL ES demos
|
||||
|
||||
|
||||
Reference in new issue
Block a user