Repository navigation
Input picker for Mi TVs on the Android TV remote service - #7
Merged
Merged
Conversation
The Android TV remote service has no input-source key, but it can ask the TV to open links (RemoteAppLinkLaunchRequest), and the MOOR2's Live TV app switches inputs on content://android.media.tv/passthrough links (confirmed with adb, #6) and opens its input menu on the standard com.android.tv.action.VIEW_INPUTS action. On those TVs Input source now opens a panel to test: the input menu via an intent: link (by action, or Xiaomi's activity), HDMI 1-3 directly, and Settings as before. Adds the app-link message, checked against the reference protobuf, and the end-to-end test sends a link to the fake TV. Refs #6 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YS6HGULeQFiqj9SZfZ7Gvv
Testing on the MiTV-MOOR2 (#6) showed HDMI passthrough links switch inputs over the Android TV remote service, while intent: links for the input menu make the service drop the connection. So on those TVs Input source is now a picker: HDMI 1, 2, 3 (switch straight to the input) and Settings (full list of inputs). It closes as soon as one is chosen. Same picker in the mobile apps, with the app-link message and HDMI links unit tested; the macOS end-to-end test sends an HDMI link to the fake TV. Refs #6 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Switch inputs on Mi TVs that only have the Android TV remote service (#6).
That service has no input-source key, and the TV's key layout for it (
virtual-remote.kl) has no entry for one. But the service can ask the TV to open links. The MOOR2's Live TV app switches inputs on standard TV-input passthrough links (content://android.media.tv/passthrough/<input id>).RemoteAppLinkLaunchRequest), checked against the reference protobuf. The macOS end-to-end test sends an HDMI link to the fake TV.intent:link was tried and dropped: the service closes the connection on those.Tested by the reporter on a MiTV-MOOR2 with 1.2.1-alpha.2: HDMI switching works.
Generated by Claude Code