For an application in development the main bulk of users are required for their tablets to be running restricted users so that they are incapable of using the device for anything more than the job they are tasked with.
When running normal testings getting the database out of the system and emailing it is going fine, but as soon as a restricted user attempts the same function an error is reached:
libcore.io.ErrnoException: open failed: EACCES (Permission denied)
File dbFile = new File(Environment.getDataDirectory() + "/data/com.fusi.vticket/databases/vt_data.db");
As seen by it working outside of restricted users I have all the correct permissions needed for a usual user to have access to these files.
Is there a specific way of allowing Restricted Users access to the same file structures as unrestricted or am I stuck with a dead solution?
Thanks for any time and help spent with this issue!