View Issue Details

IDProjectCategoryView StatusLast Update
0020021MMAGeneralpublic2023-12-03 19:43
Reportermartin Assigned To 
PriorityimmediateSeveritymajorReproducibilityunable to reproduce
Status resolvedResolutionreopened 
PlatformAndroidOS-OS Version13
Product Version2.0.0 
Target Version2.0.0Fixed in Version2.0.0 
Summary0020021: Permission problems on samsung devices
DescriptionThe issue seems to be related to some Samsung devices with Android 13.
I believe that a related exception is
java.lang.SecurityException: com.android.externalstorage has no access to content://media/external_primary/file/1000002757
https://appcenter.ms/users/rs-y9ha/apps/MediaMonkey/crashes/errors/324044089u/reports/2517206883094709999-1db734e4-b654-42df-9037-8c88d67b0c3e/threads?q=73X8M1ZTVDS627CA3KJF&searchType=all

Affected devices Galaxy A32 5G, Galaxy A52s 5G, Galaxy S20+ 5G,Galaxy A42 5G, Galaxy Note20 Ultra 5G, Galaxy S20 FE 5G, Galaxy S22, SM-G991U, Galaxy S20 FE 5G, Galaxy Tab S7+, Galaxy S20 5G

Unfortunately, this seems to be a system bug and hopefully will be fixed soon.
https://issuetracker.google.com/issues/258270138

Possible workarounds are to reset permissions from the device settings:

Settings -> Security and Privacy -> Privacy -> Permission Manager -> Files and Media ->Show System (three dots in upper right) -> "See more apps that can access all files" and then Enable "External Storage" for MediaMonkey

OR

1) Go into Android Settings
2) Search for All files access and tap it
3) Tap the 3-dot menu in the top-right corner and tap Show System
4) In the list, locate and tap External Storage
5) Enable the Allow access to manage all files permission
6) Restart MediaMonkey and Grant Permissions when prompted
TagsNo tags attached.
Fixed in build1086

Relationships

related to 0019887 resolvedmartin Permission problems when syncing to SD Cards and/or non-standard directory 
related to 0020455 resolvedmartin Improve message re. 'All files access' 

Activities

martin

2023-05-16 23:25

developer   ~0071893

'All files access' is introduced since Android 11(API 30)
On my Samsung device( Android 11) disabled permission for "ExternalStorage" app has no effect on MMA -> no dialog appears, playback is working, and reading files from permitted folders works too.
On my Pixel (Android 13) disabled permission causes that reading files from permitted folders throws SecurityException, but playback works.

On Samsung devices with Android 13 playback does not work (classic info dialog should appear) and perhaps reading files throws SecurityException (fullscreen dialog should appear when MMA is launched)

Fixed in build 2.0.0.1084

jiri

2023-05-17 06:10

administrator   ~0071895

Confirmed, build 1084 displays the dialog with necessary information on my S20.

rusty

2023-05-17 19:22

administrator   ~0071923

Last edited: 2023-05-17 19:59

1) Per discussion, it would be even easier for users if they could directly launch the external storage setting page e.g. via Intent intent = new Intent(Settings.ACTION_MANAGE_APP_ALL_FILES_ACCESS_PERMISSION);
intent.setData(Uri.parse("package:com.android.externalstorage"));
startActivity(intent);

If that's possible, the text could be changed to:
MediaMonkey requires full access to media files to work. Access cannot be granted because 'All files access' is disabled for 'External storage'.
[More info] [Enable 'All files access'...]

2) If MMA can detect whether this permission is lacking, would it make sense to prompt for this _before_ prompting for folder access (to pre-emptively prevent failure of granting access to folders)? (note: the existing wording can be used pre-emptively or post-error).

martin

2023-05-19 12:40

developer   ~0071987

Fixed in build 2.0.0.1085

rusty

2023-05-25 02:45

administrator   ~0072085

Tested 1085 and MM opened 'All files access' but didn't highlight 'External Storage'. i.e. the user still has to tap 'Show system apps...' in order to see 'External Storage', but none of this is explained in the current dialog. i.e. the current design implies that the user just has to enable a toggle but that doesn't seem to be the case. If the current workflow is the best that can be done, then the text should be changed to:

MediaMonkey requires full access to media files to work. Access cannot be granted because 'All files access' is disabled for 'External storage'. To resolve this:
1 Tap 'Configure...' to configure 'All files access'
2 Tap the 3-dot menu in the top-right corner and tap 'Show System'
3 Locate 'External Storage' in the list, and enable it

[More info] [Configure...]

p.s. Currently there's an 'ignore' button--is there any need for this?

martin

2023-05-25 08:40

developer   ~0072088

OMG, it varies by system,
On my devices, it opens All files access/External Storage and there is only one switch for this app.
I tested it on my daughter's new phone Galaxy A14(Android 13) today and it really opens "All files access" screen only because switches are available directly at showed items.
System apps are visible by default on this phone.

So we must describe all cases, and the wording should be changed to inform users that MMA does not need permission, but access is blocked by system app "External storage", because it has disabled permission to access external storages (including primary storage)


Suggestion:
Access to media files is blocked, because the system app "External storage" has 'All files access' permission disabled. To resolve this:

1 Tap 'Configure...' to configure 'All files access'

if 'Configure' will not open "External storage" permission screen directly, please follow the subsequent steps:

2 Tap the 3-dot menu in the top-right corner and tap 'Show System'
3 Locate 'External Storage' in the list, and enable it


[Ignore] button is for unexpected scenarios because behavior differs by system version (it's not needed for known scenarios)


On my Samsung Tab A (Android 11) everything works also when permission is disabled
On my Pixel 6a (Android 13) file access fails (e.g copy files, reading files), playback works
On Samsung A14(Android 13) file access fails, playback fails

rusty

2023-05-25 11:58

administrator   ~0072091

Tweaked text:

Access to media files is blocked, because the system app 'External storage' has the 'All files access' permission disabled. To resolve this:

1 Tap 'Configure...' and enable 'All files access' for External Storage
2 If you don't see 'External Storage', tap the 3-dot menu in the top-right corner and tap 'Show System apps'
3 Locate 'External Storage' in the list, and enable it
 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . [More info]
[Ignore] . . . . . . . . . . . . . . . . . . . . . . . . .[Configure...]

martin

2023-05-25 14:33

developer   ~0072094

Fixed in build 2.0.0.1086

rusty

2023-05-25 16:02

administrator   ~0072098

Verified 1086. Leaving resolved pending user confirmation.