AIMP Forum
AIMP for Android => Ошибки и замечания / Bugs => Обработано / Processed => Topic started by: jaegerschnitzel on June 17, 2021, 16:42:32
-
I'm not sure if this error occured with beta 1 or beta 2 but unfortunately it's not possible for me to add new files to my playlist.
When I try to add folder I have to choose betwen External Provider and Windows shared folder. When I choose the first option this error occurs.
I use AOSP Android 11 with Magisk 23.0. Let me know how I can help you fix the issue.
-
These are the limitations of the system itself and the developers are forced to follow it. Users need to go deep into the settings and grant access.
https://developer.android.com/about/versions/11/privacy/storage#:~:text=On%20the%20Settings%20%3E%20Privacy%20%3E%20Permission,files%22%20is%20read%2Donly.
On the Settings > Privacy > Permission manager > Files and media page, each app that has the permission is listed under Allowed for all files. If your app targets Android 11, keep in mind that this access to "all files" is read-only. To read and write to all files in shared storage using this app, you need to have the all files access permission.
Let's see if the AIMP developer can make this task easier.
-
These are the limitations of the system itself and the developers are forced to follow it. Users need to go deep into the settings and grant access.
The problem is that access is granted in my case...
-
Open window about AIMP, enable log. Try add a files. Send log to the forum topic.
-
main 17/06/2021 10:29:47.964 D/App: v3.20 Beta 2, build 1131 (04.06.2021)
main 17/06/2021 10:29:47.965 D/App: Xiaomi(MI 9 SE, Android v11)
main 17/06/2021 10:29:56.212 D/App: applyLocale(de_DE)
main 17/06/2021 10:29:56.250 D/Browser: goToPath()
AIMP::FileListActivity 17/06/2021 10:29:56.257 D/Browser: rescan()
main 17/06/2021 10:29:57.425 E/PermissionsExpert: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.OPEN_DOCUMENT_TREE flg=0x40 (has extras) }
android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:2067)
android.app.Instrumentation.execStartActivity(Instrumentation.java:1727)
android.app.Activity.startActivityForResult(Activity.java:5320)
android.app.Activity.startActivityForResult(Activity.java:5278)
com.aimp.library.utils.PermissionsExpert.startActivityForResult(PermissionsExpert.java:176)
com.aimp.player.AppActivity.startActivityForResult(AppActivity.java:242)
com.aimp.player.views.FileList.FileListDialogs.lambda$createDocumentStorageCreator$13(FileListDialogs.java:198)
com.aimp.player.views.FileList.-$$Lambda$FileListDialogs$nYDJ25Ls3521T9AhO1cMHn9Vffc.execute(Unknown Source:0)
com.aimp.player.views.FileList.FileListDialogs.showStorageCreatorDialog(FileListDialogs.java:114)
com.aimp.player.views.FileList.FileListDialogs.showAddScopedStorageDialog(FileListDialogs.java:75)
com.aimp.player.views.FileList.Mode.ModeBasic.lambda$updateBannerText$13(ModeBasic.java:575)
com.aimp.player.views.FileList.Mode.ModeBasic.lambda$updateBannerText$13$ModeBasic(Unknown Source:0)
com.aimp.player.views.FileList.Mode.-$$Lambda$ModeBasic$SMzZ1r7W-5qjknmWzj0GpplLaQc.run(Unknown Source:2)
com.aimp.player.views.FileList.Mode.ListAdapter.lambda$new$0(ListAdapter.java:304)
com.aimp.player.views.FileList.Mode.ListAdapter.lambda$new$0$ListAdapter(Unknown Source:0)
com.aimp.player.views.FileList.Mode.-$$Lambda$ListAdapter$erm3jkj9Sm3NJDDJ6YZELZPUdY8.onClick(Unknown Source:2)
android.view.View.performClick(View.java:7448)
android.view.View.performClickInternal(View.java:7425)
android.view.View.access$3600(View.java:810)
android.view.View$PerformClick.run(View.java:28306)
android.os.Handler.handleCallback(Handler.java:938)
android.os.Handler.dispatchMessage(Handler.java:99)
android.os.Looper.loop(Looper.java:223)
android.app.ActivityThread.main(ActivityThread.java:7661)
java.lang.reflect.Method.invoke(Native Method)
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
--------------------------------------------------------------------------
main 17/06/2021 10:30:00.792 E/PermissionsExpert: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.OPEN_DOCUMENT_TREE flg=0x40 (has extras) }
android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:2067)
android.app.Instrumentation.execStartActivity(Instrumentation.java:1727)
android.app.Activity.startActivityForResult(Activity.java:5320)
android.app.Activity.startActivityForResult(Activity.java:5278)
com.aimp.library.utils.PermissionsExpert.startActivityForResult(PermissionsExpert.java:176)
com.aimp.player.AppActivity.startActivityForResult(AppActivity.java:242)
com.aimp.player.views.FileList.FileListDialogs.lambda$createDocumentStorageCreator$13(FileListDialogs.java:198)
com.aimp.player.views.FileList.-$$Lambda$FileListDialogs$nYDJ25Ls3521T9AhO1cMHn9Vffc.execute(Unknown Source:0)
com.aimp.player.views.FileList.FileListDialogs.showStorageCreatorDialog(FileListDialogs.java:114)
com.aimp.player.views.FileList.FileListDialogs.showAddScopedStorageDialog(FileListDialogs.java:75)
com.aimp.player.views.FileList.FileListDialogs.lambda$showAddStorageDialog$0(FileListDialogs.java:81)
com.aimp.player.views.FileList.-$$Lambda$FileListDialogs$_d2a3vKs56z0M95-LLYBGB5MUt8.run(Unknown Source:2)
com.aimp.library.utils.Safe.call(Safe.java:38)
com.aimp.ui.menu.MenuBuilder.runAction(MenuBuilder.java:153)
com.aimp.ui.dialogs.BottomMessageDialog$Builder.lambda$setSingleChoiceItems$0(BottomMessageDialog.java:215)
com.aimp.ui.dialogs.-$$Lambda$BottomMessageDialog$Builder$6dRJkcqlXwDeKaYQxkOCLdvC9mk.onClick(Unknown Source:2)
com.aimp.ui.dialogs.BottomMessageDialog$BottomMessageDialogListView.lambda$bind$0(BottomMessageDialog.java:347)
com.aimp.ui.dialogs.BottomMessageDialog$BottomMessageDialogListView.lambda$bind$0$BottomMessageDialog$BottomMessageDialogListView(Unknown Source:0)
com.aimp.ui.dialogs.-$$Lambda$BottomMessageDialog$BottomMessageDialogListView$63A86cJpCe6X8LdApKIIwJ_t3lA.onItemClick(Unknown Source:8)
android.widget.AdapterView.performItemClick(AdapterView.java:330)
android.widget.AbsListView.performItemClick(AbsListView.java:1187)
android.widget.AbsListView$PerformClick.run(AbsListView.java:3179)
android.os.Handler.handleCallback(Handler.java:938)
android.os.Handler.dispatchMessage(Handler.java:99)
android.os.Looper.loop(Looper.java:223)
android.app.ActivityThread.main(ActivityThread.java:7661)
java.lang.reflect.Method.invoke(Native Method)
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
--------------------------------------------------------------------------
main 17/06/2021 10:34:12.278 D/App: applyLocale(de_DE)
main 17/06/2021 10:34:12.371 D/App: applyLocale(de_DE)
-
Thank you. Let's wait for the developer reply.
-
Seems no one app can handle the android.intent.action.OPEN_DOCUMENT_TREE commands. Its mean, no one system app can grant an access player to external storage. Make sure that the Documents system app is not switched off. Unfortunately, we MUST use this API since Android 11 due to Google requirement
-
Thank you very much for your fast help :)
Indeed the system document app was deactivated.