Unpacking the cache of games on Xiaomi is a task faced by many gamers who want to transfer heavy projects such as Genshin Impact, Call of Duty Mobile or the Internet. PUBG It's not rebooted on another device, unlike standard ones. APK-Files, cache (usually in.obb or.zip format) store graphic resources, levels and other data that take up gigabytes of memory. POCO This process is complicated by the features of the file system. MIUI, where access to system folders is limited even without root rights.
In this article, we will discuss 5 working methods of cache extraction - from simple (using built-in tools) to advanced (via built-in tools) ADB We will focus on the nuances for different versions. MIUI (12-15) and models, including Black Shark gaming smartphones, and youโll also learn how to avoid โFailed to extractโ errors or data loss when transferring.
Warning: Some methods require debugging USB If you're a beginner, start with the first two methods. ADB or TWRP.
1.Where the cache of games on Xiaomi is stored: paths to folders
Before you extract the cache, you need to know where it is. MIUI The paths to game data depend on the Android version and the type of game:
- ๐ Normal games (APK + OBB): folder /Android/obb/[package_name] (for example, /Android/obb/com.activision.callofduty.shooter for COD Mobile).
- ๐ฎ Internal Cache Games (Genshin Impact: Folder) /Android/data/[package_name]/files or /Android/data/[package_name]/cache.
- ๐ System Games (Pre-installed): Can be stored in /data/app/[package_name] โ root-only.
On Xiaomi MIUI 14/15 These folders are hidden by default, so you can see them:
- Open any file manager (e.g., Mi File Explorer or Solid Explorer).
- Enable the display of hidden files: Three dots โ Settings โ Show hidden files.
- Go to the root directory (/storage/emulated/0/).
๐ก
If the Android folder doesnโt show up even after you enable hidden files, try using a file manager from a third-party developer (e.g., a file manager from a third-party developer, FX File Explorer or connect your smartphone to your PC via USB file transfer (MTP).
Not all games store cache in.obb format. For example, Honkai: Star Rail uses encrypted files in a folder. /data, You can't get them out without rooting. Check the requirements of a particular game on the developer's website.
2. Method 1: Extract cache through the built-in file manager
The easiest way is to copy the cache files directly through Mi File Explorer, which works for most games if the cache is stored in the same file. /Android/obb or /Android/data.
Step-by-step:
- Open Mi File Explorer (Folder icon on the desktop).
- Move to the /storage/emulated/0/Android/obb/ (or /Android/data/).
- Find a folder with the name of the game package (for example, com.miHoYo.GenshinImpact).
- Hold your finger on the cache file (usually.obb or.zip), then click Copy.
- Insert the file into a convenient folder (for example, Downloads) or on SD-map.
If the file is not copied, check:
- โ ๏ธ Is there enough space on the target medium (Genshin Impact cache weighs) ~15GB!).
- โ ๏ธ Is access to the folder blocked (on some firmware) MIUI Reading permission required).
Battery charge > 50%|Free space on SD-map/internal memory|File transfer mode enabled (MTP)|Optimizations are off MIUI (developer-setting)-->
On Black Shark smartphones, the path to cache may be different: instead of /Android/obb/ Look for the file. /BlackShark/obb/ or /BSGameSpace/.
Method 2: Transferring cache over PC (USB + MTP)
If the file manager on your smartphone is not working, connect Xiaomi to your computer, a method that is more reliable because it avoids copying errors on large files (>4GB).
What you need:
- ๐ฅ๏ธ Computer with Windows/macOS/Linux.
- ๐ Cable USB (preferably original).
- ๐ File Manager on PC (e.g. Total Commander or Standard Explorer).
Instructions:
- Connect your smartphone to your PC via USB.
- On the Xiaomi screen, select File Transfer Mode (MTP).
- On PC, open this computer. โ Find the Xiaomi device in the Devices and Disk section.
- Go to the internal drive. โ Android โ obb (or data).
- Copy the necessary files to the hard disk of the PC.
What to do if the PC does not see Xiaomi in mode MTP?
โ ๏ธ Note: When copying large files (>10 GB through MTP There's a possibility of errors. If the process is interrupted, try it:
- Uncash the cache directly on your smartphone (if it is.zip).
- Use alternative protocols, for example, FTP-server FX File Explorer and Solid Explorer can do this).
Method 3: Use ADB for extracting cache (without root)
If standard methods do not work (for example, the game stores the cache in a protected folder). /data), You can use the Android Debug Bridge (ADB). This method does not require root rights, but you need debugging. USB.
Steps:
- Install. ADB PC: Download Platform Tools from Android. Unpack the archive in any folder (for example, C:\adb).
USB-debugging
Xiaomi
command-line
Open the PowerShell window here
adb devices(Your device should be displayed)
adb shellsu -c "cp -r /data/data/[package_name]/files /sdcard/"(substitute [package_name] to the name of the game package, for example, com.miHoYo.Yuanshen).
If the su command doesnโt work, your Xiaomi doesnโt have root, so try an alternative route:
adb pull /sdcard/Android/obb/[package_name] C:\cache_backup๐ก
ADB It allows you to extract cache even from secure folders, but not all games store data in accessible locations. For example, Diablo Immortal encrypts the cache, and it can only be transferred through the official launcher.
โ ๏ธ Attention: Some firmware MIUI block access /data even ADB. In this case, only unlocking the loader and installing a custom Recovery will help (TWRP).
5. Method 4: Unpacking the cache through TWRP (advanced)
If you are ready for radical measures, the installation TWRP (Team Win Recovery Project will give you full access to the file system:
- ๐ Cache extraction from /data/data.
- ๐ฆ Backup of the entire folder /Android.
- ๐ Transfer of cache between devices with different firmware.
Instructions:
- Unlock the bootloader on Xiaomi (instructions on the Mi Unlock website).
- Install. TWRP For your model (download from twrp.me).
- Load into the recavery: turn off the smartphone, then press Volume up + Nutrition.
- V TWRP Choose Mount โ System and Data.
- Connect your smartphone to your PC and copy the desired files through ADB or MTP.
| Xiaomi model | Support for TWRP | Features |
|---|---|---|
| Redmi Note 12 Pro+ | โ Yes. | Deactivation required MIUI Protection in the Developer Settings. |
| POCO F5 | โ Yes. | Use the version. TWRP for marble (code name of the device). |
| Black Shark 5 Pro | โ ๏ธ Partially. | We need a special version. TWRP gaming-smartphone. |
| Xiaomi 13 Ultra | โ No. | The bootloader is locked at the hardware level (bypass is possible only for experienced users). |
โ ๏ธ Attention: Installation TWRP On new Xiaomi models (2023-2026), unlocking a bootloader requires waiting up to 168 hours (7 days) after an account is tied to Mi.
6. Method 5: Cloud Backup and Synchronization (for selected games)
Some games support cloud-based cache backup via a Google account, Mi, or their own server, which is the safest way to do that, but it doesn't work for all projects.
Games with support for cloud cache storage:
- ๐ฎ Genshin Impact โ via the MiHoYo account.
- ๐ฎ Honkai: Star Rail โ sync with Hoyoverse servers.
- ๐ฎ Call of Duty Mobile โ Linked to Activision or Facebook.
- ๐ฎ PUBG Mobile โ via Google Play Games or Facebook.
How to transfer cache through the cloud:
- Make sure the game is linked to your account.
- In the game settings, find the Cloud Save or Synchronization section.
- On the new device, install the game and log in to the same account.
- Wait for the data to load (it can take from 10 minutes to several hours).
โ ๏ธ Note: Cloud backup usually does not save:
- Local modifications (mods, cheats).
- Cache files downloaded after the last synchronization.
- Graphics settings (in some games).
Through the file manager on the smartphone|Through the PC (USB + MTP)|With help. ADB|Through TWRP|Cloud synchronization|Another way.-->
7. Frequent errors and how to fix them
When unpacking cache on Xiaomi, users face typical problems.
| Mistake. | Reason. | Decision |
|---|---|---|
| Failed to extract OBB | A damaged file or lack of memory. | Check the checksum (MD5) file and clear space. |
| folder Android/obb idle | The game stores the cache elsewhere (for example, in the /data). | Use it. ADB or TWRP. |
| Cash doesn't copy on SD-map | MIUI block the recording to external media. | Format. SD-map as internal memory in settings. |
| The game doesn't see the copied cache | Disambiguation of the game version or damage to files. | Delete the game, install the same version as on the old device, then transfer the cache. |
If after transferring the cache, the game crashes or does not start, try:
- Clear the game cache in the settings (Settings) โ Annexes โ [play-name] โ Warehouse โ Clear the cache).
- Reinstall the game without removing the cache folder.
- Check the compatibility of the Android version and the game (e.g., Genshin Impact requires Android 8.1).+).