TeamAmaze / AmazeFileManager

Material design file manager for Android
https://teamamaze.xyz
GNU General Public License v3.0
5.36k stars 1.58k forks source link

Permission Denial: opening provider from ProcessRecord requires that you obtain access using `ACTION_OPEN_DOCUMENT` or related APIs #3634

Open amaze-issue-automation[bot] opened 2 years ago

amaze-issue-automation[bot] commented 2 years ago

Issue explanation (write below this line)

Exception

java.lang.RuntimeException: Unable to start activity
ComponentInfo{com.amaze.filemanager/com.amaze.filemanager.ui.activities.texteditor.TextEditorActivity}:
java.lang.SecurityException: Permission Denial: opening provider
com.android.providers.downloads.DownloadStorageProvider from
ProcessRecord{e7f42e 31446:com.amaze.filemanager/u0a292} (pid=31446,
uid=10292) requires that you obtain access using ACTION_OPEN_DOCUMENT or
related APIs
at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3763)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3931)
at
android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85)
at
android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
at
android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2356)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:264)
at android.app.ActivityThread.main(ActivityThread.java:8315)
at java.lang.reflect.Method.invoke(Native Method)
at
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:632)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1049)
Caused by: java.lang.SecurityException: Permission Denial: opening provider
com.android.providers.downloads.DownloadStorageProvider from
ProcessRecord{e7f42e 31446:com.amaze.filemanager/u0a292} (pid=31446,
uid=10292) requires that you obtain access using ACTION_OPEN_DOCUMENT or
related APIs
at android.os.Parcel.createExceptionOrNull(Parcel.java:2390)
at android.os.Parcel.createException(Parcel.java:2374)
at android.os.Parcel.readException(Parcel.java:2357)
at android.os.Parcel.readException(Parcel.java:2299)
at
android.app.IActivityManager$Stub$Proxy.getContentProvider(IActivityManager.java:5910)
at android.app.ActivityThread.acquireProvider(ActivityThread.java:7420)
at
android.app.ContextImpl$ApplicationContentResolver.acquireUnstableProvider(ContextImpl.java:3060)
at
android.content.ContentResolver.acquireUnstableProvider(ContentResolver.java:2511)
at android.content.ContentResolver.query(ContentResolver.java:1176)
at android.content.ContentResolver.query(ContentResolver.java:1124)
at android.content.ContentResolver.query(ContentResolver.java:1080)
at
com.amaze.filemanager.filesystem.EditableFileAbstraction.<init>(EditableFileAbstraction.java:62)
at
com.amaze.filemanager.ui.activities.texteditor.TextEditorActivity.onCreate(TextEditorActivity.java:140)
at android.app.Activity.performCreate(Activity.java:8151)
at android.app.Activity.performCreate(Activity.java:8135)
at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1309)
at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3732)
... 11 more
Caused by: android.os.RemoteException: Remote stack trace:
at
com.android.server.am.ActivityManagerService.getContentProviderImpl(ActivityManagerService.java:7761)
at
com.android.server.am.ActivityManagerService.getContentProvider(ActivityManagerService.java:8307)
at android.app.IActivityManager$Stub.onTransact(IActivityManager.java:2480)
at
com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:3181)
at
com.android.server.am.OppoActivityManagerService.onTransact(OppoActivityManagerService.java:169)


VishnuSanal commented 2 years ago

is this issue caused because of a missing ACTION_OPEN_DOCUMENT in our manifest file? ref: https://stackoverflow.com/a/50112432/9652621