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
Storage access issue resolved for all android versions (Including Android 10 and 11 +) #1007
Conversation
area:build.gradle -> Gradle version updated area:gradle.properties ->replaced android.enableR8=true to android.enabledD8=true area:gradle\wrapper\gradle-wrapper.properties ->Updated gradle version
->Changed the UI design of navigation drawer ->Changed Navigation Icon
…m Support library to AndroidX.
…ges-to-PDF into master@codegsaini
The storage permission was removed by mistake in commit a5b916a and now it is implemented again.
@codegsaini is the issue resolved? |
Ravi, before everything, I was resolving some issues with this PR raised by Swati (above commented). As I have resolved these issues which she raised, Now I am already working on the issue you mentioned. Please be patient, I have to review whole project to regain thinking of it, because I was completely off from this for two and half months. It may take a bit to enter into mainstream. Hope you understood. :) I'm also curious to resolve your mentioned issue as soon as possible. |
@codegsaini There's no hurry bro. take your time, 👍 |
After trying several times to detect the exact cause (exact line of code) of issue found in (Create Pdf, Add Password, Merge Pdf, Add text, etc) under Android 11, I came to the conclusion that for all of these issues, there is a single code causing the problem and which is - FileOutputStream("path_of_selected_file")This method throwing FileNotFoundException with the message "open failed: EPERM (Operation not permitted)" or "open failed: EACCES (Permission denied)" in Android 11. This exception means that the app don't have permission of the directory chosen through I'm trying to find the reason for this contrary behaviour related to permission of directory selected by I shared this information so that you can also do some research. By the way, I'm still working to find the cause of this behaviour and how to resolve it. |
Resolved the issue of |
Initial problemsProblem 1 - Unable to read file selected from anywhere to perform any action ( Merge with other file, etc.) Problem 2 fixed
Problem 1 not fixed
Still working to figure this out... |
7eb8e99
to
bb0f976
Compare
- Using MANAGE_EXTRNAL_STORAGE permission app can access storage as it was allowed before scoped storage policy - App fall in the category of Document management app, that's why android team will be able to approve this special permission (after providing full explanation of its need)
…ges-to-PDF into master@codegsaini
File changed - PermissionsUtils.java and strings.xml
File changed - MainActivity.java and strings.xml
@Swati4star As per this guidline, at the time of updating app in google play console you will need to provide proper reason why Storage Access Framework is not sufficient for your app, because app is asking special permission (MANAGE_EXTERNAL_STORAGE). As per my concern the reason you should provide is -----------YOU CAN COPY PASTE BELOW DESCRIPTION--------------- • Document Management App (Introduction) • Document Conversion (Need broad access of shared storage) • Preserve History of Converted Document (Need broad access of shared storage) |
@Swati4star This PR is complete, Please consider reviewing it. |
@codegsaini Hello, |
@Ravipatel401 Yes mentioned issues are resolved. You can test to confirm. |
@Ravipatel401 Is your issue #1003 solved? Please confirm! |
I haven't tested yet, but soon I will let you know.
…On Mon, Nov 1, 2021 at 9:31 PM Gaurav Saini ***@***.***> wrote:
@Ravipatel401 <https://github.com/Ravipatel401> Is your issue #1003
<#1003> solved? Please
confirm!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1007 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA2RM3N7NNZCDJJVB5YYWHTUJ22UVANCNFSM45GD4JLQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
@Swati4star Once this PR is clear. I would like to work further on this Repo. Please consider reviewing this PR. |
@Ravipatel401 Your review is important as well. Try regenerating issue #1003 . If it is solved then consider submitting your review. |
@codegsaini Sorry for the delay. I was occupied with some work here. |
@Swati4star Not a problem :) Good to hear that you have finished that work. |
Since this app can be considered as Document Management app . It comes under the permitted category to ask new special MANAGE_EXTERNAL_STORAGE permission.
What this special permission do?
requestLegacyExternalStorage
must be true.Fixes
Tested on