android-emulator
Skill2 starsChanged 53 days agoMITView on GitHub
Start an Android emulator, build the Hotwire Native Android shell (native/android), install it and launch it — the `development` flavor ("<App> Dev") against this checkout's local `bin/dev` server by default, or the `production` flavor against production for a quick look. Use when the user wants to open, run or test the Android app on an emulator, including the file-picker check and the on-device cache probe.
4 other projects use a version of this.
Adopted by
Most recently taken up by
- callstack/agent-devicetheir own version, first seen Nov 27, 2026
- LongJohnSilver1504/claude-skillstheir own version, first seen Nov 8, 2026
- eigenwallet/coretheir own version, first seen Oct 8, 2026
- callstackincubator/agent-devicetheir own version, first seen Oct 8, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- callstackincubator/agent-device★ 5.6ksame name
- callstack/agent-device★ 5.5ksame name
- eigenwallet/core★ 331same name
- LongJohnSilver1504/claude-skills★ 2same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository88 other files it gives its agents.
- acceptance-criteriaSkill
- architect-guideSkill
- architect-reviewSkill
- audit-fixerSkill
- avo-admin-expertSkill
- backend-services-expertSkill
- bug-hunt-allSkill
- bug-hunt-fixSkill
- bug-hunt-orchestratorSkill
- bug-huntSkill
- build-feature-remoteSkill
- build-featureSkill
- codeSkill
- component-testSkill
- controller-expertSkill
- create-qa-documentSkill
- debugSkill
- devops-expertSkill
- execute-qaSkill
- feature-qaSkill
- fix-bug-indexSkill
- fix-honeybadgerSkill
- fix-spec-bugsSkill
- fix-system-testSkill
- frontend-expertSkill
- frontend-reviewSkill
- full-qa-fixSkill
- full-qaSkill
- full-reviewSkill
- green-ciSkill
- group-issuesSkill
- honeybadger-auditSkill
- ideateSkill
- impact-assessmentSkill
- improveSkill
- ios-simulatorSkill
- issue-readySkill
- issues-readySkill
- merge-mainSkill
- model-expertSkill
- model-testSkill
- native-bug-hunt-fixSkill
- native-bug-huntSkill
- next-issuesSkill
- page-speedSkill
- plan-questionsSkill
- planSkill
- plan-system-testsSkill
- plan-workSkill
- policy-testSkill
- prdSkill
- prd-worktreeSkill
- product-questionSkill
- product-question-tldrSkill
- project-newSkill
- project-stepSkill
- qa-branchSkill
- qa-testerSkill
- rcm-auditSkill
- rcm-resolveSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 0 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 41
development: only — the emulator's 127.0.0.1 is the emulator itself.
- Very specific: line 71
after a server-side change, pull to refresh or relaunch.
“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Open the Android app in an emulator
Arguments: $ARGUMENTS
- Flavor —
development(default) orproduction. - AVD — any name from
$ANDROID_HOME/emulator/emulator -list-avds; defaultMedium_Phone_API_36.0. --no-build— skip the build and relaunch whatever is already installed.
| Flavor | Gradle install task | Application ID | Server |
development | installDevelopmentDebug | com.example.app.dev | this checkout's bin/dev (bin/dev-url) |
production | installProductionDebug | com.example.app | https://<app-host> |
There is no staging flavor. Run every command from the repo root of the current checkout. Stop and report at the first failing step — do not work around it. For an unattended shell checklist on top of this, the user can run bin/native-qa.
1. Preflight
native/android/app/build.gradle.ktsmust exist. If not, this checkout has no Android shell — say so and stop.$ANDROID_HOMEmust be set and$ANDROID_HOME/emulator/emulator -list-avdsmust include the AVD. If not, list the AVDs and ask which to use.- development:
BASE_URL=$(bin/dev-url)andPORT=${BASE_URL##*:};curl -s -o /dev/null -w '%{http_code}' "$BASE_URL/up"must print200. If not, tell the user to startbin/devin this checkout and stop — never start it yourself.mkcert -CAROOTmust point at a directory holdingrootCA.pem(the build copies it into the development APK only). - production: warn in one line that the app talks to live production; proceed only if the user asked for production explicitly, and never sign in for them.
2. Start the emulator
Skip the launch if adb devices already lists an emulator-* in device state.
(nohup "$ANDROID_HOME/emulator/emulator" -avd "<avd>" >/dev/null 2>&1 &)
adb wait-for-device
until [ "$(adb shell getprop sys.boot_completed | tr -d '\r')" = 1 ]; do sleep 2; done
until adb shell ping -c1 -W2 <dev-host> >/dev/null 2>&1; do sleep 2; done # DNS up — launching earlier shows "Host Lookup"development only — the emulator's 127.0.0.1 is the emulator itself; forward the dev port to the Mac (no tunnel; re-run after every emulator restart):
adb reverse tcp:$PORT tcp:$PORT3. Build and install (skip the build with --no-build)
(cd native/android && ./gradlew <install task> -q \
-PdevBaseUrl="$BASE_URL") # development only; omit for production
adb shell pm grant <application-id> android.permission.POST_NOTIFICATIONS # optional: skip the Android 13+ promptOn failure, show the error lines and stop. Without a google-services.json (see native/README.md) the app builds and runs, but push registration never gets an FCM token.
4. Launch
adb shell am force-stop <application-id>
adb shell monkey -p <application-id> -c android.intent.category.LAUNCHER 1The first development load takes several seconds (importmap serves every controller unbundled). To drive it (taps, typing, screenshots, JavaScript in the page through the debug beacon), use .claude/skills/native-bug-hunt/scripts/nd.
5. Report
Tell the user, in a few lines:
- which AVD is up, and which flavor is running against which server;
- sign in inside the emulator with the sign-in code or dev's Sign in now (a magic link opened in Chrome lands in Chrome, not the Dev build); for production never sign in for them;
- after a server-side change, pull to refresh or relaunch; rebuild only after Kotlin / Gradle changes (
--no-buildotherwise). A path-configuration change also needs the bundled copy regenerated (native/README.md); - handy follow-ups:
adb shell am force-stop <application-id> # force-quit
adb shell run-as <application-id> grep -rl 'cache-probe-7f3a' . # cache probe — must print nothing (debug builds only)
adb emu kill # shut the emulator downDoes 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.

