Files
piik/mobile/cloudflared
T
AAA 72d94ae8b3 chore(tunnel): refresh the pinned Cloudflared runtime
Use Cloudflared 2026.11.2 and its verified official asset digests, regenerate notices, and align the Android Go toolchain with upstream's 1.27.4 requirement. Keep explicit auto selection and the Android exhausted-QUIC repair, whose independent role remains reproduced.

All five desktop assets match asset-level digests and embedded build identity. Both Android ABIs pass the helper builder's PIE and 16 KB checks on both lines; the fallback decision control and Windows synthetic Quick Tunnel succeed. Full package checks and a live UDP-blocked fallback remain separate acceptance work.
72d94ae8b3 · 2026-11-26 01:52:39 -05:00
History
..

Android cloudflared adapter

scripts/build-android.mjs builds the official cloudflared source pinned by scripts/app-package-targets.mjs and licenses/upstream.json. Its archive is SHA256 checked. Original extracted source remains unchanged in the ignored build cache; Go overlays add the Piik MIT-licensed Android adapter and apply the small supervisor patch. Neither module graph nor Go toolchain is patched. The build uses the Go version in .go-version; Android CI installs it solely for this independent upstream module, with GOWORK=off.

android_dns.go sends stock Go Resolver DNS messages through Android API 29 android_res_nsend/nresult/cancel. It keeps Android's default network, VPN and Private DNS handling. Go retains DNS parsing, retry and SRV ordering. The NDK result FD has one owner: nresult consumes it, or cancellation closes it, never both. A context wake pipe interrupts waiting without polling or a sampling timer. Closing the Go connection cancels and joins its relay.

edge-fallback.patch makes an exhausted QUIC dial failure enter the existing HTTP2 fallback, including quic-go's separate HandshakeTimeoutError. Address retry limits and explicit protocol selection remain upstream-owned. The focused test is overlaid into the upstream package; it does not ship in the helper. The patch applies only to the Android source build. Desktop packages still ship the official prebuilt cloudflared executable and do not include this correction. Remove the supervisor overlay and its focused test when the pinned official source provides equivalent fallback; the Android resolver adapter keeps its separate platform responsibility.

Both the full Android builder and node scripts/build-android.mjs --tunnel-only compile the focused fallback test to build/android-cloudflared/fallback.test (.exe on Windows) and run it before building the helpers. They do not run the full upstream test suite. The latter entry needs only the existing Go toolchain and ANDROID_NDK_HOME, and also performs the Android PIE/16KB ELF checks.

Sources:

The APK's existing third-party notice includes the pinned cloudflared source and dependency licenses. Generated source overlays, probes and executables remain ignored. No test command or environment switch is added to the shipped CLI.