An Android TV app that runs in the background, and lets you hold the Mute button on the remote for 2 seconds to cycle through HDMI inputs/sources.
If you're using an Android TV with an external streaming device, such as the Roku Stick, the remote is able to act as a semi-Universal remote and control the power/volume of the TV. However! It is not able to change HDMI inputs. This makes it less convenient to use other HDMI devices, and requires using the original TV remote to change sources.
This workaround gets around the fact that the actual remote doesn't have a Source button, by re-using the buttons that it does have to tell the Android TV-side to change sources, allowing only one remote (in this case the Roku one) control both devices.
Download the APK file, install it by sideloading, and then enable it to capture Input events under Android's Accessibility settings.
Then holding mute should cycle between inputs. If it does not work with your remote or TV, please file an issue with more information.
This app uses the TvInputManager API to change between passthrough inputs programmatically.
- List out the possible passthrough inputs
- Receive key up/down events to start and stop a 2 second timer
- Launch the android.media.tv intent with the next HDMI channel