Skip to content

[bug] Android shows a remote-playback code as a TV sign-in that can't be approved #697

Open

Description

@Quick104

What happened

When the Android phone app opens a remote-playback handoff code through a silo://device link, it shows the code as an ordinary TV sign-in. Tapping Sign in TV posts /api/v2/auth/device/approve. The server refuses a remote_playback request there with 409, and the app shows "That TV is already signed in." The card's decline button denies the request, which ends the handoff the other phone started.

The iOS app checks client_purpose and temporary after its lookup and stops with "This code isn't for signing in a TV."

Steps to reproduce

Found by reading the source on main (3627b86). It was not reproduced on a device.

  1. Start a remote-playback request on a Silo server (POST /api/v2/auth/device/start with client_purpose: remote_playback, temporary: true), or send playback from a phone to a TV that isn't signed in.
  2. On an Android phone signed in to that server, open silo://device?url=<server origin>&code=<user code>.
  3. The app shows the TV sign-in card. Tap Sign in TV.

Expected behavior

The app recognizes a code that isn't a TV sign-in (client_purpose other than device_login, or temporary: true) and says so without offering Sign in TV or decline, as the iOS app does.

Silo version / commit

silo-android main 3627b86; silo-server main.

Deployment

Any.

Clients affected

Android phone app (device approval screen).

Relevant logs

No logs available.

Technical notes

  • DevicePairingViewModel.lookup() (shared/src/commonMain/kotlin/org/siloserver/silo/viewmodel/DevicePairingViewModel.kt, around line 357) checks only the lookup's status, never client_purpose or temporary.
  • requestDecision approves through repository.approve, which posts /api/v2/auth/device/approve; pairingError maps the 409 to DevicePairingError.AlreadySignedIn (line 560).
  • The iOS app's equivalent check is in TVApprovalModel.lookUp() in silo-apple (Pairing/Approver/TVApprovalModel.swift).
  • The phone that sends playback approves the handoff itself through approve-handoff (SiloCastController), so the device approval screen should not decide these requests.
  • The web page /activate got the same treatment in fix(web): send remote-playback requests on /activate back to the app silo-server#1868.

AI disclosure

Confirmations

  • Reproduced on a real deployment
  • Searched existing issues

Source: found in review of Silo-Server/silo-server#1868

Activity

  1. added
    bug
    on Oct 26, 2026
  2. added
    impact: usability
    priority: P2
    on Oct 26, 2026
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

    bugimpact: usabilitypriority: P2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions