Skip to content

[Android] KnownFolders.CameraRoll, DocumentsLibrary, and permission check - #2773

Closed
pkar70 wants to merge 3 commits into
unoplatform:masterfrom
pkar70:KnownFold-Camera
Closed

pkar70 wants to merge 3 commits into
unoplatform:masterfrom
pkar70:KnownFold-Camera

Conversation

@pkar70

@pkar70 pkar70 commented Mar 11, 2020 •

Copy link
Copy Markdown
Contributor

GitHub Issue (If applicable): #1187 (partly)

PR Type

What kind of change does this PR introduce?

  • Feature
  • Bugfix

What is the current behavior?

No support for KnownFolders.CameraRoll, DocumentsLibrary.
Existing KnownFolders doesn't check permission.
Bad behaviour on Android 10.

What is the new behavior?

Support for KnownFolders.CameraRoll, DocumentsLibrary.
Checking permission before returning KnownFolder.
Corrections for Android 10 (using workaround, but it is guaranteed to work till OS and targetSDK changes to Android 11+)

PR Checklist

Please check if your PR fulfills the following requirements:

  • Tested code with current supported SDKs
  • Docs have been added/updated which fit documentation template (for bug fixes / features)
  • Unit Tests and/or UI Tests for the changes have been added (for bug fixes / features) (if applicable)
  • Wasm UI Tests are not showing unexpected any differences. Validate PR Screenshots Compare Test Run results.
  • Contains NO breaking changes
  • [] Updated the Release Notes
  • Associated with an issue (GitHub or internal)

Other information

Permission check should, as last resort, display system dialog asking for permission. But this is impossible in current Uno, see also: #2024, #2575, #2544
Part of my app BackupSMS.

Internal Issue (If applicable):

@gitpod-io

gitpod-io Bot commented Mar 11, 2020 •

Copy link
Copy Markdown

@pkar70 pkar70 changed the title KnownFolders.CameraRoll, DocumentsLibrary, and permission check [Android] KnownFolders.CameraRoll, DocumentsLibrary, and permission check Mar 11, 2020
@jeromelaban

Copy link
Copy Markdown
Member

You mentioned in https://github.com/unoplatform/uno-private/issues/1439 that this PR is still relevant. You'll need to remove the ReleaseNotes modification, and use the existing PermissionsHelper to validate the permissions.

@CLAassistant

CLAassistant commented Jun 10, 2020 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@pkar70
pkar70 requested a review from a team August 7, 2020 22:11
@pashmak73 pashmak73 mentioned this pull request Aug 25, 2020
@pkar70

pkar70 commented Aug 26, 2020

Copy link
Copy Markdown
Contributor Author

It cannot use existing PermissionsHelper, because logic is different. As it can use any of two permissions.
This PR could use "my" PermissionsHelper from PR 3025 (broader implementation).

@pkar70
pkar70 force-pushed the KnownFold-Camera branch 2 times, most recently from f913574 to 9cb76a4 Compare October 9, 2020 11:50
@pkar70

pkar70 commented Nov 13, 2020

Copy link
Copy Markdown
Contributor Author

Can I get any response/review of this PR?

@pkar70

pkar70 commented Nov 21, 2020

Copy link
Copy Markdown
Contributor Author

Is any possibility to review/accept/merge this PR?

@pkar70

pkar70 commented May 4, 2021 •

Copy link
Copy Markdown
Contributor Author

I'm closing this PR, year after opening - as it would not work with builds targetting Android 11, and Android 11 is almost "must" for Google Play store.
Although it would work for Android 10 and below, e.g. on Amazon Kindle Fire devices.

@pkar70 pkar70 closed this May 4, 2021
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.

3 participants