[`go.build -overlay`](https://pkg.go.dev/cmd/go) is unsupported by gomobile. If it did, it could be used to patch runtime and stdlib at build time using [flixge/go-patch-overlay](https://github.com/felixge/go-patch-overlay) as mentioned in [this blog post](https://nsrip.com/posts/patchruntime.html) via https://github.com/golang/go/issues/69629. Patches: - WireGuard's [monotonic time](https://github.com/WireGuard/wireguard-android/blob/09b75c2bd37f749e2a8c85876394854113c74be7/tunnel/tools/libwg-go/goruntime-boottime-over-monotonic.diff) - Changes to [`go/runtime/write_android_err.go`](https://github.com/golang/go/blob/7251c9e0f00a6d7d37bb441f3e823c160131e9b5/src/runtime/write_err_android.go) instead of link time shenanigans in [`intra/core/overreach.go`](https://github.com/celzero/firestack/blob/3420f37b5495a86978f88c03b967180f86cda651/intra/core/overreach.go) for https://github.com/golang/go/issues/25035