Folder /data in Android 11 is a protected system directory where user applications, their settings, cache and personal data are stored. By default, access to it is limited even for the owner of the device: the system blocks attempts to view it through standard file managers, and when connected to a PC, the folder appears empty. This is done for the sake of security - so that attackers cannot easily steal confidential information. However, sometimes a legitimate need to gain access to /data still arises: for backup, restoring deleted files, manually setting up system applications or debugging.
In this article we will analyze all the current ways to open a folder data on Android 11 โfrom the simplest (without root access) to advanced (with unlocking the bootloader and using ADB). Each method is accompanied by step-by-step guide, risk warnings and tips for eliminating possible errors. Important: some operations can lead to Loss of warrantyresetting the device or even bricking it - so carefully evaluate the need to interfere with system files.
Why is the /data folder not available on Android 11?
Starting with Android 10Google has tightened its security policy, and in Android 11 the restrictions have become even stricter. Here are the key reasons for blocking:
- ๐ Scoped Storage - a mechanism that separates application access to storage. Now each application sees only its own files in
/data/data/package_name, and not the entire folder. - ๐ก๏ธ SELinux mode enforcing is a forced access control system that blocks any unauthorized operations with system partitions.
- ๐ FBE (File-Based Encryption) encryption โ files in
/dataare encrypted with a unique key associated with the device. It is impossible to decrypt them without root access or special tools. - ๐ซ MTP restrictions โthe USB data transfer protocol specifically hides the content
/datawhen connected to a PC.
Even if you connect your smartphone to the computer and try to view files through ADB with the command adb shell ls /data, the system will return an error Permission denied. This is normal behavior - this is how protection works. Attempts to bypass restrictions without understanding the consequences can lead to Android 11.
โ ๏ธ Attention: Attempting to circumvent restrictions without understanding the consequences can lead to data loss or device malfunction. For example, incorrectly changing files in /data/system often causes a cyclic reboot (bootloop).
Method 1: Viewing the contents /data without root access (limited access)
If you just need view some files in /data (for example, application configs or logs), but not edit them, you can do without root access. This method only works for your own files and does not give access to other people's data or system data. settings.
You will need:
- ๐ฑ A smartphone with Android 11 with enabled debugging USB.
- ๐ป Computer with ADB and Fastboot installed (installation instructions below).
- ๐ USB cable (preferably original).
Step 1. Install ADB and Fastboot
Download Platform Tools from Google (the official package with ADB and FastbootUnpack the archive to any folder (for example, C:\platform-tools) and add it to the environment variable. data-i="87">Open PATH:
- Open
Control Panel โ System โ Advanced system settings โ Environment variables. - In the section System variables find
Path, click Edit. - Add the path to the folder with ADB (for example,
C:\platform-tools).
Step 2. Connect your smartphone and check the connection
Turn on on your phone USB debugging (Settings โ About phone โ Build number โ tap 7 times, then return to Settings โ System โ For Developers โ USB Debugging).Connect the device to the PC and enter in the command line:
adb devices
If the device is displayed in the list, the connection is established.
Step 3. View available files
Use the command to view the contents of your folder in /data:
adb shellrun-as com.example.app
ls /data/data/com.example.app
Replace com.example.app with package name the desired application (you can find it through Play Market or App InspectorThis method allows you to see only files belonging to specific application, and only if it is installed). on the device.
โ ๏ธ Attention: Commandsrun-aswork only for applications being debugged (with flagdebuggable=truein the manifest). For most system and third-party applications, this method is not suitable.
Install Platform Tools on PC|Enable debugging via USB on the phone|Connect the device with the original cable|Check the connection with the command `adb devices`|Find out the package name of the target application-->
Method 2: Using TWRP to temporarily mount /data
If your device has custom installed recovery TWRP, you can temporarily mount the partition /data and copy the necessary files. This method does not require permanent root access, but is only suitable for devices with unlocked bootloader.
Advantages:
- โ No need to install Magisk or SuperSU.
- โ You can copy files to an external drive or PC.
- โ Works even if the system does not boot.
Disadvantages:
- โ Requires bootloader unlocking (data reset).
- โ Not all devices support TWRP on Android 11.
- โ Risk of damaging data if mounted incorrectly.
Instructions:
- Boot into TWRP (usually by holding
Power + Volume upwhen turning on). - Go to section
Mountand mark check markData. - Connect the phone to the PC and use the command:
adb pull /data/path/to/file C:\backup\or copy the files manually via
Advanced โ File Managerto TWRP. - After completion required unmount
Dataand reboot into the system.
What to do if TWRP does not see the /data partition?
If during mounting /data an error "Unable to mount /data" or "Invalid argument" appears in TWRP, most likely there is an encryption problem. Try:
1. Enter the password/pattern in TWRP (if there is an option "Decrypt Data").
2. Use a newer version of TWRP with FBE (File-Based) support. Encryption).
3. Format /data (will lead to the loss of all data!).
If all else fails, your device may use hardware encryption (for example, on Qualcomm chips with Keymaster 4+), and it is impossible to bypass it without root access.
Important: Some manufacturers (for example, Xiaomi, Samsung, Huawei) block the ability to install TWRP on new devices. Before trying, check the compatibility of your model on the forum XDA Developers.
Method 3: Obtaining root access and full access to /data
The most reliable way to get full control over a folder /data is to root the device. With root access you can:
- ๐ View and edit any files in
/data. - ๐ง Modify system settings (for example, in
/data/system). - ๐ฑ Install applications in
/data/appmanually. - ๐ Recover deleted files (if they have not been overwritten).
How to get root on Android 11:
- Unlock the bootloader (will reset the data!).
For most devices:
adb reboot bootloaderfastboot flashing unlockOn some brands (for example, Xiaomi) you need to link your account to the device via Mi Unlock Tool.
- Install Magisk:
- Download the latest version Magisk from GitHub.
- Flash
magisk_patched.imgvia Fastboot:fastboot flash boot magisk_patched.img - Reboot and check the root through the app Magisk Manager.
- Use root explorer, for example:
- Root Explorer
- Solid Explorer (with root mode enabled)
- FX File Explorer
Warnings:
- ๐จ Root disables the ability to use banking applications (SberBank, Tinkoff etc.) without Magisk Hide.
- ๐จ Some games (for example PUBG Mobile, Genshin Impact) block rooted devices.
- ๐จ OTA updates can breaking the root or lead to bootloop.
Yes, successfully|Yes, but it turned out to be brick|No, I'm afraid to take risks|I plan in the future|I don't see the point in this-->
| Method of access to /data | Root required? | Risk of data loss | Complexity | Limitations |
|---|---|---|---|---|
| ADB + run-as | โ No | โ ๏ธ Low | โญโญ | Only for debugged applications |
| TWRP (mounting) | โ No | โ ๏ธโ ๏ธ Medium | โญโญโญ | Requires an unlocked bootloader |
| Root + Magisk | โ Yes | โ ๏ธโ ๏ธโ ๏ธ High | โญโญโญโญ | Blocks some applications |
| ADB with superuser rights | โ Yes | โ ๏ธโ ๏ธ Average | โญโญโญ | Requires root and knowledge of commands |
Method 4: Using ADB with superuser rights (for rooted devices)
If you already have root access, you can get full control over /data via ADB with superuser rights. This is convenient for automating tasks or working with files directly from the command line.
Basic commands:
- View content:
adb shellsu
ls -la /data - Copy a file to PC:
adb pull /data/path/to/file C:\backup\ - Editing a file (for example,
build.prop):adb shellsu
mount -o rw,remount /data
nano /data/path/to/file(use
Ctrl+Oto save,Ctrl+Xto exit)
Example: backing up the application folder
Suppose you want to save application data Telegram (package org.telegram.messenger):
adb shellsu
tar -cvzf /sdcard/telegram_backup.tar.gz /data/data/org.telegram.messenger
exit
exit
adb pull /sdcard/telegram_backup.tar.gz C:\backup\
Important: when working with superuser rights, never delete or change files in /data/systemif you are not sure of their purpose. For example, deleting /data/system/gesture.key will reset the pattern key, but may cause problems with encryption.
adb shellsu
cp /data/path/to/file /data/path/to/file.bak
This will allow you to quickly roll back changes if something goes wrong.-->
Method 5: Alternative methods (for specific tasks)
If none of the above methods are suitable, consider alternative options:
- ๐ Reset to factory settings and save data:
Some manufacturers (for example, Samsung) allow you to create a backup copy
/databefore resetting. This will not provide direct access, but will save important data.Smart Switchbefore reset. This will not give direct access, but will save important data. - ๐ฑ Using applications for backup. copying:
- Titanium Backup (requires root)
- Swift Backup (works with Magisk)
- OAndBackupX (free analogue)
These apps can create backups of applications and their data in a convenient format.
- ๐ง Operation vulnerabilities (only for experienced ones):
On some devices with Android 11 there are vulnerabilities that allow you to access
/datawithout root (for example, throughdirtycoworCVE-2021-0316However, their use requires deep knowledge and knowledge). is fraught with consequences.
When alternative methods do not help:
- If the device encrypted and you do not know the password.
- If the manufacturer has blocked all ways to get root (for example, on some models Huawei or Google Pixel with the latest updates).
- If you are trying to access data another user (this illegal!).
Frequent errors and their solutions
When working with a folder /data users often encounter typical problems and ways to resolve them:
| Error | Cause | Solution |
|---|---|---|
adb: error: failed to stat /data/...: Permission denied |
Insufficient rights even with root | Check that Magisk is working (su in ADB returns #). Remount the partition: mount -o rw,remount /data |
Unable to mount /data to TWRP |
FBE encryption or damaged partition | Try entering the password in TWRP or use fastboot format userdata (erases data!) |
| Applications do not see root after update | Magisk did not survive the OTA update | Reflash Magisk via TWRP or patch a new one boot.img |
No such file or directory when accessing /data/data/... |
The application folder has been deleted or moved | Check that the path is correct. Use ls /data/data/ to view all packages |
If nothing works:
- Check if your device supports the selected method (for example, on Samsung Exynos often does not work TWRP).
- Update all tools (ADB, Magisk, TWRP) to the latest versions.
- Look for instructions for your specific model on XDA Developers or 4PDA.
If you are not sure of your actions, it is better to contact a specialist or abandon the idea of interfering with system files. In most cases, user tasks (backup, data transfer) can be solved using standard Android tools without the risk of โbrickingโ the device.
FAQ: Answers to popular questions
Is it possible to open the /data folder on Android 11 without root access?
Yes, but with serious limitations. Through ADB with the command run-as you can only view files of applications that support debugging (debuggable=trueFor others). In cases, you will need at least temporary mounting via TWRP (which also requires unlocking the bootloader). Full access without root is impossible due to the mechanisms SELinux i File-Based Encryption.
I received root, but the /data folder still does not open. What should I do? data-i="317">Probable reasons:
Probable reasons:
/datanot mounted with write permissions. Use:mount -o rw,remount /data- Your file manager does not support root. Try Solid Explorer or FX File Explorer.
- SELinux is blocking access:
getenforceIf returns
Enforcing, temporarily transfer toPermissive:setenforce 0(this is not safe, do it only for debugging!)
Is it possible to recover deleted files from /data?
Theoretically yes, but in practice it is very difficult. The folder /data in Android 11 is encrypted, and most recovery tools (like DiskDigger or Recuva) Options:
- If you have root, try Undelete or GT Recovery (they work unstable).
- If you did backup via TWRP, restore it.
- If the files were on SD card, it can be scanned on a PC.
Important: When deleting files in /data their place is immediately is overwritten, so the chances of recovery are minimal.
Will these methods work on Android 12/13?
Partially. Android 12 and newer Google has tightened the protection even more:
- Command
run-ashas become even more limited. - Magisk requires additional patches to bypass Zygote restrictions.
- Some manufacturers (for example, Google on Pixel) block bootloader unlocking on new devices.
However, the basic principles (root TWRP, ADB) remain relevant. For a specific version of Android and device model, look for the latest guides.
Is it possible to open /data on Samsung smartphones with Android 11?
On devices Samsung (for example, Galaxy S20, Note 20) access to /data complicated:
- Knox blocks most rooting methods.
- TWRP often not supported due to proprietary encryption.
- Even with root
/datamay not be accessible due to RMM State (Remote Lock).
Options:
- Use Patched Odin for firmware Magisk without trigger Knox.
- Try Samsung Backup via Smart Switch (saves part of the data).
- It works on some models
adb pull /data/media/0(but this is not a real folder/data, but a user storage).