Android Question GetAllSafeDirsExternal("") failing when using Restricted User Account

DKnowles

Member
Licensed User
Longtime User
Hi All

I have a client using Android 5.1.1 (Yes I know its a old version of android but these are Zone 1 Flammable atmosphere rated devices $4000-$5000 and brand new).

When the following code is execused as a normal user (IT Admin) it returns two folders the internal and the SD Card folders, but when executed under the restricted user account it only returns the internal folder, note the user can use android myfiles app to look on the SD card with no problems.

Any Ideas?
B4X:
Sub Process_Globals
Private rp As RuntimePermissions
....
sub xxxx
    SafeFolders = rp.GetAllSafeDirsExternal("")
 

DKnowles

Member
Licensed User
Longtime User
Will do a small app that displays this info and update this post. The offending devices are a few hundred miles away and in daily use.
 
Upvote 0
Top