# Unity Mobile Games Closed Testing Playbook: IL2CPP ARM64, 16 KB Pages & Play Asset Delivery

> Configure Unity 6 and patched 2022.3 LTS Player Settings for Google Play's 12-tester, 14-day closed testing: IL2CPP symbol zips, 16 KB ELF alignment, ARM64 targets, and frame-pacing QA.

- **Canonical URL**: https://gootester.com/frameworks/unity
- **Config File**: ProjectSettings/ProjectSettings.asset & Assets/Plugins/Android/mainTemplate.gradle
- **Build Command**: `Unity -batchmode -nographics -quit -projectPath . -executeMethod BuildPipelineCli.BuildAndroidReleaseAab`

```csharp
using UnityEditor;
using UnityEditor.Build.Reporting;

public static class BuildPipelineCli {
    public static void BuildAndroidReleaseAab() {
        EditorUserBuildSettings.buildAppBundle = true;
        EditorUserBuildSettings.androidCreateSymbols = AndroidCreateSymbols.Public;
        PlayerSettings.SetScriptingBackend(BuildTargetGroup.Android, ScriptingImplementation.IL2CPP);
        PlayerSettings.Android.targetArchitectures = AndroidArchitecture.ARM64 | AndroidArchitecture.ARMv7;
        PlayerSettings.Android.bundleVersionCode = 3;
        PlayerSettings.Android.targetSdkVersion = (AndroidSdkVersions)35;
        BuildPipeline.BuildPlayer(EditorBuildSettings.scenes, "Builds/game-release.aab", BuildTarget.Android, BuildOptions.None);
    }
}
```

## Critical Play Console Gotchas
1. **Unpatched Unity 2021/2022 engines failing 16 KB memory page checks**: Older Unity Editor versions ship precompiled libunity.so and libil2cpp.so binaries linked with 4 KB ELF page alignment. Upgrade to Unity 6000.0.38f1+ or patched Unity 2022.3.56f1+ LTS releases so Google Play's 16 KB page size validator passes.
2. **Leaving Scripting Backend on Mono or omitting ARM64 architecture**: Unity defaults new projects to the 32-bit Mono backend for fast editor iteration, which Google Play immediately blocks on upload. Switch Scripting Backend to IL2CPP and enable ARM64 inside Player Settings before building your .aab.
3. **Exceeding the 200 MB base module cap without Play Asset Delivery**: Google Play enforces a 200 MB compressed download limit on the base module inside an Android App Bundle. Games with large 3D textures or audio banks must enable Split Application Binary (Play Asset Delivery install-time packs).
4. **Forgetting to upload IL2CPP symbols.zip alongside your game AAB**: Without IL2CPP symbol archives uploaded to Play Console, every native C++ or NullReferenceException crash inside Android Vitals renders as unreadable hexadecimal memory offsets in libil2cpp.so. Set Create Symbols.zip to Public or Debugging on every build.

## Configuring Unity IL2CPP, Symbols & Play Asset Delivery for Closed Testing

Indie game studios publishing on personal Google Play developer accounts face the exact same 12-tester, 14-consecutive-day Closed Testing mandate as utility apps, compounded by stricter binary size, thermal, and Android Vitals stability pressures. In Unity Editor (`Edit -> Project Settings -> Player -> Android`), verify five non-negotiable settings before generating your first `.aab`: set a permanent reverse-DNS `Package Name`, switch `Scripting Backend` from Mono to `IL2CPP`, check `ARM64` under Target Architectures, enable `Build App Bundle (Google Play)` inside Build Settings, and set `Create Symbols.zip` to `Public` or `Debugging`.
Pay close attention to Unity engine patch levels for Android 15 (API 35) and Android 16 (API 36) 16 KB memory page size compliance. Because Unity links engine runtimes (`libunity.so`, `libmain.so`, `libil2cpp.so`) natively, upgrading to Unity 6 (`6000.0.38f1+`) or the latest patched Unity `2022.3 LTS` maintenance drop — along with updating third-party native SDKs such as FMOD, Wwise, Firebase Unity, or LevelPlay/AdMob — ensures all ELF `LOAD` segments align to 16 KB (`0x4000`) boundaries.
If your compressed base module approaches 200 MB, enable `Split Application Binary` (which generates an `install-time` Play Asset Delivery pack up to 1 GB) or migrate episodic level assets to Addressables backed by `fast-follow` / `on-demand` asset packs so closed testers on cellular connections download and launch your game effortlessly.

## Preventing Shader Compilation Jank, Thermal Throttling & ANRs on Real Phones

Mobile games fail Google Play Production Access reviews most often when Android Vitals flags elevated crash (>1.09%) or ANR (>0.47%) rates during closed testing. In Unity, two hidden culprits cause mid-range Android ANRs: synchronous asset deserialization on the main thread during scene transitions (`SceneManager.LoadScene` instead of `LoadSceneAsync`), and unthrottled AdMob / Unity Ads mediation SDK initialization stalling `UnityPlayerActivity` pause/resume lifecycles when testers receive phone calls or switch apps.
Equally important is GPU frame pacing on diverse Vulkan and OpenGL ES 3.2 drivers. Enabling `Optimized Frame Pacing` (Android Swappy library) in Unity Player Settings smooths 30 FPS / 60 FPS frame delivery and prevents thermal throttling spikes on mid-tier Adreno and Mali GPUs. During GOOtester Standard ($12, 15 human testers / 16 days) and Premium ($20, 25 human testers / 24 days) campaigns, separate automated physical-device ARM64 ADB QA runs capture real-hardware `dumpsys meminfo` RAM PSS and `dumpsys gfxinfo` frame-time distributions while keeping automated ADB telemetry strictly separate from your consented human testers.

## Managing Families Policy, Ad SDK Declarations & 14-Day Game Updates

Before submitting your Closed Testing track for Google's initial review, scrutinize Play Console -> App content -> Target audience and content. Casual indie games with bright artwork often get flagged if you select under-13 age brackets (or accidentally appeal to children) while bundling standard AdMob / Unity Ads SDKs that transmit `com.google.android.gms.permission.AD_ID` without Families Self-Certified Ad SDK configurations. Unless your game is explicitly engineered for COPPA/Families compliance, set Target Audience strictly to 13+ or 18+ and align your Advertising ID and Data Safety forms accordingly.
Once your Closed Testing track is live and GOOtester verifies `testers@gootester.com` Google Group access, our service clock begins. Ship two tuned `bundleVersionCode` updates during the 14-to-24-day window (for example adjusting touch hitboxes, tutorial difficulty, or default graphics quality tiers based on tester feedback) to present a compelling release history when Google Play evaluates your Production Access application.
Compress ASTC texture mipmaps (`ASTC 6x6` or `8x8` for mobile backgrounds) and stream background music from Vorbis audio clips rather than decompressing on load, keeping baseline RAM PSS well below low-memory thresholds on 4 GB Android handsets.
