Skip to content

fix(stage2): walk the Android device the app was installed on - #179

Merged
dadachi merged 1 commit into
mainfrom
fix/stage2-android-device
Oct 29, 2026
Merged

dadachi merged 1 commit into
mainfrom
fix/stage2-android-device

Conversation

@dadachi

@dadachi dadachi commented Oct 29, 2026

Copy link
Copy Markdown
Contributor

Summary

  • With a phone and an emulator attached and NATIVEAPPTEMPLATE_ADB_SERIAL=emulator-5554, the app was installed on the emulator but Stage 2 (mobile-mcp) walked the phone, the first Android device listed, and stopped on another app's screen ("the app's UI is not in English"). Without the variable the two could still disagree: the install prefers an emulator-* serial (selectAdbTarget), Stage 2 took the first Android device.
  • selectDevice now uses, when NATIVEAPPTEMPLATE_MOBILE_ANDROID_DEVICE is not set, NATIVEAPPTEMPLATE_ADB_SERIAL, else an emulator-* device, like the install. README notes it.
  • Found on 2026-10-29 while checking the templates' release against a Pixel 6 left on USB.

Test plan

  • New smoke test with a phone listed before the emulator: the serial case names the phone (so only the fallback can pick it) and the no-variable case expects the emulator. Each half seen red without its change.
  • npm run ci 214/214
  • Real run with only NATIVEAPPTEMPLATE_ADB_SERIAL=emulator-5554 and the Pixel 6 attached: paid VetClinic --visual=2 --tests PASS, Stage 2 walked the emulator (Android 48/48)

🤖 Generated with Claude Code

With a phone and an emulator attached and NATIVEAPPTEMPLATE_ADB_SERIAL
naming the emulator, the app was installed on the emulator but Stage 2
walked the phone (the first Android device mobile-mcp listed) and failed
on another app's screen. Without NATIVEAPPTEMPLATE_MOBILE_ANDROID_DEVICE,
selectDevice now uses NATIVEAPPTEMPLATE_ADB_SERIAL, else prefers an
emulator-* like selectAdbTarget does. Found on 2026-10-29 while checking
the templates' release.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dadachi
dadachi merged commit cdf27b7 into main Oct 29, 2026
1 check passed
@dadachi
dadachi deleted the fix/stage2-android-device branch October 29, 2026 06:08
@dadachi dadachi mentioned this pull request Oct 29, 2026
2 of 3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant