Skip to content

Android TV can't be signed in from a nearby phone after its session expires #419

Description

@Quick104

A nearby phone or tablet only offers to set up an Android TV while the TV shows its server-setup screen. When the TV's session expires, or the user switches to a saved server that has no sign-in, the TV shows its sign-in screen instead, and no phone offers to sign it back in. The only ways back are scanning the QR code, which opens the web approval page and needs a separate web sign-in, or typing a password with the remote. Sign Out isn't affected, because it returns to server setup, which advertises.

Why

  • TvServerSetupScreen starts and stops the pairing advertiser (TvServerSetupScreen.kt). TvLoginScreen doesn't advertise.
  • The advertiser always sends st=setup (AndroidTvModule.kt). Its comment explains why: advertising login made the TV invisible to iPhones, whose card only offers setup TVs.
  • An expired session navigates to TvRoute.Login (TvAppNavigation.kt). Sign Out navigates to server setup (lines 733-741).

Expected

A signed-out Android TV on its sign-in screen advertises login and gets the same offer from a signed-in phone or tablet on the same network: sign it in, confirm the code, approve. The phone offers it only when it holds the server the TV is signed out of, and skips the server chooser.

Notes

AI disclosure

  • Harness: T3 Code (Claude Code agent harness)
  • Tool(s): Claude Code, GitHub CLI
  • Model(s): claude-opus-5-5
  • Involvement: AI-drafted at the maintainer's request, from reading the code on main at c38fb93; not reproduced on a device
  • Adversarial review: n/a

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions