altera2015 / usbserial

Flutter Android USB Serial plugin
BSD 3-Clause "New" or "Revised" License
121 stars 83 forks source link

fix Android 10 SecurityException #21

Closed kgamecarter closed 4 years ago

kgamecarter commented 4 years ago

fix issues #19

[https://developer.android.com/reference/android/hardware/usb/UsbDevice.html#getSerialNumber()](https://developer.android.com/reference/android/hardware/usb/UsbDevice.html#getSerialNumber())

Throws SecurityException. If the app targets SDK >= android.os.Build.VERSION_CODES.Q and the app does not have permission to read from the device.