Skip to content

Show unauthorized/offline adb devices instead of hiding them - #62

Merged
laomou merged 1 commit into
mainfrom
fix/show-unauthorized-devices
Aug 6, 2026
Merged

Show unauthorized/offline adb devices instead of hiding them#62
laomou merged 1 commit into
mainfrom
fix/show-unauthorized-devices

Conversation

@laomou

@laomou laomou commented Aug 6, 2026

Copy link
Copy Markdown
Owner

Summary

list_devices dropped unauthorized / no permissions entries, so a freshly-plugged-in phone — which is unauthorized until you tap "Allow USB debugging" on the device — showed up as "0 devices", looking like the app or cable was broken.

Now every reachable device is listed:

  • a ready device is just its serial (emulator-5554)
  • anything else is labeled: SERIAL (unauthorized), SERIAL (offline), SERIAL (no permissions), …

adb -s uses the bare serial (device_serial strips the label). Combined with the reap fix (#59), selecting a not-ready device and hitting Run now also surfaces adb's own reason in the status bar.

Test plan

  • parse_device_lines_labels_non_ready_states — ready device bare, others labeled, none dropped
  • device_serial_strips_state_label
  • All tests pass, clippy clean

list_devices dropped "unauthorized" / "no permissions" entries, so a
freshly-plugged-in phone (unauthorized until you tap "allow USB debugging"
on the device) showed up as "0 devices" — looking like the app or cable was
broken. Now every reachable device is listed; a ready one is just its serial,
anything else is labeled "SERIAL (unauthorized)" / "(offline)" so the user
sees the device and why it may not work yet. `-s` uses the bare serial
(device_serial strips the label). Combined with the reap fix, selecting a
not-ready device and running now also surfaces adb's own reason.
@laomou
laomou merged commit 2fa203f into main Aug 6, 2026
7 of 9 checks passed
@laomou
laomou deleted the fix/show-unauthorized-devices branch August 6, 2026 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant