DevelopmentShipping a native Go binary inside an Android APK: ELF linkers, 16 KB pages, and the memfd trick
Building an Android VPN app that bundles a Go binary exposes you to three traps in quick succession: compiling for Linux instead of Android, Android 16's 16 KB page-alignment requirement, and Play Store delivery no longer extracting native libraries to disk. Here's what each one looks like and how to fix it.
Jul 25, 2026