We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
in UsbService.java
UsbService.java
replace with
private void requestUserPermission() { Log.d(TAG, String.format("requestUserPermission(%X:%X)", device.getVendorId(), device.getProductId() ) ); PendingIntent mPendingIntent = PendingIntent.getBroadcast(this, 0, new Intent(ACTION_USB_PERMISSION), PendingIntent.FLAG_MUTABLE); usbManager.requestPermission(device, mPendingIntent); }
The text was updated successfully, but these errors were encountered:
int flags = Build.VERSION.SDK_INT >= Build.VERSION_CODES.S ? PendingIntent.FLAG_IMMUTABLE : 0; PendingIntent mPendingIntent = PendingIntent.getBroadcast(context, 0 , new Intent(Definitions.ACTION_USB_PERMISSION), flags);
Sorry, something went wrong.
No branches or pull requests
in
UsbService.java
replace with
The text was updated successfully, but these errors were encountered: