TeamAmaze / AmazeFileManager

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

PermissionDenied on opening TextEditorActivity #2689

Closed amaze-issue-automation[bot] closed 1 year ago

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

Issue explanation (write below this line)

I was trying to open a txt file thinking amaze can handle it but it crashed. I thought a crash report may help

Exception

java.lang.RuntimeException: Unable to start activity
ComponentInfo{com.amaze.filemanager/com.amaze.filemanager.ui.activities.TextEditorActivity}:
java.lang.SecurityException: Permission Denial: opening provider
androidx.core.content.FileProvider from ProcessRecord{e7d2039
18671:com.amaze.filemanager/u0a256} (pid=18671, uid=10256) that is not
exported from UID 10072
at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3550)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3710)
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:2139)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:236)
at android.app.ActivityThread.main(ActivityThread.java:8047)
at java.lang.reflect.Method.invoke(Native Method)
at
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:600)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:967)
Caused by: java.lang.SecurityException: Permission Denial: opening provider
androidx.core.content.FileProvider from ProcessRecord{e7d2039
18671:com.amaze.filemanager/u0a256} (pid=18671, uid=10256) that is not
exported from UID 10072
at android.os.Parcel.createExceptionOrNull(Parcel.java:2376)
at android.os.Parcel.createException(Parcel.java:2360)
at android.os.Parcel.readException(Parcel.java:2343)
at android.os.Parcel.readException(Parcel.java:2285)
at
android.app.IActivityManager$Stub$Proxy.getContentProvider(IActivityManager.java:5933)
at android.app.ActivityThread.acquireProvider(ActivityThread.java:7148)
at
android.app.ContextImpl$ApplicationContentResolver.acquireUnstableProvider(ContextImpl.java:2954)
at
android.content.ContentResolver.acquireUnstableProvider(ContentResolver.java:2509)
at android.content.ContentResolver.query(ContentResolver.java:1181)
at android.content.ContentResolver.query(ContentResolver.java:1128)
at android.content.ContentResolver.query(ContentResolver.java:1084)
at
com.amaze.filemanager.filesystem.EditableFileAbstraction.<init>(EditableFileAbstraction.java:63)
at
com.amaze.filemanager.ui.activities.TextEditorActivity.onCreate(TextEditorActivity.java:147)
at android.app.Activity.performCreate(Activity.java:8126)
at android.app.Activity.performCreate(Activity.java:8098)
at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1310)
at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3523)
... 11 more
Caused by: android.os.RemoteException: Remote stack trace:
at
com.android.server.am.ActivityManagerService.getContentProviderImpl(ActivityManagerService.java:7508)
at
com.android.server.am.ActivityManagerService.getContentProvider(ActivityManagerService.java:7972)
at android.app.IActivityManager$Stub.onTransact(IActivityManager.java:2486)
at
com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:2973)
at android.os.Binder.execTransactInternal(Binder.java:1154)


VishnuSanal commented 1 year ago

dupe #3634