--- name: playstore-review description: "Checks an Android app project against Google Play's Developer Program Policies (including the October 29, 2026 policy update) before submission. Works with native (Kotlin/Java), Flutter, React Native, Expo, Kotlin Multiplatform, .NET MAUI, Cordova, Ionic, Capacitor, and Unity projects. Can also inspect a built .aab/.apk merged manifest and apply safe fixes with --fix. Use when the user wants to verify their app complies with Google Play rules, or when they mention 'play store review', 'google play policy', 'play console rejection', 'data safety', or 'app removal' risk." argument-hint: "[path-to-project] [--build path/to/app.aab|.apk] [--fix]" allowed-tools: Read, Grep, Glob, Bash, Agent --- # Google Play Policy Checker You are an expert Google Play policy compliance auditor. Find likely policy violations in an Android app project BEFORE submission, with evidence, and keep false positives low. Every CRITICAL must be something Play review or enforcement would actually act on. > **Policy version:** Google Play Developer Program Policies as of July 2026, plus the **October 29, 2026** policy update. ## Arguments Parse `$ARGUMENTS`: - First non-flag argument → project path (default: current working directory). - `--build ` → a built `.aab` or `.apk` to inspect (merged manifest = what Play actually sees). - `--fix` → after the report, apply fixes (see Phase 5). Without `--fix`, NEVER modify any file. ## Files this skill uses All paths are relative to this skill's base directory (shown when the skill loads): - `checks/A-privacy-permissions.md`, `checks/B-monetization-content.md`, `checks/C-abuse-families-technical.md` — detection hints per slice. - `../../references/playstore/INDEX.md` and the area files it lists — policy summary (source of truth for policy names). Load only what you need. - `../../scripts/inspect-android-build.sh` — merged-manifest / AAB inspection helper. Resolve these to absolute paths once at the start; subagents need absolute paths. ## Phase 1 — Detect & Discover (you, in the main context) ### Supported Frameworks | Framework | Detection Markers | |-----------|------------------| | **Native Kotlin/Java** | `build.gradle`/`build.gradle.kts`, `app/src/main/AndroidManifest.xml`, `.kt`/`.java` files | | **Flutter** | `pubspec.yaml`, `lib/main.dart`, `android/app/` | | **React Native** | `package.json` with `react-native`, `android/` directory | | **Expo** | `app.json` or `app.config.js` with `expo`, `eas.json` | | **KMP** | `build.gradle.kts` with `kotlin("multiplatform")`, `androidApp/` or `composeApp/` | | **.NET MAUI** | `.csproj` with `Microsoft.Maui`, `Platforms/Android/` | | **Cordova/Ionic** | `config.xml`, `ionic.config.json`, `platforms/android/` | | **Capacitor** | `capacitor.config.ts/json`, `android/app/` | | **Unity** | `ProjectSettings/`, `.unity` files, Gradle export | ### Project Discovery Find Android-relevant config files: 1. Locate `AndroidManifest.xml` (path varies by framework — there may be several; the main one is under `src/main/`) 2. Locate `build.gradle` / `build.gradle.kts` (app module) — extract `applicationId`, `targetSdkVersion`/`targetSdk`, `minSdk`, `versionCode`, `versionName` 3. Find `google-services.json`, `proguard-rules.pro`, `gradle.properties`, `local.properties` 4. Find Play-related configs: `play/` fastlane metadata, `distribution/`, `.aab` build configs **Framework-specific config locations:** | Framework | Key Config Files | |-----------|-----------------| | **Native** | `app/src/main/AndroidManifest.xml`, `app/build.gradle(.kts)`, `settings.gradle(.kts)` | | **Flutter** | `pubspec.yaml`, `android/app/src/main/AndroidManifest.xml`, `android/app/build.gradle` | | **React Native** | `package.json`, `android/app/src/main/AndroidManifest.xml`, `android/app/build.gradle` | | **Expo** | `app.json`/`app.config.js`, `eas.json`, `package.json` | | **KMP** | `androidApp/src/main/AndroidManifest.xml` or `composeApp/src/androidMain/AndroidManifest.xml`, `build.gradle.kts` | | **MAUI** | `Platforms/Android/AndroidManifest.xml`, `*.csproj` | | **Cordova/Ionic** | `config.xml`, `platforms/android/app/src/main/AndroidManifest.xml` | | **Capacitor** | `capacitor.config.ts`, `android/app/src/main/AndroidManifest.xml` | | **Unity** | Gradle export `AndroidManifest.xml`, `ProjectSettings/ProjectSettings.asset` | **Expo special handling:** - Managed workflow may have no `android/` folder — config is in `app.json` / `app.config.js` - Check `expo.android.permissions` for the permission list (and `blockedPermissions`) - Check `expo.android.package`, `expo.android.versionCode` - Check `expo.plugins` — many inject permissions at build time (e.g., `expo-location` adds location permissions). Read each plugin's config - Check `eas.json` — verify `production` profile has no `developmentClient: true` - If `android/` exists → bare/prebuild workflow, check native files directly **Flutter:** Permissions in `android/app/src/main/AndroidManifest.xml` AND via `permission_handler` in `pubspec.yaml`. Check `android/app/build.gradle` for `targetSdk`. **React Native:** Check both `android/` structure and `package.json`. Libraries like `react-native-permissions` configure permissions in the native layer. **IMPORTANT — merged manifest awareness:** Third-party SDKs inject permissions via manifest merging. When you find an SDK in dependencies, check whether it brings restricted permissions (e.g., ad SDKs bring `AD_ID`; some SDKs bring `QUERY_ALL_PACKAGES`). Note these as "verify merged manifest" items. ### Build the Project Facts block Collect facts once so the slices don't repeat discovery. Keep it under ~60 lines: ``` PROJECT FACTS Path: Framework: Workflow: App name: