Verify on emulator

From seijikohara/femto-car-launcher · View interactive version

Verify on emulator is an AI agent skill from the GitHub repository seijikohara/femto-car-launcher. Boot (or reuse) the TBox-Mock-Play AVD, install the debug APK, drive the launcher, and capture screenshots to verify UI changes on the head-unit geometry.

How to use this skill

Skill file

Verifying on the TBox-Mock-Play emulator

Visual verification on the head-unit geometry. $ARGUMENTS names the screen or area to drive to and screenshot; with no argument, verify the home dashboard.

Environment

Procedure

  1. Build the debug APK via the CODE0 skill (the verification-procedure SSOT). The APK lands at app/build/outputs/apk/stable/debug/app-stable-debug.apk.
  1. Reuse or boot the emulator. More than one emulator may be running, so resolve serials first: adb devices, then adb -s <serial> emu avd name to identify each instance. If a TBox-Mock-Play is already up, reuse it — installing onto the instance the user is watching is the point; never touch an unrelated instance. If none is running:

```bash

emulator -avd TBox-Mock-Play -no-audio -gpu host

```

Windowed on purpose — the user watches the verification live. In a headless context (no display available) add -no-window -gpu swiftshader_indirect instead of -gpu host. If the AVD does not exist (emulator -list-avds), create it first:

```bash

.claude/skills/verify-on-emulator/create-avd.sh

```

Wait until adb -s <serial> shell getprop sys.boot_completed reports 1 before installing. With multiple devices attached, pass -s <serial> to every adb call below.

  1. Install the APK:

```bash

adb -s <serial> install -r app/build/outputs/apk/stable/debug/app-stable-debug.apk

```

Note: connectedStableDebugAndroidTest uninstalls the app afterward — run :app:installStableDebug (or adb install -r) again before manual screenshots. After a reinstall, am force-stop + restart the app so the running process is the new code.

  1. Pre-grant runtime permissions — the startup permission dialog blocks the dashboard (MainActivity.requestRuntimePermissions() pops a location dialog on first run; uiautomator shows com.google.android.permissioncontroller). Pre-grant to skip it:

```bash

adb shell pm grant io.github.seijikohara.femto android.permission.{ACCESS_FINE_LOCATION,ACCESS_COARSE_LOCATION,READ_CALENDAR,READ_PHONE_STATE,BLUETOOTH_CONNECT}

```

then am force-stop + restart.

  1. Drive the UI: uiautomator dump /sdcard/ui.xml + adb pull, grep content-desc="Settings" for the dock button bounds (the DashboardDock component), then input tap. The settings ModalBottomSheet opens partially expanded — input swipe up to fully expand, then swipe to scroll.
  1. Capture and inspect: Compose row text often does not appear as discrete text= nodes (merged semantics), so confirm with a screenshot — screencap -p + pull + Read the image:

```bash

adb shell screencap -p /sdcard/shot.png && adb pull /sdcard/shot.png

```

Notes and former limitations

Report

Report explicitly what was run and what was observed:

Do not claim the UI "looks right" generically; cite the commands and attach or describe the screenshots.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.