Why remote file tools cannot reach Android/data and other Android folders
Remote file tools cannot reach some Android folders because Android isolates each app's data on purpose, and a remote file tool is itself an app. Since Android 11, no app can read another app's private folders. That includes the Android/data and Android/obb folders on shared storage. The All files access permission does not change this, and neither does management by an EMM. The fix is rarely to break the wall. It is to have the app that owns the files put them somewhere reachable.
Key facts
- Since Android 11, no app can read another app's folders under
Android/dataorAndroid/obb. A remote file tool is an app, so the rule applies to it. - The All files access permission (
MANAGE_EXTERNAL_STORAGE) excludesAndroid/dataandAndroid/obb. - Device owner status and EMM policy do not override this. An EMM can clear an app's data but cannot read it.
- Shared folders such as
Download,DocumentsandDCIMare reachable by a tool that holds All files access. - After a reboot, credential-encrypted storage stays locked until someone unlocks the device.
- The dependable fix is for the app that owns the files to write, mirror or upload them somewhere reachable.
Which Android folders can a remote file tool reach?
| Location | Example path | Who can read it | Reachable by a remote file tool |
|---|---|---|---|
| App internal storage | /data/data/<package> |
Only the app itself | No |
| App folders on shared storage | /sdcard/Android/data/<package> and /sdcard/Android/obb/<package> |
Only the app itself, on Android 11 or later | No |
| Shared storage | /sdcard/Download, /sdcard/Documents, /sdcard/DCIM |
Apps with storage access | Yes, with All files access |
| System data | /data/system and similar |
The operating system | No |
| Another user or a work profile | A separate storage area for each | Apps inside that user or profile | Only for a tool running in the same profile |
| User data before first unlock | Credential-encrypted storage | Nothing, until someone unlocks the device after a reboot | No, until unlock |
Why does Android block access to other apps' folders?
Android runs each app in its own sandbox with a private data directory. Scoped storage extended that idea to shared storage.
- Android 10 introduced scoped storage. Apps could still opt out.
- Android 11 enforced it. Apps can no longer access files in any other app's dedicated directory on external storage.
- All files access, the
MANAGE_EXTERNAL_STORAGEpermission, gives a file manager broad access to shared storage. Android's documentation excludesAndroid/dataandAndroid/obbfrom it. - The system file picker cannot select files in those two folders either.
- Android 13 closed remaining gaps, according to file manager developers who had relied on them.
Does device owner status or an EMM override this?
No. A device policy controller sets policy. It has no API for reading another app's private files. An EMM can clear an app's data, for example with the AMAPI clear app data command, but it cannot read it.
Encryption adds a timing rule. After a reboot, credential-encrypted storage stays locked until someone unlocks the device. On a device with a PIN, app data held in that storage is unreachable until then.
How do you get files out of an app's private folder?
In rough order of preference:
- Change where the app writes. If you control the app, write the logs and exports you need to shared storage, for example a folder under Documents.
- Mirror the folder. The owning app copies the files you need from its private folder to a shared folder, on a schedule or on request. For a third-party app, the vendor has to add this.
- Send the data off the device. For logs and diagnostics, have the app upload to your own server. Nothing then depends on file access.
- Expose files through a provider. The app can share specific files with a cooperating support agent through Android's content provider mechanism, with a permission check.
- Use managed configuration for input. To push settings or content into an app, do not write into its folder. Send a managed configuration, or have the app fetch the content.
- Use a privileged agent. An agent preinstalled or signed by the device maker runs with system privileges and can reach more. This needs the manufacturer's cooperation, so it suits fleets where you specify the hardware.
- Use adb in the lab. A debug connection can still list app folders on shared storage on many builds, and
run-asreads the internal storage of debuggable builds. Managed devices usually have debugging disabled, so this is for diagnosis, not for a fleet.
Rooting is not on the list. It breaks the device's integrity guarantees and has no place on a production fleet.
For how managed configurations work, see OEMConfig explained, which uses the same mechanism.
Which approach fits your situation?
| Your situation | Do this |
|---|---|
| You build the app | Write the files you need to shared storage, or upload them |
| A vendor builds the app | Ask for an export or mirror option, ideally switched on by managed configuration |
| You specify the hardware | Ask the device maker about a privileged agent |
| You need a one-off diagnosis | Use adb on a test device with debugging enabled |
| You need to place files into an app | Use managed configuration, or have the app fetch them |
What are the costs of mirroring a folder?
Mirroring is the most common workaround, and it has costs you should accept knowingly.
- Exposure. Files in shared storage are readable by other apps that hold storage access. Do not mirror credentials, tokens or personal data.
- Staleness. A copy is only as fresh as the last run. Record when it was made.
- Storage. Every mirrored file exists twice. Cap the size and rotate old copies.
- Direction. Keep it one-way, from the app outward. Two-way sync into an app's private folder brings the original problem back.
Can DeviceView or AndroidNexus reach these folders?
No remote file tool that runs as a normal app is exempt, ours included. DeviceView and AndroidNexus work inside Android's storage rules. The dependable route is to design an app's data paths so that the files you need land where a support tool can reach them.
Frequently asked questions
Why can't I open Android/data on Android 11 or later?
Android 11 enforced scoped storage. Each app's folder under Android/data is private to that app. Other apps, including file managers and remote support agents, are blocked by the operating system.
Does All files access include Android/data?
No. The permission gives broad access to shared storage, with Android/data and Android/obb excluded.
Can an EMM read an app's private data?
No. Management APIs set policy and can clear an app's data. They do not expose the contents of another app's storage.
Can I reach /data/data without root?
Only as the app itself. During development, adb's run-as command can read the internal storage of a debuggable build. Production builds are not debuggable.
Why did this work on older Android versions?
Before Android 11, apps could opt out of scoped storage and read most of shared storage, including other apps' folders there. Android 11 removed the opt-out for apps that target it.
Is there a setting or policy that turns the restriction off?
No. It is part of the platform's security model. Neither a user setting nor an EMM policy disables it.
Why is nothing reachable right after a reboot?
On a device with a lock screen, user data is encrypted with a key tied to the PIN or password. It stays locked until the first unlock after boot. Remote tools can do very little before that.
How do I collect log files from an app on a remote Android device?
Have the app put them where they can be reached. If you control the app, write logs to a shared folder such as Documents, or upload them to your own server. If a vendor controls it, ask for an export option. A remote tool cannot pull them from the app's private folder.
Can a file manager open Android/data on Android 13 or later?
Not as a normal app. All files access excludes the folder, and the system file picker cannot select files in it. File manager developers report that Android 13 closed the workarounds they had relied on.
Sources
- Storage updates in Android 11, Android Developers
- Manage all files on a storage device, Android Developers
- Scoped storage, Android Open Source Project
- Android 11 storage FAQ, Android Developers
- Support Direct Boot mode, Android Developers