DroidNinja / Android-FilePicker

Photopicker and document picker for android
https://arunsharma.me/blog/integrate-android-file-picker-photopicker-document-picker-android/
2.7k stars 557 forks source link

Document list is not showing in android version 11 #329

Open govindowlok0 opened 3 years ago

govindowlok0 commented 3 years ago

Document list is not showing in android version 11, pls help me

Lei6 commented 3 years ago

Declare the MANAGE_EXTERNAL_STORAGE permission in the manifest.

Enable MANAGE_EXTERNAL_STORAGE for testing To explore how the permission affects your app, you can enable the permission for testing purposes. To do so, run the following command on the machine that's connected to your test device:MANAGE_EXTERNAL_STORAGE adb shell appops set --uid PACKAGE_NAME MANAGE_EXTERNAL_STORAGE allow

I hope this problem can be solved

govindowlok0 commented 3 years ago

Ok

On Mon, Jul 12, 2021, 12:21 PM Lei6 @.***> wrote:

Declare the MANAGE_EXTERNAL_STORAGE permission in the manifest.

Enable MANAGE_EXTERNAL_STORAGE for testing To explore how the permission affects your app, you can enable the permission for testing purposes. To do so, run the following command on the machine that's connected to your test device:MANAGE_EXTERNAL_STORAGE adb shell appops set --uid PACKAGE_NAME MANAGE_EXTERNAL_STORAGE allow

I hope this problem can be solved

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/DroidNinja/Android-FilePicker/issues/329#issuecomment-878019065, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKZREYVMKPMH2QRRZLXV6ODTXKGILANCNFSM47X2H5FQ .

Aastha-dev commented 3 years ago

Hello,

If we enable this permission (PACKAGE_NAME MANAGE_EXTERNAL_STORAGE) then app gets rejected on play store so is there any solution for this?

Thanks!

Lei6 commented 3 years ago

It is recommended to check the policy statement of Google play: https://support.google.com/googleplay/android-developer/answer/10467955?visit_id=637625361727361015-3726001061&rd=1&hl=en

Google Play restricts the use of high risk or sensitive permissions,If your app meets the policy requirements for acceptable use or is eligible for an exception, you will be required to declare this and any other high risk permissions using the Declaration Form in Play Console.For now, if you think All files access is needed for your app, it is recommended that you don’t update your target SDK level to Android 11 (API level 30) at this time

Hope I can help you

devyugtia commented 3 years ago

Still I m facing same issue, Documents are not showing. Can anybody have proper solution for this ???