/mobile-app-skill:gplay-preflightfrom Mobile App Skill
Scans AAB/APK files offline for Play Store compliance issues: manifest flags, restricted permissions, 64-bit alignment, secrets, billing, privacy SDKs, and target API level. Use before upload or as a CI gate.
Ships in Mobile App Skill. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
gplay preflight inspects a local .aab or .apk and reports findings. It
makes no API calls and needs no credentials, so it works on any machine, in
any CI job, before the artifact has ever touched Play.
Reach for it before gplay validate (which needs auth and hits the API) and
before any upload. It catches the class of problem that Play rejects hours
later, or that fails at install time on a user's device.
.aab or .apk on disk.gplay auth login, no --package, no network.# Scan a bundle
gplay preflight --file app-release.aab
# Also validate the store listing in the same pass
gplay preflight --file app-release.aab --listings-dir ./fastlane/metadata/android
# Machine-readable
gplay preflight --file app-release.aab --output json --pretty
# See what scanners exist
gplay preflight --list-scanners
preflight fully decodes AndroidManifest.xml — binary AXML for APKs, aapt2
protobuf for App Bundles — so findings reflect real, typed attribute values
rather than substring guesses.
This matters when you interpret results: an attribute pointing at a resource
reference (for example android:debuggable="@bool/isDebug") is reported as
not statically determinable, not as false. Do not read a missing finding as
proof of absence in that case.
Aggressive code shrinking can rename or remove classes, so SDK detection misses are not proof an SDK is absent. Matches, however, are high confidence.
Every scanner has an ID. Select with --only or exclude with --skip
(comma-separated).
manifestManifest-level correctness and release-blocking flags.
android:debuggable="true" — error. Ships a debuggable build.android:testOnly="true" — error. Play rejects the upload outright.<intent-filter> and no android:exported on
targetSdk 31+ — error. This is an install failure on Android 12+,
not a warning. Launcher activities are exempt.<provider> with grantUriPermissions — error. Any app can
reach the granted URIs.targetSdk 34+ —
Android 14 throws SecurityException at runtime. A dataSync type needs
FOREGROUND_SERVICE_DATA_SYNC.usesCleartextTraffic="true" — warning, downgraded to info when a
networkSecurityConfig is present.allowBackup, requestLegacyExternalStorage, package/version sanity.permissionsMANAGE_EXTERNAL_STORAGE, ACCESS_BACKGROUND_LOCATION,
QUERY_ALL_PACKAGES, SYSTEM_ALERT_WINDOW, BIND_ACCESSIBILITY_SERVICE,
USE_FULL_SCREEN_INTENT, SCHEDULE_EXACT_ALARM, and others. Each finding
carries the Play policy documentation link.WRITE_EXTERNAL_STORAGE without maxSdkVersion on
targetSdk 30+, READ_EXTERNAL_STORAGE on 33+.native_libsarm64-v8a — error. Play has required 64-bit since 2019.targetSdk 35+, warning below. Android 15 devices with 16 KB pages will not
load misaligned .so files.x86 without x86_64, bare armeabi..debug_* / .symtab sections — wasted download size.extractNativeLibs="true" — larger install footprint.metadataRequires --listings-dir. Skipped otherwise. Expects a Fastlane-style
layout (<dir>/<locale>/title.txt, <dir>/<locale>/images/...).
secretsErrors: private key blocks, AWS access keys, Stripe sk_live_, GitHub tokens,
Slack tokens and webhooks, SendGrid keys, Google OAuth client secrets,
OpenAI/Anthropic keys, service-account JSON, shipped keystores (.jks,
.keystore, .p12, .pfx, .pem, .ppk), and .git/ or .env leakage.
Warnings: Google API keys (AIza…) and JWTs.
Google API keys are a warning, not an error, on purpose. Android apps embed Maps and Firebase keys by design. The fix is restricting the key to your package name and signing certificate in Cloud Console — not removing it from the binary. Do not tell the user to delete it.
Dex bytecode is scanned too, so hardcoded string literals are caught.
billingThird-party payment processors (Stripe, Braintree, PayPal, Adyen, Razorpay…)
present in the build — a warning on its own, downgraded to info when Play
Billing is also present. Also flags com.android.vending.BILLING declared with
no billing implementation, and billing wrappers (RevenueCat, Adapty,
Qonversion) shipped without the Play Billing Library.
privacyInventory of 40+ analytics, attribution, and ads SDKs (info). Reconciles the
AD_ID permission: warns when an ads/tracking SDK is present on targetSdk
33+ but the permission is missing, and notes the reverse case.
policytargetSdkVersion below Play's floor. Override with --min-target-sdk
when Google's annual bump lands before a new gplay release.sizeDownload size budget (--max-size), per-dex budget (--max-dex), dex
fragmentation, and a payload breakdown by bucket with the largest entries.
# Block only on hard blockers
gplay preflight --file app-release.aab --fail-on error
# Stricter: warnings fail too
gplay preflight --file app-release.aab --fail-on warning
# Narrow the gate to the scanners you care about
gplay preflight --file app-release.aab \
--only manifest,permissions,native_libs,secrets \
--fail-on warning
# Faster: skip the secrets scan on very large builds
gplay preflight --file app-release.aab --skip-secrets
Exit codes:
| Code | Meaning |
|---|---|
| 0 | No findings at or above --fail-on |
| 1 | Findings at or above --fail-on |
GitHub Actions:
- name: Offline preflight
run: |
gplay preflight \
--file app/build/outputs/bundle/release/app-release.aab \
--listings-dir fastlane/metadata/android \
--fail-on error
--output json emits the full report: format, package, version code and name,
min/target SDK, per-scanner run status, and every finding with its check,
severity, message, entry, hint, and (where one applies) a ref policy
link.
# Just the errors
gplay preflight --file app.aab --output json | jq '[.findings[] | select(.severity=="error")]'
# Which scanners were skipped and why
gplay preflight --file app.aab --output json | jq '.scanners[] | select(.skipped)'
| Tool | Needs auth | Scope |
|---|---|---|
gplay preflight | No | The artifact itself, offline. Manifest, libs, secrets, listing files |
gplay validate | Yes | Release readiness: local checks plus live track and listing state |
gplay checks analyze | Yes | Google Checks privacy/policy analysis, server-side and async |
gplay release --dry-run | Yes | Full pipeline against a real edit, discarded before commit |
Run them in that order. preflight is the cheapest and catches the most.
gplay preflight --file <artifact> before any upload or release
command, and report findings before proceeding.--listings-dir whenever a metadata directory exists — otherwise the
metadata scanner is skipped and listing problems go unreported.error findings as blocking. Do not upload past them without the user
explicitly saying to.hint and ref fields, not just the message. The hint says what
to actually change.gplay preflight --help before constructing a command.--only and --skip take comma-separated scanner IDs; get the current list
from gplay preflight --list-scanners.preflight reads the archive once and streams large entries in bounded
chunks, so memory stays flat on big bundles.check names are preserved across versions
for JSON consumers.policy scanner's target API floor is a constant that Google raises each
August. If it looks stale, pass --min-target-sdk.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub deonmenezes/mobile-app-skill --plugin mobile-app-skill51 skills in this plugin
/app-store-changelogCreate user-facing App Store release notes by collecting and summarizing all user-impacting changes since the last git tag (or a specified ref). Use when asked to generate a comprehensive release changelog, App Store "What's New" text, or release notes based on git history or tags./app-store-releaseShip an iOS app update or a first release to the App Store end to end, the way it is actually done across many real releases. Bumps the version, builds and signs on a Mac over SSH (or on a GitHub-hosted Mac when yours is asleep), uploads, waits for processing, submits for App Review, watches the review, handles rejections and hotfixes, and checks the app is really on sale afterwards. Includes its own scripts for Windows, Linux and macOS (what has and has not been exercised is listed in the skill), and a one-time setup interview so later releases need no questions. Use when the user says "ship it", "release an update", "push a new version", "submit to the App Store", "upload to TestFlight", "resubmit", "replace the build in review", "my app got rejected", "hotfix", "why is my approved app not on the store", or "set up release automation"./asc-app-create-uiCreate a new App Store Connect app record via browser automation. Use when there is no public API for app creation and you need an agent to drive the New App form.Other plugins' skills for the same job