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.
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: