Repository navigation
Rename inputs from the Inputs menu (hold OK), for TVs that can't and CEC names like Playback_1 #4336
sasichalla
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Idea: rename an input from the launcher's Inputs menu: hold OK on the row, type a name.
Some TVs have no rename option in their own settings (this Hisense 65U88QG on Google TV 14 has none under Channels & Inputs), and CEC devices often announce a generic name: an HDMI video converter here shows up as "Playback_1 · HDMI 2". The launcher already shows names from Settings > Inputs (
loadCustomLabel), but that doesn't help when the TV can't set them.How it works:
InputAliases, its own preferences file, so a theme push keeps them) and keyed by the input's own name, not its input id. Android gives a CEC device a new id when it moves to another port or behind a receiver, so a rename by id would be lost; by name it follows the device. A bare port (e.g. "AV") can be renamed the same way.Code: https://github.com/sasichalla/cleanyourtv/tree/feature/rename-inputs (one commit on
main: a 40-lineInputAliases, a long-click and a small dialog inMainActivity's Inputs rows, two strings, adocs/launcher.mdparagraph).Tested on the Hisense 65U88QG (
wutaishan,UKN6.251123.001.049): renamed "Playback_1" to "VHS", the Inputs menu showed it, and switching still worked. Python suite passes,testReleaseUnitTest lintRelease assembleReleasepasses with 0 lint errors, and the release APK is 589,549 B, under the 589,824 B gate, so this could be a regular PR if it fits.Open points: the two strings are English only (
translatable="false"); the long-press is not discoverable without a hint (a line in the dropdown, or the docs paragraph alone?); the name is not used by the Remote buttons idea's input picker (#4333) or by anything outside the launcher.All reactions