# Android 15/16 (API 35/36) & 16 KB Memory Page Config Auditor

> Audit your `build.gradle(.kts)`, `AndroidManifest.xml`, NDK version, and framework settings against Google Play's `targetSdkVersion 35/36` rules, 16 KB ELF native `.so` page alignment, and edge-to-edge WindowInsets.

- **Interactive Tool URL**: https://gootester.com/tools/android-15-16kb-bundle-auditor

## How to Use
1. **Select your app framework and paste your Gradle or wrapper build config**: Choose Native Kotlin/Java, Flutter, Expo / React Native, Capacitor, or Unity/Godot and paste your `build.gradle.kts`, `gradle.properties`, or `app.json` snippet locally.
2. **Verify `compileSdk` and `targetSdk` against current Google Play API 35 / 36 floors**: Confirm your bundle meets Google Play's mandatory minimum `targetSdkVersion` for new apps and app updates so Play Console does not block your Closed Testing upload at ingestion.
3. **Check NDK toolchain, AGP packaging flags, and third-party `.so` 16 KB alignment**: Detect legacy `useLegacyPackaging = true`, outdated NDK versions (< r27/r28), or unaligned JNI libraries (such as older SQLite, Hermes, CameraX, or game engine `.so` binaries) that fail 16 KB page checks.
4. **Copy local `llvm-objdump` / `zipalign` verification commands and fix snippets**: Run the generated one-line terminal checks against your built `.aab` before starting your 14-day closed test so native `SIGSEGV` crashes never poison your Android Vitals.

## Understanding Google Play's 16 KB Memory Page Size Mandate on ARM64 Devices

Historically, Android kernels on 64-bit ARM (`arm64-v8a`) hardware operated exclusively with 4 KB (`4096`-byte) virtual memory pages, and native C/C++ shared libraries (`.so` ELF files) compiled via the Android NDK aligned their `LOAD` segments on 4 KB boundaries. Starting with Android 15 (API level 35) and expanding across flagship Android 16 (API level 36) silicon, OEMs ship high-memory devices configured with 16 KB (`16384`-byte) kernel memory pages to reduce TLB misses and accelerate app cold starts, camera pipelines, and on-device ML inference.
If your Android App Bundle (`.aab`) is pure Kotlin, Java, or WebView/JS with zero native `.so` binaries inside `base/lib/arm64-v8a/`, your app is naturally page-size agnostic. However, modern cross-platform stacks — including Flutter (`libflutter.so`, Impeller), React Native / Expo (`libhermes.so`, `libreactnative.so`, Reanimated, MMKV), Unity (`libunity.so`, `libil2cpp.so`), SQLite wrappers, ML Kit, and PDF/image codecs — embed native ELF shared libraries in almost every build.
When an unaligned 4 KB ELF `.so` binary is mapped via `dlopen()` on a 16 KB page-size kernel or Flagship Android 15/16 test image, the dynamic linker immediately aborts or triggers an instant startup crash — and Google Play Console flags non-compliant bundles during ingestion and Pre-Launch checks. Discovering a 16 KB native library blocker halfway through a 14-day closed test forces emergency dependency upgrades when your focus should be user UX polish.

## Android 15/16 (API 35/36) Edge-to-Edge WindowInsets & Foreground Service Traps

Upgrading `targetSdkVersion` to 35 or 36 to pass Play Console upload validation unlocks two behavioral changes that frequently blindside solo developers and vibe-coded apps during closed testing. First, **mandatory Edge-to-Edge rendering**: once an app targets API 35+, the Android OS draws your Activity window behind both the top status bar and the bottom 3-button or gesture navigation bar by default.
In Capacitor, WebView, React Native, or custom Compose/Flutter screens that do not explicitly apply `WindowInsetsCompat.Type.systemBars()` or `env(safe-area-inset-bottom)` padding, primary 'Continue', 'Save', or 'Checkout' buttons at the bottom of the screen end up trapped directly beneath Android's system navigation bar — rendering your app partially unusable for real human closed testers and Firebase Robo crawlers alike.
Second, **strict Foreground Service (`foregroundServiceType`) enforcement**: any `Service` declared in `AndroidManifest.xml` (including transitive services injected by audio, location, health, or background-upload plugins) must declare a specific, policy-justified `android:foregroundServiceType` along with its corresponding runtime permission, or Android throws a fatal `MissingForegroundServiceTypeException` crash the moment the service starts.

## How to Inspect Your Built `.aab` Locally Before Uploading to Closed Testing

Before burning Day 1 of your closed testing window, run two deterministic checks on your release `.aab`. First, unpack or inspect `base/lib/arm64-v8a/*.so` inside your bundle using the Android NDK's `llvm-objdump -p` utility and confirm every `LOAD` header reports `align 2**14` (or `2**16`), never `2**12`. If a single third-party SDK ships an outdated `2**12` binary, upgrading that Gradle/CocoaPods/npm dependency prior to Closed Testing eliminates an entire class of Play Console warnings.
Second, pair human closed testing with real physical-device ADB verification on modern Android hardware. On GOOtester Standard ($12) and Premium ($20) campaigns, supplemental physical-device ADB QA runs execute cold/warm launch checks, capture `dumpsys meminfo` RAM Proportional Set Size (PSS), measure `dumpsys gfxinfo` frame jank, and scan `logcat` for zero fatal exceptions or ANRs — tracked in a dedicated Automated QA panel strictly separate from your 15-to-25 consented human testers.
Finally, always generate and retain split native debug symbols (`ndk.debugSymbolLevel = "FULL"` in Gradle or symbol zip upload in Unity/Flutter) whenever your bundle includes native `.so` libraries so any stack trace surfaced in Android Vitals or Pre-Launch Reports resolves to exact source lines rather than raw hexadecimal memory offsets.

## FAQs
### How do I know if my Capacitor or Google AI Studio web wrapper has `.so` files?
Unzip a copy of your `.aab` (`unzip -l app-release.aab | grep '\.so$'`). Pure Capacitor core projects often contain zero `.so` files, but adding native plugins like barcode scanners, SQLcipher, or camera ML libraries injects `arm64-v8a` `.so` binaries that must be 16 KB aligned.

### Which Flutter, Expo, and Unity versions support 16 KB memory page alignment?
Recent stable releases of Flutter (3.24+/3.27+ with AGP 8.5.1+ & NDK r27/r28), Expo SDK 52+ (React Native 0.76+/0.77+), and Unity 6 / patched LTS releases include 16 KB page-aligned engine binaries, provided third-party native plugins are also updated.

### Can Android 15 edge-to-edge UI overlap cause a Production Access rejection?
Yes. If bottom navigation or primary action buttons are obscured by system gesture/3-button bars on API 35+ devices, both human testers and Google reviewers treat the build as incomplete UI quality.
