mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
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> |
||
|---|---|---|
| .. | ||
| fdroid | ||
| fdroidDebug/res | ||
| googleDebug/res | ||
| main | ||
| test | ||