felHR85 / UsbSerial

Usb serial controller for Android
MIT License
1.78k stars 581 forks source link

java.lang.IllegalArgumentException: x.y.z: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent. Strongly consider using FLAG_IMMUTABLE, only use FLAG_MUTABLE if some functionality depends on the PendingIntent being mutable, e.g. if it needs to be used with inline replies or bubbles. #367

Open yamin8000 opened 11 months ago

yamin8000 commented 11 months ago
at android.app.PendingIntent.checkFlags(PendingIntent.java:404)
                                                                                                        at android.app.PendingIntent.getBroadcastAsUser(PendingIntent.java:674)
                                                                                                        at android.app.PendingIntent.getBroadcast(PendingIntent.java:661)
                                                                                                        at com.felhr.usbserial.SerialPortBuilder.createUsbPermission(SerialPortBuilder.java:155)
                                                                                                        at com.felhr.usbserial.SerialPortBuilder.getSerialPorts(SerialPortBuilder.java:84)

related #360