Skip to content

Fix PendingIntent for Android 12#1

Closed
penguin359 wants to merge 0 commit into
bxlentpartyon:digirig-latestfrom
penguin359:digirig-latest
Closed

Fix PendingIntent for Android 12#1
penguin359 wants to merge 0 commit into
bxlentpartyon:digirig-latestfrom
penguin359:digirig-latest

Conversation

@penguin359

Copy link
Copy Markdown

Starting with API level 31, a flag for mutable or immutable intent is now required or an exception will be generated crashing the app. This fixes a crash seen in PR ge0rg#382

@penguin359

Copy link
Copy Markdown
Author

I did try testing it in the emulator with USB passthrough to verify it doesn't break on older Android releases, but it seems that the Android images provided with the SDK don't include support for access USB devices that are attached. The emulator reported that the AIOC device was successfully passed in and it disappeared from my host, but APRSdroid kept reporting that no USB devices were found. I was able to run it under API level 19, but I wasn't able to trigger the code path where it actually attaches inside the emulator.

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.

1 participant