play-store-app-install
Skill1 starsChanged 3 months agoMITView on GitHub
Installs an Android app onto an emulator or device from a Google Play link, market:// URI, package name, or a local APK, then verifies and launches it. Use when the user shares a Play Store URL or asks to install, sideload, provision or set up an app on an emulator for testing, to put a base.apk and its split config APKs on the device, or when they hit an INSTALL_FAILED error. Not for driving the UI or reading screens.
In this repository15 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- add-skillSkill
- publish-repoSkill
- android-apk-analysisSkill
- android-app-profilingSkill
- android-app-reviewSkill
- android-device-matrixSkill
- android-intent-probeSkill
- android-network-traceSkill
- android-package-diagnosticsSkill
- android-ui-driverSkill
- android-ux-auditSkill
- android-walkthrough-videoSkill
- play-store-listingSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 42
Run everything as python3 "${CLAUDE_SKILL_DIR}/scripts/playapp.py" <cmd>.
- Distinctive: line 56
Preflight: Never skip this; it is where the two blocking conditions surface.
- Distinctive: line 77
Check current state: before installing anything:
- Very specific: line 119
After install: version name + code and install source, from status.
- Very specific: line 137
google_apis≠google_apis_playstore: Only the latter ships the Store app.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
play-store-app-install
Gets a named Android app onto a device and running, from whatever the user has:
a Play Store link, a bare package name, or APK files they already hold.
scripts/playapp.py (standard library only) does the deterministic parts —
parsing, preflight, state checks, sideloading, verification, launching.
The one step it cannot do alone is tapping Play's Install button, which is UI
work; use android-ui-driver for that, bracketed by open-listing and
wait-installed.
When NOT to use
- Tapping around inside an app that is already installed →
android-ui-driver. - Permissions, version, crash logs of an installed app →
android-package-diagnostics. - "Review this app end to end" →
android-app-review(it calls this skill first). - Publishing your app to Play,
bundletool, internal test tracks → developer workflows, out of scope here.
The one thing to know first
A Play link alone does not guarantee an install. Play can refuse for country, account entitlement, age rating, payment, ABI, API level, staged rollout, or an emulator exclusion, and integrity-gated apps (banking, DRM, anti-cheat) commonly refuse emulators outright. Treat installation as a state machine with a real "cannot, and here is why" outcome — not a step that always succeeds.
Never download an APK for the user from a Play scraper or a mirror site. Unofficial Play clients breach Play's terms and risk the account; mirrors have no provenance. Either install through Play, or use an APK the user already lawfully has.
Workflow
Run everything as python3 "${CLAUDE_SKILL_DIR}/scripts/playapp.py" <cmd>.
Resolve the link. The package name is already in the URL's
id=parameter — no web search needed.playapp.py resolve "https://play.google.com/store/apps/details?id=com.spotify.music&hl=en" # -> com.spotify.musicHandles
play.google.com/...?id=,market://details?id=,.../details/App_Name?id=, and a bare package name. Shortenedplay.app.goo.gllinks cannot be resolved offline — ask for the full URL.Preflight. Never skip this; it is where the two blocking conditions surface.
playapp.py preflight # add --fix to switch off UI animationsPrints one machine-readable line per component so you can act on a single grep, then a verdict:
STATUS device: OK emulator-5554 STATUS play_store: OK com.android.vending STATUS play_account: MISSING no Google account — a human must sign in ... STATUS animations: WARN on (window=1.0, ...) — re-run with --fix RESULT: failOK/WARN/MISSING/FAIL, andRESULT: ok|fail.--fixswitches off the three animation scales — the only blocker here that is safely scriptable; the Play image choice and the Google sign-in are not.Check current state before installing anything:
playapp.py status com.spotify.music # exit 1 = not installedUses
pm path, notpm list packages— the latter substring-matches and will happily reportcom.foo.barwhen you asked aboutcom.foo.Install, by whichever route applies:
a. From Play (needs a Play image and a signed-in account):
playapp.py open-listing com.spotify.music # opens market://details on device # then, with android-ui-driver: # uia.py snap # find the button # uia.py tap --text "Install" # may read Install/Update/Open/Buy playapp.py wait-installed com.spotify.music --timeout 300b. From an APK the user has:
playapp.py install-apk ./app.apk playapp.py install-apk ./base.apk ./split_config.arm64_v8a.apk ./split_config.en.apkOne file uses
adb install, several useinstall-multiple. Both pass-r(replace) and-g(grant runtime permissions).Launch and confirm it survived launch:
playapp.py launch com.spotify.musicResolves the real launcher activity, starts it, then checks the package is actually in the foreground. If it is not, the app crashed or bounced — exit 1, and
android-package-diagnostics crasheswill say why.
Output spec
- The package name, stated once and reused (never re-derived by guessing).
- A preflight verdict naming any blocker in the user's terms.
- After install: version name + code and install source, from
status. - On failure: which state was reached and the specific reason, not a retry loop.
Gotchas
- A fresh Play AVD has no Google account. Play then opens
...unauthenticated.activity.UnauthenticatedMainActivityand nothing can be installed. A human must sign in once, by hand. Do not automate Google sign-in — 2FA and CAPTCHA aside, it breaches Play's terms.preflightandopen-listingboth detect and report this state. -gskews a privacy review.install-apkpre-grants runtime permissions so the app runs without prompts. If the point is auditing what the app asks for, install without-gand let the prompts happen — otherwiseandroid-package-diagnosticswill show everything already granted.- Google Play images are release-signed, so
adb rootfails ("adbd cannot run as root in production builds") and app-private storage stays unreadable. That is the price of having the Play Store; an AOSP image is rootable but has no Play. google_apis≠google_apis_playstore. Only the latter ships the Store app.preflightchecks this explicitly.- Apple Silicon needs
arm64-v8asystem images. An x86-only APK then fails withINSTALL_FAILED_NO_MATCHING_ABIS.install-apkexplains eachINSTALL_FAILED_*code it sees. - Split APKs: installing only
base.apkgivesINSTALL_FAILED_MISSING_SPLIT. Pass every split in oneinstall-apkcall. statuson a preinstalled app shows installer(none)— a genuine provenance signal, not a bug. Play-installed apps reportcom.android.vending.
Files
scripts/playapp.py— resolve, preflight, status, open-listing, install-apk, wait-installed, launch, uninstall.--helpper subcommand.references/emulator-setup.md— creating and booting a Play-enabled AVD from scratch, image choice, and the one-time Play sign-in.../../docs/authorized-use.md— what these skills may and may not be used for.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

