Skip to content
New issue

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

Fix USB device intents for SDK34+ #2

Merged
merged 2 commits into from
Aug 20, 2024
Merged

Fix USB device intents for SDK34+ #2

merged 2 commits into from
Aug 20, 2024

Conversation

robbi5
Copy link

@robbi5 robbi5 commented Aug 19, 2024

This should fix

Targeting U+ (version 34 and above) disallows creating or retrieving a PendingIntent with FLAG_MUTABLE, an implicit Intent within and without FLAG_NO_CREATE and FLAG_ALLOW_UNSAFE_IMPLICIT_INTENT for security reasons. To retrieve an already existing PendingIntent, use FLAG_NO_CREATE, however, to create a new PendingIntent with an implicit Intent use FLAG_IMMUTABLE.

@robbi5 robbi5 marked this pull request as ready for review August 20, 2024 10:03
@robbi5 robbi5 merged commit ad0ee92 into main Aug 20, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants