[Android Apps and Games] Thirumalai.K:
[MENTION=2954544]tliebeck[/MENTION]

FX is keeps on crashing on Lollipop devices when I execute some write operations on External Sdcard. If I revoke & enable storage access it works well till I reboot. After reboot it starts crashing again.

I have attached logs from both S5 & Moto E (2nd Gen)

Logs from Moto E2

Android SDK: 21
Board: MSM8610
Build ID: LXC22.99-13
CPU: armeabi-v7a
Device: otus_ds
Fingerprint: motorola/otus_reteu_ds/otus_ds:5.0.2/LXC22.99-13/11:user/release-keys
Manufacturer: motorola
Model: MotoE2
Product: otus_reteu_ds
Tags: release-keys
___________________
Error Log @ Wed May 06 23:58:43 IST 2015: logcat -v threadtime -t 1000 -s nextapp.maui -s nextapp.fx -s AndroidRuntime -s dalvikvm
--------- beginning of main
--------- beginning of crash
05-06 23:58:21.418 5703 5895 E AndroidRuntime: FATAL EXCEPTION: Thread-636
05-06 23:58:21.418 5703 5895 E AndroidRuntime: Process: nextapp.fx, PID: 5703
05-06 23:58:21.418 5703 5895 E AndroidRuntime: java.lang.SecurityException: Permission Denial: opening provider com.android.externalstorage.ExternalStorageProvider from ProcessRecord{25a98033 5703:nextapp.fx/u0a105} (pid=5703, uid=10105) requires android.permission.MANAGE_DOCUMENTS or android.permission.MANAGE_DOCUMENTS
05-06 23:58:21.418 5703 5895 E AndroidRuntime: at android.os.Parcel.readException(Parcel.java:1540)
05-06 23:58:21.418 5703 5895 E AndroidRuntime: at android.os.Parcel.readException(Parcel.java:1493)
05-06 23:58:21.418 5703 5895 E AndroidRuntime: at android.app.ActivityManagerProxy.getContentProvider(ActivityManagerNative.java:3311)
05-06 23:58:21.418 5703 5895 E AndroidRuntime: at android.app.ActivityThread.acquireProvider(ActivityThread.java:4676)
05-06 23:58:21.418 5703 5895 E AndroidRuntime: at android.app.ContextImpl$ApplicationContentResolver.acquireUnstableProvider(ContextImpl.java:2573)
05-06 23:58:21.418 5703 5895 E AndroidRuntime: at android.content.ContentResolver.acquireUnstableProvider(ContentResolver.java:1454)
05-06 23:58:21.418 5703 5895 E AndroidRuntime: at android.content.ContentResolver.acquireUnstableContentProviderClient(ContentResolver.java:1539)
05-06 23:58:21.418 5703 5895 E AndroidRuntime: at android.provider.DocumentsContract.renameDocument(DocumentsContract.java:937)
05-06 23:58:21.418 5703 5895 E AndroidRuntime: at nextapp.fx.dir.az.b(Unknown Source)
05-06 23:58:21.418 5703 5895 E AndroidRuntime: at nextapp.fx.dir.file.FileNode.a(Unknown Source)
05-06 23:58:21.418 5703 5895 E AndroidRuntime: at nextapp.fx.ui.dir.hj.run(Unknown Source)
05-06 23:58:21.418 5703 5895 E AndroidRuntime: at nextapp.maui.i.d.a(Unknown Source)
05-06 23:58:21.418 5703 5895 E AndroidRuntime: at nextapp.maui.i.d.run(Unknown Source)

Logs from S5

Android SDK: 21
Board: universal5422
Build ID: LRX21T.G900HXXU1BOC3
CPU: armeabi-v7a
Device: k3g
Fingerprint: samsung/k3gxx/k3g:5.0/LRX21T/G900HXXU1BOC3:user/release-keys
Manufacturer: samsung
Model: SM-G900H
Product: k3gxx
Tags: release-keys
___________________
Error Log @ Wed May 06 23:44:44 GMT+05:30 2015: logcat -v threadtime -t 1000 -s nextapp.maui -s nextapp.fx -s AndroidRuntime -s dalvikvm
--------- beginning of main
--------- beginning of system
05-06 23:43:32.208 14950 15298 E AndroidRuntime: FATAL EXCEPTION: Thread-86340
05-06 23:43:32.208 14950 15298 E AndroidRuntime: Process: nextapp.fx, PID: 14950
05-06 23:43:32.208 14950 15298 E AndroidRuntime: java.lang.SecurityException: Permission Denial: opening provider com.android.externalstorage.ExternalStorageProvider from ProcessRecord{394ffe75 14950:nextapp.fx/u0a203} (pid=14950, uid=10203) requires android.permission.MANAGE_DOCUMENTS or android.permission.MANAGE_DOCUMENTS
05-06 23:43:32.208 14950 15298 E AndroidRuntime: at android.os.Parcel.readException(Parcel.java:1540)
05-06 23:43:32.208 14950 15298 E AndroidRuntime: at android.os.Parcel.readException(Parcel.java:1493)
05-06 23:43:32.208 14950 15298 E AndroidRuntime: at android.app.ActivityManagerProxy.getContentProvider(ActivityManagerNative.java:3572)
05-06 23:43:32.208 14950 15298 E AndroidRuntime: at android.app.ActivityThread.acquireProvider(ActivityThread.java:5078)
05-06 23:43:32.208 14950 15298 E AndroidRuntime: at android.app.ContextImpl$ApplicationContentResolver.acquireUnstableProvider(ContextImpl.java:2926)
05-06 23:43:32.208 14950 15298 E AndroidRuntime: at android.content.ContentResolver.acquireUnstableProvider(ContentResolver.java:1464)
05-06 23:43:32.208 14950 15298 E AndroidRuntime: at android.content.ContentResolver.acquireUnstableContentProviderClient(ContentResolver.java:1549)
05-06 23:43:32.208 14950 15298 E AndroidRuntime: at android.provider.DocumentsContract.deleteDocument(DocumentsContract.java:968)
05-06 23:43:32.208 14950 15298 E AndroidRuntime: at nextapp.fx.dir.az.a(Unknown Source)
05-06 23:43:32.208 14950 15298 E AndroidRuntime: at nextapp.fx.dir.file.FileNode.d(Unknown Source)
05-06 23:43:32.208 14950 15298 E AndroidRuntime: at nextapp.fx.dir.file.FileItem.a(Unknown Source)
05-06 23:43:32.208 14950 15298 E AndroidRuntime: at nextapp.fx.dir.g.run(Unknown Source)
05-06 23:43:32.208 14950 15298 E AndroidRuntime: at nextapp.maui.i.d.a(Unknown Source)
05-06 23:43:32.208 14950 15298 E AndroidRuntime: at nextapp.maui.i.d.run(Unknown Source)
05-06 23:43:36.893 15479 15479 E nextapp.fx: Attempt to start service with no extras. Intent: null

FYI,

All other apps that uses SAF is working well.

Sent from my SM-G900H