Repository navigation
v0.1.2
RIPDPI v0.1.2
The largest release yet — roughly 500 commits since v0.1.1. This cycle lands a new Mieru protocol implementation, an Xray-backed managed tunnel, generic AmneziaWG and SSH outbounds, a security-hardened Lua strategy sandbox, per-connection uTLS fingerprint rotation, a post-quantum hybrid KEM for REALITY/xHTTP handshakes, a reworked information architecture with several new screens, and a major ShadowTLS throughput fix. It is also the first release to ship per-ABI split APKs — read the Distribution section before downloading.
✨ Highlights
- ShadowTLS throughput fixed (~0.5 → ~315 MiB/s) — an O(n²)/unbounded-memory rolling HMAC and read/write frame-buffer aliasing that corrupted data under concurrent traffic are both resolved; long-lived ShadowTLS relays no longer stall or leak memory (
abde27b95). - New Mieru protocol — a full XChaCha20-Poly1305 TCP-carrier outbound (faithful to upstream
enfein/mieru) replaces the old stub, with connection multiplexing across one carrier (b0c55045c,11f7dff45). - Per-connection uTLS fingerprint rotation — a new
rotatingTLS-fingerprint setting draws a fresh ClientHello per outbound connection, defeating cross-connection fingerprint correlation; wired into VLESS+REALITY and xHTTP (75f524ede,01e2202e7). - Post-quantum hybrid key exchange — an optional X25519MLKEM768 hybrid KEM group is applied to VLESS+REALITY and xHTTP TLS handshakes, with telemetry (
5b0ea5a66). - Lua strategy sandbox hardened against local code execution — an external review found imported strategy configs ran with the full Lua 5.4 stdlib (os/io/package/debug) in the app UID; both VMs now expose only TABLE/STRING/MATH/UTF8, jail all script loads to
filesDir/lua, reject bytecode, and drop trust-on-first-use (472622b12,9d51b21ed). - Xray providers run as a managed in-app tunnel — Xray-backed exit profiles now connect end to end through a protect-first session runner and durable, Keystore-encrypted profile store, with live provider telemetry across Home, Diagnostics, and Settings (
e6712643f,dd2949a28,89c445485). - Generic AmneziaWG and first-class SSH outbounds — non-Cloudflare AmneziaWG tunnels (Jc/Jmin/Jmax/H1–H4/S1–S2/I1–I5, optional PSK) run over the existing boringtun WARP data plane, and SSH joins as a first-class proxy profile with a round-tripping
ssh://share codec (491503bdd,b87e0a859). - Information-architecture overhaul — a reworked navigation spine plus dedicated Connection Health, Strategy Tuner, Subscription Failover, Profile Share, and PCAP-annotation screens (
27def4e25,775f9c073). - Several protect-invariant and process-abort fixes — MASQUE ECH DNS lookups and proxy/WireGuard sockets are now protected before connect, and two poisoned-mutex
drop()paths (relay-mux, exit-IP cap) no longer take the whole app down.
Features
Relay & transports
- New Mieru TCP-carrier outbound with multiplexing — sessionID-tagged sub-sessions share one connection with per-level concurrency ceilings (off/low/middle/high = 1/8/32/128) and nonce-monotonic backpressure (
b0c55045c,11f7dff45,43600c443). - Per-connection uTLS fingerprint rotation — a
rotatingfingerprint mode backed by aRotatingProfileSelectorissues a fresh ClientHello on every outbound connection so SNI/JA3-class fingerprinting can't correlate sessions, applied to VLESS+REALITY and xHTTP (75f524ede,01e2202e7). - X25519MLKEM768 hybrid post-quantum KEM — a configurable hybrid key-exchange group for VLESS+REALITY and xHTTP TLS handshakes, with telemetry to confirm the PQ group negotiated (
5b0ea5a66). - Cert-pinning for TUIC and MASQUE — a
root_certificate_pemtrust anchor (mirroring Trojan/AnyTLS) lets you pin a private-CA or self-signed exit cert with full TLS verification still on (010b4bed6,6087cae2a). - Actionable version-mismatch diagnostics — a ShadowTLS v2 or TUIC v4 server now surfaces a clear "upgrade your server to v3/v5" message instead of a generic handshake error (
ee2c3d648,96e32784e). - Real libXray bridge wired in — compiles against the gomobile libXray AAR via a presence-gated source-set swap, preserving protect-first ordering and keeping offline CI compiling against a throwing stub (
89c445485).
DPI evasion
- TLS-spoof pre-handshake SNI desync — a new
ripdpi-tls-spoofcrate injects a forged decoy-SNI ClientHello so SNI-filtering DPI commits its decision on the decoy before the real handshake (relay-side, needs CAP_NET_RAW + TCP_REPAIR) (9812b0ecd). - Per-exit-IP concurrent-TLS session cap — a per-(exit-IP, transport) limiter (default 8, under the ~12 home-ISP TLS-policing threshold) wired into the connect path as a route preference, falling back to an advisory connect when every candidate is capped (
0df5006fd,dd03d9684). - Block-based strategy chain builder — a visual block editor composes desync chains (split/fake/TTL/OOB/tlsrec) directly in the mode editor instead of editing raw config (
e898d5de8,67e23d364). - Bounded Strategy Tuner — a new screen runs a rate-limited A/B probe sweep over candidate strategies so you can compare arms empirically (
21b5d0be8). - Strategy-pack per-protocol hints — additive, schema-compatible metadata carrying recommended arms and a QUIC-heavy-neighborhood flag for SSH/Mieru/AnyTLS (
d9cb78a8d).
DNS & diagnostics
- Connection-health and block-layer diagnosis — a
ConnectionHealthRepositoryplus aBlockLayerDiagnosis/StealthScore layer feeds the DNS/IPv6 leak detectors, policy resolver, and strategy probes to pinpoint where traffic is blocked (8fbd3d2b4). - Per-network policy inspector — a Remembered Networks screen lists every stored policy by privacy-safe label (transport, validation, DNS mode, scope-hash prefix) with Forget / Clear-all that truly purges the scoped strategy and its companion DNS/blocked-path/edge preferences (
9712e8d39,53a4a83e9). - One-tap redacted diagnostics bundle — export and share a redacted bundle through the standard Android share sheet, with a single causal exposure verdict and a block-layer-to-bypass-class recommendation (
b63283135,263ddde01). - DoT certificate pinning — DNS-over-TLS now validates against pinned certificates rather than disabling verification (
66f871e6c). - Connection-health telemetry — p50/p95/p99 latency distributions for DNS/TCP/TLS, privacy-safe DNS counters, and a stale-data badge for stale live telemetry (
496606057,af6c71f1e).
VPN & tunnels
- Generic AmneziaWG tunnel runtime —
AmneziaWgRuntimeruns a user-configured AmneziaWG over the WARP data plane (byte-identical wire behavior) behind a local SOCKS5 front end (491503bdd,9b18d8e32). - First-class SSH outbound — password/key auth, host-key fingerprint, and a canonical
ssh://share URI (refused when the auth secret is absent) (b87e0a859,5c0aecdc8). - Android 17 system-owned split-tunnel — on API 37+ per-app exclusion delegates to the system UI (persists across reconnects), retaining the in-app editor on older devices (
b2e6329ca). - Reconnecting status during boot/LMK resume — the UI and widget no longer flash "Halted" during the 1–3 s restart window; a Reconnecting status is published only for a genuinely fresh process (
3ed6122af,f8151dc63). - Kill-switch and DNS/IPv6 leak indicators — a new security-posture surface across all 8 locales (
0b80caa6a).
UI
- Streamlined onboarding — a new brand-mark intro illustration, two-zone first screen, a single unambiguous finish action, a keep-running offer after a successful connection test, and a local-bypass DNS default that no longer points at a third-party provider (
4de045eec,52f844d26). - Share a ready-made profile — export a configured relay/proxy profile to QR, link, or printable sheet (
d74c448a2,646cfa77c). - Per-network auto-profile binding — profiles can auto-bind per network (
2b1614ec0). - Import Xray configs — a parser ingests xray-core JSON, single outbounds, and
vless:///trojan:///ss://share links (incl. base64-wrapped), translating each natively-supported outbound into a RIPDPI profile and skipping unsupported ones with a typed reason (388a8c8af,3c771ff9c).
Improvements & performance
- Home and dashboard restyle — the active mode card now stands out with a bold selected border and elevation while keeping its primary action prominent, plus a scroll-edge divider under the top bar, a flattened bottom nav, and a value-forward local-bypass panel (
9250fbee9,958cdc6e6). - Broad localization, accessibility, and design-token pass — dozens of previously hardcoded/concatenated strings and number formats localized across diagnostics, routing, onboarding, and logs; TalkBack semantics, screen-reader graph labels, and locale-observable reads added; scattered dp/Color/stroke literals replaced with RDS tokens (
1e5ecf57f,b33a03f29). - Adaptive tunnel MTU and hot-path slimming — tunnel MTU now adapts to sub-1500 underlying paths with a network-derived metered flag; per-packet debug tracing and a redundant DNS-request allocation were removed from the TUN/DNS hot paths (
930367adc,d3162bd07,c0728df1c). - UDP relay encode reuses a scratch buffer — a reusable 65,559-byte buffer threaded through the associate loop eliminates a per-packet allocation with byte-identical output (
3fdd285de). - SO_REUSEADDR on the proxy listener and removal of a redundant probe-bind in the adapter create path (
d3fe6c1ac).
Notable fixes
Security & privacy
- Credential redaction across transports — AnyTLS password/root cert masked in debug output; TUIC UUID/password, NaiveProxy basic-auth, and the MTProto ws-tunnel seed guaranteed never logged to diagnostics or crash reports (
f3e77f2fd). - Malformed custom DNS trust anchors now error instead of being silently dropped, on both DoT and DoH (
65128129e). - Shadowsocks rejects a missing password rather than silently substituting an empty one (which derived a weakened key for legacy AEAD ciphers) (
83663114d).
Protect invariant & process stability
- Protect outbound proxy/WireGuard sockets before connect — the TCP proxy session connected to a non-loopback SOCKS5 with no
VpnService.protect(), and WARP/AmneziaWG swallowed protect rejections; both now protect-then-connect and fail closed, preventing the packet loop into TUN (3d13a541b,13a0c5438). - MASQUE ECH DNS lookup binds to the protected interface — it had opened an unprotected non-loopback socket the TUN re-captured; it now source-binds and fails closed (
9edaedacc). - Two poisoned-mutex
drop()paths no longer abort the process — the relay-muxLeaseGuardand the exit-IP cap session guard now recover from poison since they are advisory (63437577a,94b3ff83d).
Correctness & crashes
- Leak-free, bounded relay shutdown —
RelayRuntime::stop()cancels and drains in-flight SOCKS5 sessions within a 5 s grace window instead of leaking upstream connections and fds until process exit (b11dc3ba4,6fc53027b). - Adaptive-routing feedback now reaches the policy learner — six results swallowed with
let _ =across UDP/QUIC/TCP retry and TLS post-ClientHello paths now propagate, so blocked-path learning fires correctly (fd2559b7a,e1dabb3a8). - Auto-resume after a kill no longer silently fails — the boot-session flag now uses
commit()(wasapply(), lost on an LMK/Android-17-limiter SIGKILL) (74fcf4586,67bb19271). - Data races that could drop profiles and stick the UI — serialized read-modify-write in the proxy-group repo, atomized status+telemetry updates, and a drop-oldest event flow so a rapid failure loop can't get stuck in Connecting (
f38fa8f16,d27996b03,15b1e8696). - JNI boundary hardening — null-safe nullable array returns stop NPEs in stats/strategy paths after a contained native panic; long-lived runtime threads use teardown-safe scoped attach; 4 orphaned JNI exports removed (
d14c297a2,eec18bb81,211aa907b). - Foreground-service lifecycle — a sticky restart with revoked POST_NOTIFICATIONS no longer crashes with
ForegroundServiceDidNotStartInTimeException, and protect register/unregister is synchronized with a double-registration guard (7670aed0a,e50875718). - Desync offset resolver hardened against panic — rejects out-of-range positions explicitly instead of silently clamping, with extended fuzz coverage (
de529301d). - SOCKS5 RFC-1928 compliance — the relay's SOCKS5 server replies
0xFFand closes when a greeting offers no NO-AUTH, instead of always replying NO-AUTH (57b2825ea). - Diagnostics robustness — a panic in any single connectivity runner is isolated and recorded as a synthetic failed step rather than killing the whole scan; destructive migration fallback is gated behind an opt-in to prevent accidental history wipes (
207f6d91b,54c10d0ee). - UI crash and data-loss fixes — roll back an optimistic route reorder on write failure, release CameraX/QR camera resources on dispose, and resolve Compose recomposition / lazy-key anti-patterns (
751e2748e,7ffc3ef25,3df78dd6b).
Distribution
This is the first RIPDPI release with per-ABI split APKs. Instead of a single fat APK, the GitHub and F-Droid flavors now publish:
arm64-v8a— most modern phones (pick this if your device is from ~2017 or later)armeabi-v7a— older 32-bit ARM devicesx86_64— emulators and x86 tablets/Chromebooksx86— legacy 32-bit x86-universal— all ABIs in one APK; grab this if you're unsure which to pick
Download the APK matching your device's ABI for the smallest install, or the universal APK if you don't know it. The Play build ships as an AAB (Play selects the ABI for you).
Provenance: SHA256SUMS plus CycloneDX SBOMs (rust-bom.json, android-bom.json) are attached to this release, along with build provenance attestation — verify your download against these before installing. Per-ABI builds land at 149–156 MiB; the size gate was recalibrated to 170 MiB after the prior un-validated 140 MiB threshold (no native .so regression) (906c3295a, fa8113238).
Full changelog: v0.1.1...v0.1.2