Meshtastic-Android/app/src
James Rich 805f9a3cd2 fix(serial): refresh USB device list on Android 12+ attach and resume
Android 12+ delivers ACTION_USB_DEVICE_ATTACHED only to manifest-declared
receivers; the runtime-registered UsbBroadcastReceiver inside UsbRepository
never sees this event. Forward it explicitly from MainActivity so the
serialDevices StateFlow refreshes and the device appears in the Connect →
Serial tab without requiring the user to replug.

Also re-poll in onResume() to handle process-restart or returning from
another app while a USB device was already attached.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-04-20 11:29:13 -05:00
..
fdroid chore: review-cleanup fleet (audit + fix + hardening) (#5158) 2026-04-17 00:02:59 +00:00
fdroidDebug/res feat(build): Add distinct names for debug builds (#3707) 2025-11-15 02:03:32 +00:00
google chore(analytics): disable Datadog Compose action tracking (#5153) 2026-04-15 23:09:21 +00:00
googleDebug/res feat(build): Add distinct names for debug builds (#3707) 2025-11-15 02:03:32 +00:00
main fix(serial): refresh USB device list on Android 12+ attach and resume 2026-04-20 11:29:13 -05:00
test refactor(di): adopt @KoinApplication with startKoin<T>() compiler plugin API (#5152) 2026-04-15 22:52:59 +00:00