View Issue Details

IDProjectCategoryView StatusLast Update
0013322MMAGeneralpublic2017-03-08 05:50
Reportermarek Assigned To 
PriorityurgentSeverityminorReproducibilityunable to reproduce
Status resolvedResolutionnot fixable 
Product Version1.3.0 
Target Version1.3.0 
Summary0013322: Write permission cannot be granted for SD card on some devices
DescriptionSome devices cannot obtain permission to write SD card via SAF API. It is forbidden by Android system.

We have some logs, it occurs on a few devices. It is workarounded, so it uses Kitkat implementation if SAF fails.

It is reproducible on:
Samsung Galaxu S7 Edge SM-G935F
Sony Xperia Z3 D6603
Steps To ReproduceTo test whether the storage fails to get write permission, please do following:
1. Start MMA
2. Permission dialog is shown. Allow access to whole SD card.
3. Dialog is closed (No toast messsage, I was wrong)
4. Use some file browser and go to SD card. Do you see /MediaMonkey folder with /MediaMonkey/files/storageInfo.xml file? If no, it failed.
Additional Informationhttp://www.mediamonkey.com/support/staff/index.php?/Tickets/Ticket/View/30717/mytickets/-1/-1/-1
https://rink.hockeyapp.net/manage/apps/66872/app_versions/159/crashes/6779451011
https://rink.hockeyapp.net/manage/apps/66872/app_versions/161/crash_reasons/122807141
TagsNo tags attached.
Fixed in build

Relationships

related to 0012951 resolvedmarek Some devices doesn't have storage UUIDs 

Activities

peke

2016-05-31 18:36

developer   ~0044825

Unfortunately like in last night tests using Z2

I was able to get my hands on Xperia Z3 Compact D5803 today and it also do not observe non access bug.

marek

2016-06-08 16:02

developer   ~0044890

We have one crashlog from Samsung Galaxy Note 4 SM-N910T3 with Android 5.1.1. So it isn't strictly 6.+ devices.

Btw. there are two similar issues:
1. User selects the folder in permission dialog. MMA asks system to access this folder permanently (otherwise user would have to grant it each time he starts MMA). System throws exception:
java.lang.SecurityException: No persistable permission grants found for UID 10172 and Uri 0 @ content://com.android.externalstorage.documents/tree/exfat_uuid
.. so we cannot grant the permission

2. User selects the folder in permission dialog. MMA asks system to access this folder permanently. System grants the write permission but the folder still isn't writable! Actually whole SD card isn't writable. I don't know what can cause it.

rusty

2016-06-20 14:17

administrator   ~0045007

Here is another report with log file from a user unable to grant access:
http://www.mediamonkey.com/forum/viewtopic.php?f=21&t=84458#p424673

marek

2017-03-08 05:49

developer   ~0047433

I doesn't seems to be fixable. We do it the right way and system doesn't behave correctly on some devices.