Skip to content

Android 13 permission related fixes #5299

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

Merged
merged 2 commits into from
Sep 22, 2023

Conversation

srishti-R
Copy link
Contributor

Description (required)

Fixes #5297

What changes did you make and why?
Updated manifest permissions and runtime storage permissions

Tests performed (required)

Tested {build variant, e.g. ProdDebug} on {name of device or emulator} with API level {API level}.
Tested this branch on API 33(android13)

Screenshots (for UI changes only)

Need help? See https://support.google.com/android/answer/9075928


Note: Please ensure that you have read CONTRIBUTING.md if this is your first pull request.

Copy link
Member

@nicolas-raoul nicolas-raoul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot, it works great in my manual tests! :-)
Unit tests pass too.



public class PermissionUtils {

public static String[] PERMISSIONS_STORAGE = isSDKVersionScopedStorageCompatible() ?
isSDKVersionTiramisu() ? new String[]{Manifest.permission.READ_MEDIA_AUDIO,
Copy link
Member

@nicolas-raoul nicolas-raoul Sep 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed the AUDIO and VIDEO lines here and in the manifest, it works just as well, with all 3 upload methods. :-)
Would you mind removing these from the pull request? Or I can do it after merging this pull request, if you don't have time.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done, please pull the latest changes in this PR

Copy link
Member

@nicolas-raoul nicolas-raoul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reinstalled with new changes, it works great.
Thanks Srishti for this brilliant and very fast pull request, just a day after the high priority bug was first reported!

@Binnette
Copy link

Hi @srishti-R, thank for this fix. I tested latest version from main branch and now I can finally upload pictures from the app with my Android 13 phone. ❤

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.

Can't upload pictures after targetSdkVersion bumped to 33
3 participants