According to Google's introduction https://developer.android.com/work/managed-profiles.html, personal files in SD cards are not accessible by work profile application. However, we can see all files in DocumentsUI(application provided by system) by click "personality" after sending Intent(ACTION_GET_CONTENT)
, moreover file name, size and date are shown, which seems that files are readable. But when we use the uri from onActivityResult
I got FileNotException (EACCES: permission denied)
if I do reading operation (READ_EXTERNAL_STORAGE
permission is already granted). Can we access these personal files from a work profile applications? If yes, how can I read and write them?
Thanks in advance!
Reference question @ Access SD card data from android for work app, is the answer true?