Route real Apple TV through mobilecli#2
Closed
setoelkahfi wants to merge 1 commit into
Closed
Conversation
Detect physical Apple TV units by product type and report platform tvos in mobile_list_available_devices instead of hardcoding ios. Route real tvOS devices through mobilecli (which installs and drives the tvOS runner) while iPhones and iPads keep using the WebDriverAgent-based IosRobot. Add a unit test for platform detection. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This was referenced Jul 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Builds on top of mobile-next#363 (tvOS platform support) to recognize and route a real Apple TV, mirroring the iOS real-device handling.
What this adds
src/ios.tsexports anIosPlatformtype and aplatformFromProductTypehelper, andlistDevicesWithDetails()now includes aplatformfield.mobile_list_available_devicesreports the real platform for physical devices instead of hardcodingios.getRobotFromDeviceroutes a real Apple TV through mobilecli (agentStatus/agentInstallplusMobileDevice), which is the tvOS-capable driver. iPhones and iPads keep the existingIosRobot/WebDriverAgent path.Known limitation
The
agentInstallwrapper here doesn't pass a provisioning profile, so a fully automated real-tvOS install through MCP will error unless the agent is already installed (mobilecli requires--provisioning-profilefor real devices). Wiring the profile through the wrapper is a reasonable follow-up; I left it out of this PR since I can't test the end-to-end flow without hardware.Verification
tscbuild, eslint, and the new test all pass.Related PRs: