Skip to content

Commit

Permalink
Fix for USB forwarding for API 31 to 33.
Browse files Browse the repository at this point in the history
  • Loading branch information
iiordanov committed Dec 27, 2024
1 parent b029e32 commit 19d4311
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ class UsbDeviceManager(val context: Context, val usbEnabled: Boolean) {
if (d != null) {
val flags = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.UPSIDE_DOWN_CAKE) {
PendingIntent.FLAG_MUTABLE or PendingIntent.FLAG_ALLOW_UNSAFE_IMPLICIT_INTENT
} else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
PendingIntent.FLAG_MUTABLE
} else {
0
};
Expand Down

0 comments on commit 19d4311

Please sign in to comment.