• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps usbManager.getDeviceList() returns empty list after boot

Leodev

Lurker
I'm developing small android app using android studio and java. App have to write to serial port of connected Arduino. There is no issues with connection to device once otg cable plugged, but if I reboot the phone while cable is plugged app unable to establish connection. It turned that usbManager.getDeviceList() returns empty HashMap<String, UsbDevice>. If I re-plug cable app able to communicate.

My device is Xiaomi Redmi Note 11 it is unlocked and rooted. I'm attaching device information I've collected during my research.

This app is not gonna be published and going to run on this particular phone only.
 

Attachments

Last edited:
Back
Top Bottom