Restore 72h DSDS + Wi-Fi standby battery optimizations across all targets
- Fix Combined EPS/IMSI (cs_attach=1) false 4G-only IMS activation in ims_qrtr.h, close idle QRTR sockets, bound child/baseband retries, and deduplicate state.env writes in bananarchy-imsd.c - Skip inactive DHCP/connectivity IMS notifications in 40-bananarchy-ims.sh and add capped exponential registration backoff (5s-300s) plus openCtlSocket() rebind guard in bananarchy-vowifi - Sync CPU scaling_governor and idempotent screenoff/screenon policy across bananarchy-display-power-sync, locker.so, and bananarchy-power-policy.sh (standby.mode + rat_timer.pid), and gate noisy change events when dark in 30-bananarchy-network-status.sh - Fix bananarchy-dsds --sig-hysteresis QMI NAS wire opcodes to 0x0045 (1-byte sub bind) and 0x0050 (RSSI/RSCP/RSRP/LTE report threshold config) - Remove static 200 mA regulator-system-load on PM8909 l11 across all 6 DTS files and recompile all 5 shipping DTBs - Extend test-imsd-volte.py, test-standby-power-policy.py, check-rebuild.sh, BATTERY-OPTIMIZATION-ANALYSIS.md (Section 24), AGENTS.md, and Unreleased CHANGELOG.md notes + rebuilt image SHA-256 checksums (--mkinitfs)
This commit is contained in:
1 parent
c40ec932de
commit
c9eb28b891
42 files changed
+751
-91
No files matched your search
+15
-7
@@ -27,14 +27,22 @@ Release versions follow the `<year-letter><MM><DD>` format (where `2026` is `a`,
|
||||
- **Qualcomm MCFG `.mbn` ELF32 parser, profile store, and `QMI_PDC` loader (`src/bananarchy-daemons/ims_mbn.h`, `ims_qrtr.h`, `bananarchy-imsctl.c`, `bananarchy-imsd.c`)**: implemented pure-C Qualcomm MCFG `.mbn` ELF32 LE validation (enforcing `config_type == 1` software configs, parsing `MCFG_TRL` carrier/MCC-MNC/version trailers, scanning `NV 67218` / EFS IMS flags, and computing pure-C SHA-1 `ba_<16hex>` IDs without external tools), persistent storage under `/var/lib/bananarchy/ims/profiles/`, `QMI_PDC` chunked `.mbn` loading/activation over `AF_QIPCRTR` (deduplicated via `g_pdc_loaded_id` / `pdc_select_only`), `QMI_DSD` `"ims"` APN tagging, dedicated-socket `QMI_IMSDCM` (`0x0302`) bearer activate/deactivate server, `QMI_IMS`/`QMI_IMSA` baseband VoLTE control with userspace fallback (`userspace`), and full Duress Mode mutation/exposure guards (`kDuressModeFlagPath`).
|
||||
- **VoWiFi (`SWu` IKEv2 + `EAP-AKA`/`EAP-AKA'` + UDP/4500 ESP + 3GPP SIP + `SMS-over-IP`) and AMR-WB/AMR-NB codec support (`src/dwm-plugins/bananarchy_vowifi.cpp`, `vowifi_ikev2.h`, `vowifi_aka.h`, `amr_rtp.h`, `sip_plugin.cpp`)**: added an event-driven C++20 `SWu`/`IMS` userland engine implementing RFC 7296 IKEv2 (`COOKIE`, OpenSSL 3 `BN_get_rfc3526_prime_2048()` DH Group 14 with Group 2 fallback, `CFG_REQUEST` `P_CSCF_IP4/6`), RFC 4187/5448 `EAP-AKA` / `EAP-AKA'` via locked `QMI_UIM` `ISIM`/`USIM` `OPEN_LOGICAL_CHANNEL` + `SEND_APDU` (plus offline Milenage support), RFC 3948 UDP/4500 ESP over `tun_ims`, 3GPP SIP `REGISTER` (`AKAv1-MD5` with `AUTS` resync & instant `REFRESH` triggers), `INVITE` / `183 Session Progress` / `PRACK` / `UPDATE` / RTP / DTMF / `BYE`, `SMS-over-IP` (`RP-DATA` GSM-7/UCS-2 logging cleanly without `[SIM n]` tags), anti-spam `block.tsv` filtering, runtime-`dlopen`ed `AMR-WB` (`16 kHz`) / `AMR-NB` (`8 kHz`) octet-aligned and bandwidth-efficient RFC 4867 codecs (shared with `xsip` / `sip.so`), and cellular-first `112`/`911` emergency call routing (`sxmo_modemdial.sh`, `sxmo_modemcall.sh`, `sxmo_modemsendsms.sh`).
|
||||
- **NeoUI control, CallScreen, power policy, and offline verification (`modem_plugin.cpp`, `files_plugin.cpp`, `callscreen_plugin.cpp`, `bananarchy-power-policy.sh`, `scripts/test-{ims-mbn,imsd-volte,vowifi-swu-ims,standby-power-policy}.py`)**: expanded `xmodem` to 5 tabs (`1:SIM 2:Rad 3:IMS 4:AT 5:Log`) with interactive `.mbn` install/select/remove and ePDG modals, added `.mbn` inspect/install actions to `xfiles`, wired `[SIM n VoWiFi]` / `[SIM n VoLTE]` badges and 425 Hz ringback into `xcallscreen`, updated `sxmo_hook_statusbar.sh`, `sxmo_hook_modem.sh`, `bananarchy-cover-status.sh`, `bananarchy-power-policy.sh` (preventing GSM parking during active cellular-preferred VoLTE and preserving IPv6 RA when `VOWIFI_IPV6_EPDG=1`), and added offline mock-QRTR / mock-TUN / Milenage host test suites (`test-ims-mbn.py`, `test-imsd-volte.py`, `test-vowifi-swu-ims.py`, and case 6 in `test-standby-power-policy.py`) wired into `scripts/check-rebuild.sh`.
|
||||
|
||||
### Standby battery life restoration (~72h DSDS + Wi-Fi ON target) across all targets
|
||||
|
||||
- **IMS Combined EPS/IMSI detection, QRTR idle sleep, and VoWiFi backoff (`src/bananarchy-daemons/ims_qrtr.h`, `bananarchy-imsd.c`, `src/dwm-plugins/bananarchy_vowifi.cpp`, `overlay/rootfs/etc/NetworkManager/dispatcher.d/40-bananarchy-ims.sh`)**: inspected TLV `0x01` `cs_attach` in `ims_qmi_nas_get_serving()` (plus PS-attach/registered checks) so standard Combined EPS/IMSI (`cs_attach == 1`) LTE+CSFB cells stay `NETWORK_4G_ONLY=0` under `volte_mode=auto` / `vowifi_mode=auto` rather than keeping VoLTE/VoWiFi active and blocking GSM Wi-Fi standby RAT parking; added `close_qrtr()` when idle, deduplicated `ims_state_write()` updates via `ims_state_equal()`, bounded child sync/check retries so `bananarchy-imsd` returns to `poll(..., -1)` instead of waking every `2,000 ms`, skipped NAS QRTR probes on Wi-Fi events while parked or inactive, skipped `40-bananarchy-ims.sh` `dhcp4-change` / `dhcp6-change` / `connectivity-change` notifications when both `VOLTE_ACTIVE` and `VOWIFI_ACTIVE` are `0`, guarded `openCtlSocket()` rebinds in `bananarchy-vowifi`, and replaced its `1.5 s` / `10 s` retry storm with capped exponential backoff (`5 s` to `300 s`).
|
||||
- **Display/lockscreen/cover power-policy sync & idempotency (`overlay/rootfs/usr/bin/bananarchy-display-power-sync`, `bananarchy-power-policy.sh`, `src/dwm-plugins/locker_plugin.cpp`, `30-bananarchy-network-status.sh`)**: synced `CPU_GOV_PATH` (`powersave` when dark or cover-lit, `schedutil` on interactive wake) and `sync_standby_policy()` across both flip and non-flip branches of `bananarchy-display-power-sync`, wired `blankScreenBacklight()` / `wakeScreenBacklight()` in `locker.so` to `/usr/bin/bananarchy-power-policy.sh screenoff|screenon`, made `screenoff()`, `screenon()`, and `arm_rat_park_timer()` idempotent via `$RUNDIR/standby.mode` and `$RUNDIR/rat_timer.pid` across dark/cover-lit/dark cycles, and suppressed `30-bananarchy-network-status.sh` `su user` spawns for noisy `dhcp4-change` / `dhcp6-change` / `dns-change` / `connectivity-change` events while dark.
|
||||
- **QMI NAS signal hysteresis wire-protocol fix (`src/bananarchy-daemons/bananarchy-dsds.c`)**: corrected `apply_sig_hysteresis()` from wrong opcodes `0x006F` (`4`-byte sub) and `0x004F` (`GET_SIGNAL_INFO`) + TLV `0x13` to `QMI_NAS_BIND_SUBSCRIPTION` (`0x0045`, `1`-byte TLV `0x01`) and `QMI_NAS_CONFIG_SIGNAL_INFO` (`0x0050`) with `RSSI` (`0x10`), WCDMA `RSCP` (`0x18`), LTE `RSRP` (`0x16`, 16-bit LE), and `lte_report` (`0x17`, `rate=0`, `avg=5 s` dark / `1 s` wake) verified against `libqmi-glib.so.5.12.0`, suppressing minor standby RF fluctuations from waking APSS over QRTR.
|
||||
- **microSD PM8909 `l11` static `200 mA` load removal (`devices/*/*.dts`, `prebuilt/kernel-6.12.1-msm8916/dtbs/*.dtb`)**: removed static `regulator-system-load = <0x30d40>;` from PM8909 `l11` across all 6 DTS files and recompiled all 5 shipping DTBs so `sdhci@7864000` honors pure `regulator-allow-set-load;` Low-Power Mode when a microSD card is inserted.
|
||||
- **Offline verification (`scripts/test-imsd-volte.py`, `scripts/test-standby-power-policy.py`, `scripts/check-rebuild.sh`, `BATTERY-OPTIMIZATION-ANALYSIS.md`)**: added host regression tests for Combined EPS/IMSI (`cs_attach=1`), `searching_lte`, and 0-packet `2.2 s` QRTR idle silence in `test-imsd-volte.py`; added host tests for `CPU_GOV_PATH` + idempotent `screenoff`/`screenon` across dark/cover-lit/open, `standby.mode`/`rat_timer.pid`, `bananarchy-dsds --sig-hysteresis` QMI `0x0045`/`0x0050` wire framing over `AF_UNIX` `SOCK_SEQPACKET`, and `30-bananarchy-network-status.sh` dark gating in `test-standby-power-policy.py`; guarded DTS/DTBs against `regulator-system-load` in `check-rebuild.sh`; and documented Section 24 in `BATTERY-OPTIMIZATION-ANALYSIS.md`.
|
||||
- **Rebuilt local image SHA-256 checksums (`--mkinitfs`, no release `.zip` archives built yet)**:
|
||||
- `images/bananarchy-nokia-argon.img`: `22014270bb62ebc825afe5ef60fe8aefa65776eb9efc511b92e834a61b59fb0e`
|
||||
- `images/bananarchy-nokia-beatles.img`: `dce127a00efcf1e19aeaa8b21e4f28b33cdd5dd0044dcea0051a2e880c021ef7`
|
||||
- `images/boot-bananarchy-nokia-beatles.img`: `480d6988f57028006ce0227092de077dffe5d6a51dadeedb0ef1f16a9a35a3e0`
|
||||
- `images/bananarchy-nokia-coconut.img`: `1d5f20a0f6677748c25eedd044b23bb168ddaee0e4ae71c47ceefc0b0878c86f`
|
||||
- `images/boot-bananarchy-nokia-coconut.img`: `7f56459f258857ed0252d0cd81e8fe496e55af2cff48e3cf6defe39a341dfc4a`
|
||||
- `images/bananarchy-nokia-sparkler.img`: `99d54d6bc001e97f41dc314bbf012ef266251a70b6663a82260f32b1ffeff9e5`
|
||||
- `images/boot-bananarchy-nokia-sparkler.img`: `a57973505f56754be74fdea9536e656af82a93d3d3722dcb61b3c6b6e9f6782b`
|
||||
- `images/bananarchy-nokia-argon.img`: `7ed88928baf8f8926e7213919e304991cd0a30e0166c0b91da610396f606cf37`
|
||||
- `images/bananarchy-nokia-beatles.img`: `616ef7ceaa3e49b73ff90f14c8d30e658f3e35349549414a78c1f6a15e6f75c2`
|
||||
- `images/boot-bananarchy-nokia-beatles.img`: `a51cf223d3b6231e1a00947f5a084939c54c76d10051a43d37dfd2652d88f99f`
|
||||
- `images/bananarchy-nokia-coconut.img`: `598482a219e235cc323821d8dda5c62d380ec6773b739fdf1c12cf8ad7c6648e`
|
||||
- `images/boot-bananarchy-nokia-coconut.img`: `f6ba9567d9f57a5503751c023a606eae71a8f68047c03380f68ab488b8ab51b5`
|
||||
- `images/bananarchy-nokia-sparkler.img`: `d86779df5f38d0d5cd516b9123f17dfbd7ba8874435517146e281382e5998f9a`
|
||||
- `images/boot-bananarchy-nokia-sparkler.img`: `1e6a1659c4ae9a95c29c96a41edf9343535229d583dcec3d2063667c98745fbc`
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in new issue
Block a user