Skip to content
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

Crash report - Failure delivering result ResultInfo{who=@android:requestPermissions:, request=1, result=-1, data=Intent { act=android.content.pm.action.REQUEST_PERMISSIONS (has extras) }} to activity {com.kyhsgeekcode.disassembler/com.kyhsgeekcode.disassembler.MainActivity}: java.lang.SecurityException: Permission Denial: opening provider com.android.externalstorage.ExternalStorageProvider from ProcessRecord{b1c60f7 3456:com.kyhsgeekcode.disassembler/u0a151} (pid=3456, uid=10151) requires that you obtain access using ACTION_OPEN_DOCUMENT or related APIs(ver2.0.2) #143

Closed
fire-bot opened this issue Mar 24, 2020 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@fire-bot
Copy link
Collaborator

Sent by Björn Sahle' ([email protected]). Created by fire.


java.lang.RuntimeException: Failure delivering result ResultInfo{who=@android:requestPermissions:, request=1, result=-1, data=Intent { act=android.content.pm.action.REQUEST_PERMISSIONS (has extras) }} to activity {com.kyhsgeekcode.disassembler/com.kyhsgeekcode.disassembler.MainActivity}: java.lang.SecurityException: Permission Denial: opening provider com.android.externalstorage.ExternalStorageProvider from ProcessRecord{b1c60f7 3456:com.kyhsgeekcode.disassembler/u0a151} (pid=3456, uid=10151) requires that you obtain access using ACTION_OPEN_DOCUMENT or related APIs
at android.app.ActivityThread.deliverResults(ActivityThread.java:4309)
at android.app.ActivityThread.handleSendResult(ActivityThread.java:4353)
at android.app.ActivityThread.-wrap20(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1678)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6548)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:445)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:857)
Caused by: java.lang.SecurityException: Permission Denial: opening provider com.android.externalstorage.ExternalStorageProvider from ProcessRecord{b1c60f7 3456:com.kyhsgeekcode.disassembler/u0a151} (pid=3456, uid=10151) requires that you obtain access using ACTION_OPEN_DOCUMENT or related APIs
at android.os.Parcel.readException(Parcel.java:2013)
at android.os.Parcel.readException(Parcel.java:1959)
at android.app.IActivityManager$Stub$Proxy.getContentProvider(IActivityManager.java:4766)
at android.app.ActivityThread.acquireProvider(ActivityThread.java:5877)
at android.app.ContextImpl$ApplicationContentResolver.acquireUnstableProvider(ContextImpl.java:2527)
at android.content.ContentResolver.acquireUnstableProvider(ContentResolver.java:1780)
at android.content.ContentResolver.openTypedAssetFileDescriptor(ContentResolver.java:1394)
at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:1247)
at android.content.ContentResolver.openInputStream(ContentResolver.java:967)
at com.kyhsgeekcode.disassembler.MainActivity.onChoosePathNew(MainActivity.kt:718)
at com.kyhsgeekcode.disassembler.MainActivity.handleViewActionIntent(MainActivity.kt:280)
at com.kyhsgeekcode.disassembler.MainActivity.access$handleViewActionIntent(MainActivity.kt:59)
at com.kyhsgeekcode.disassembler.MainActivity$onCreate$2.run(MainActivity.kt:211)
at com.kyhsgeekcode.disassembler.MainActivity.onRequestPermissionsResult(MainActivity.kt:471)
at android.app.Activity.dispatchRequestPermissionsResult(Activity.java:7429)
at android.app.Activity.dispatchActivityResult(Activity.java:7280)
at android.app.ActivityThread.deliverResults(ActivityThread.java:4305)
... 9 more

@yhs0602
Copy link
Owner

yhs0602 commented Mar 24, 2020

@yhs0602
Copy link
Owner

yhs0602 commented Mar 24, 2020

@yhs0602
Copy link
Owner

yhs0602 commented Mar 25, 2020

The app will strictly require read permission from now.

@yhs0602 yhs0602 self-assigned this Mar 25, 2020
@yhs0602 yhs0602 added the bug Something isn't working label Mar 25, 2020
@yhs0602 yhs0602 pinned this issue Jun 27, 2020
@yhs0602 yhs0602 closed this as completed Jun 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants