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