Where does the link from WhatsApp to Xiaomi: all storage spaces in Android

You copied an important link from WhatsApp on your Xiaomi, but you don't have time to insert it β€” and now you don't know where to look for it? Or you want to check if there are any old copies of confidential links? In Android systems (especially on MIUI firmware), copied data is distributed across several hidden and explicit repositories, from a standard clipboard to a messenger cache.

In this article, we will discuss all possible places where a link can be saved after copying to WhatsApp on Xiaomi (including models on MIUI 12/13/14 and HyperOS).

  • πŸ” How does the exchange buffer work in MIUI where the last copies are stored
  • πŸ“ Hidden folders where WhatsApp caches links and media files
  • πŸ”’ Why Some Links β€œDisappear” in Minutes (and How to Fix It)
  • πŸ› οΈ Tools for Recovering Deleted Copies (including AdB)

Important: the storage algorithm depends on the version of MIUI, the model of the smartphone (for example, Redmi Note 12 or Xiaomi 13T) and security settings. We tested all methods on the current firmware in 2026.

The first place any copied link gets is the system clipboard, which works differently in MIUI than it does in pure Android:

  • πŸ“‹ The last copy is stored in RAM until rebooted or cleaned through Settings β†’ Additionally. β†’ buffer.
  • ⏳ Copy history (if enabled) saves up to the last 20 items, but links from WhatsApp can be automatically deleted after 1-2 hours due to the privacy policy of the messenger.
  • πŸ”„ On HyperOS devices, the buffer syncs with your Mi Account (if buffer sync is enabled).

To check the buffer:

  1. Open any field to enter text (for example, in Notes).
  2. Hold your finger in the input field β†’ select the clipboard.
  3. Scroll down: If the link is missing, try the following methods.

πŸ’‘

On Xiaomi with MIUI 14+, you can pin important copies: hold the item in the buffer β†’ press Secure. This data is not deleted automatically.

WhatsApp creates a local cache to make it faster, and sometimes copies of links stay there even after the buffer is cleared.

Type of dataThe path in the file systemCan I read without root?
Text messages (including references)/sdcard/WhatsApp/Databases/msgstore.db❌ No (needs a SQLite editor)
Media files (preview links)/sdcard/WhatsApp/Media/.Statusesβœ… Yes (through the Conductor)
Temporary files/data/data/com.whatsapp/cache❌ No (root required)

To access msgstore.db:

  1. Connect your phone to your PC and use WhatsApp Viewer (like WhatCrypt).
  2. Or copy the file to your PC and open it through DB Browser for SQLite.
How to get links from msgstore.db without PC?
1. Install FX File Explorer with Root Access. 2. Go to /data/data/com.whatsapp/databases. 3. Copy msgstore.db to /sdcard. 4. Use the SQLite Editor app to search the messages table (text field).

Note: files in /data/data/ are protected by SELinux. On non-root devices, they can only be read through adb backup (instruction below).

Android keeps event logs that record clipboard actions, and Xiaomi stores these logs in:

  • πŸ“œ /data/log/clipboard β€” Copy/paste events (available only from root).
  • πŸ“± logcat – system log (can be viewed through adb logcat) | grep "CLIPBOARD").

For extracting logs without root:

adb shell


su




logcat -d | grep -i "whatsapp\|clipboard" > /sdcard/clipboard_log.txt

In the log, look for lines with:

  • onPrimaryClipChanged is a copy event.
  • com.whatsapp:text/plain is a data tag from WhatsApp.

Yeah, through the clipboard.|Yes, with the help of a PC.|No, I haven't.|I didn't know it was possible.-->

4. Cloud services: Clipboard synchronization

If your Xiaomi has Mi Account or Google sync enabled, copied links can be duplicated in the cloud:

  • ☁️ Mi Cloud: Clipboard syncs when Data Sync is activated β†’ Buffer Exchange in Settings β†’ Xiaomi account.
  • πŸ”— Google Keep: When using Save to Keep from a buffer (available on the MIUI 13+).
  • πŸ“± Remote access: via Mi Remote or Xiaomi Cloud Services (authentication required).

To check the cloud:

  1. Go to i.mi.com β†’ Devices β†’ [your smartphone] β†’ Clipboard.
  2. Or open Google Keep and find a note with the Clipboard tag.

πŸ’‘

The buffer sync in Mi Cloud only works on devices with one Mi Account, and if you change your account, the old data will be lost.

If the link has β€œdisappeared” from the buffer, try these recovery methods:

Check the history of the buffer in Settings β†’ Additionally. β†’ buffer|Use WhatsApp Viewer to analyze msgstore.db|View logs through adb logcat|Check cloud copies in Mi Cloud or Google Keep-->

Method 1: ADB-backup (no root)

Back up your WhatsApp data:

adb backup -f whatsapp.ab com.whatsapp

Then unpack whatsapp.ab with Android Backup Extractor (look for files with the.db extension).

Method 2: Recovery applications

  • πŸ› οΈ Clipboard Manager (retains copy history regardless of system).
  • πŸ” DiskDigger – scans memory for remnants of deleted data (works without root, but with limitations).

⚠️ Note: Apps like Clipboard History can intercept data from the buffer, including passwords and links, install them only from official sources and disable them after use.

On Xiaomi, WhatsApp links are often β€œlost” because of:

Problem.Reason.Decision
The link disappears in 1-2 hoursWhatsApp privacy policy (cache cleaning)Copy the link in Notes or pin it in a buffer
The buffer is cleared after the screen is blocked.Optimizing Memory in MIUITurn off buffer cleaning when locking in security settings
Old copies are not displayed.Buffer history disabledInclude in Settings β†’ Additional β†’ clipboard β†’ History

For Xiaomi models with HyperOS (such as Xiaomi 14 or Redmi K70), add WhatsApp to the optimization exceptions:

  1. Go to Settings β†’ Applications β†’ Application Management.
  2. Select WhatsApp β†’ Battery Limits β†’ No Limits
  3. Activate Auto Start and Secondary Start.
Can I restore a link that was copied a month ago?
Theoretically, yes, but only if: You use Clipboard Manager with history enabled. The link is saved in msgstore.db (if you didn't clean WhatsApp cache); You have a backup of WhatsApp in Google Drive (can be retrieved via WhatsApp Viewer); In practice, the chances are minimal: the system buffer stores data for no longer than 7 days, and WhatsApp clears the cache when it updates.
Why did all the copies of the buffer disappear after the MIUI update?
For major updates (e.g., from MIUI 13 to MIUI 14), the system resets: Local Clipboard (/data/clipboard). Application cache (including Clipboard Manager history). Solution: Before updating, export the buffer history to a file (e.g., via Clip Stack) or sync with Mi Cloud.
How to stop WhatsApp from clearing the clipboard?
There is no direct way, but you can: Disable autocleaning cache for WhatsApp in Settings β†’ Warehouse β†’ Clean up: Use an alternative buffer (e.g. Clipper) that is independent of WhatsApp, copy the link to Notes or Google Keep immediately after copying. On root devices, you can edit the file /data/data/com.whatsapp/shared_prefs/com.whatsapp_preferences.xml, delete clear_clipboard.
Where are the links from WhatsApp Web to Xiaomi stored?
When using WhatsApp Web on Xiaomi: Links are copied to a normal clipboard (the same rules as for the mobile application). additionally saved to /data/data/com.whatsapp.w4b/cache (only for WhatsApp Business). Feature: if you copied a link to your PC and then synced the buffer through Mi Cloud, it will appear on your smartphone (when you turn on the option Multiscreens in MIUI).
Can a virus steal copied links from a buffer?
Yes. Some malicious applications (e.g., Clipboard Hijackers) track the clipboard and: Substitute copied cryptocurrency addresses for their own. Send data to remote servers (especially dangerous for links with authorization tokens). How to protect: Install Malwarebytes and check the system. Turn off the permission to Read the clipboard for suspicious applications in Settings β†’ Apps β†’ Permissions. Use LastPass or Bitwarden to store sensitive links.