Hidden Notes in Xiaomi: File Location and Recovery

Xiaomi smartphone users often face the need to hide sensitive information from prying eyes. The standard Notes app in the shell of MIUI or HyperOS offers a security feature, but it is not always clear where exactly the data moves after activating this option. The physical location of files on the device’s drive plays a key role, especially if you plan to transfer data to a new gadget or try to recover accidentally lost information.

Unlike regular text files, which can be found in any folder, secure notes are encrypted and moved to a system partition that is restricted by the rights of the superuser, and this is done to ensure the security of the owner's personal data. Understanding the structure of the folders and the logic of the system will allow you to manage your digital space competently and avoid situations where important information is not available.

In this article, we will take a closer look at the storage architecture of Xiaomi devices, the paths to system cache and application databases. You will learn how protection mechanisms work and what happens to files when you delete or reset settings. Android system limitations do not allow you to simply copy these files without special tools, but knowing their location is the first step to full control of the device.

Principles of operation of encryption in MIUI and HyperOS

When you activate Hidden Notes mode in a standard application, the system doesn't just hide a shortcut, it's a complex process of transcoding content. Data encryption algorithms turn the readable text into a set of characters that only the operating system can understand when you enter the correct password or pattern lock, and this provides a high level of privacy even when you connect your phone to your computer in debugging mode.

Files move from user space to a secure container. To the average user, this area looks like a void or a set of incomprehensible system files. Security is more important than ease of access. If you forget the password for hidden notes, it will be impossible to unlock them using standard means, since the decryption key is stored in a separate secure system storage.

💡

Always use sync with Mi Cloud for hidden notes to have an encrypted backup on the manufacturer’s servers.

It is worth noting that when you update the operating system, the folder structure can change. Xiaomi developers periodically change paths to system data for optimization, so the relevance of the information about the paths always depends on the version of the firmware installed on your smartphone.

Physical path to database files

Technically, all notes, including hidden ones, are stored in SQLite database format. /data/data/com.miui.notes/databases/. However, standard file managers cannot get there without Root rights. Android blocks access to the folder. /data/data/ for all applications except system.

If you have root rights, you can see a file called note.db or notes_v2.db. It's the database that contains tables with all the text content, and the hidden notes are marked with a special flag in the database, which hides their display in the application interface until the moment of authorization.

⚠️ Attention: Any manipulation of files in the folder /data/data/ without a full backup, you may be unable to use the Notes app or lose all records.

For users without root rights, there is an alternative but less direct way to back up. Local backups are saved to /MIUI/backup/AllBackup/. Inside the archive with a backup of the Notes app, you can also find a database, but it will be packaged and linked to a specific account.

Can I read the database on a computer?
Yes, if you copy a.db file to a computer, you can open it with programs like DB Browser for SQLite, but the content of the hidden notes will look like an unreadable set of characters without a decryption key.

Search through the built-in file manager

Xiaomi’s standard Explorer has hidden features that help you find certain types of files. Although it won’t show system databases without root, it does allow you to manage file visibility. You can use file sorting to find any residual note files.

Open the Explorer app and go to Documents or Other, where you can sometimes find exported versions of notes if you’ve previously used the.txt or.html file format to send or save. Normal, non-hidden notes can be cached in Android/data/com.miui.notes/ folders, but access to them is limited in newer versions of Android (11, 12, 13, 14).

  • 📂 Open the “Conductor” and click on the menu icon (three bars).
  • 🔍 Select “Settings” inside the Explorer and enable “Show hidden files».
  • 📁 Go to the root of internal memory and look for folders with a prefix. (dot), for example.notes_cache (name may vary).

Keep in mind that file manager searches are only effective for finding multimedia attachments (photos, audio) that may have attached to notes. The text part of tetap will be in the database. The attachments may lie in /MIUI/notes/ or similar if they have not been deleted along with the note.

📊 What file system do you use for backups?
Internal memory.
SD card
The Mi Cloud Cloud
Google Drive
Computer

Using Root Rights to Access the System

For those willing to take the risk of taking full control of the device, obtaining Root rights (such as through Magisk) opens up access to all the folders described above.This is the only way to physically copy the hidden note database file to be transferred to another phone or to try to restore.

Once you have superuser rights, you'll need a root-enabled file manager like Root Explorer or Solid Explorer. By enabling root in your Explorer settings, you can go down the path. /data/data/com.miui.notes/databases/. Here you will find a database file that weighs a little more than just text, due to the structure of SQLite.

It is important to understand that root rights reduce the overall security of the device, and banks’ applications may stop working and the system will become more vulnerable to malware, so after copying the necessary database files, it is recommended to either delete root or use special modules to hide rights from certain applications.

☑️ Preparation for obtaining Root-rights

Done: 0 / 5

Recovery of deleted hidden notes

If a hidden note is deleted, it disappears from the application interface, but traces of it can remain in the database until the memory sectors are overwritten. Recovering such data is a complex process that requires specialized software. Simple recovery from the shopping cart in the Notes application only works for 30 days after deletion.

For deep recovery, you use software for your PC, such as Dr.Fone, Tenorshare UltData, or DiskDigger (the root version of Android), which scans your internal memory for residual records in your SQLite database, and the success of your operation depends on how much you've used your phone after you delete the file.

Method of recoveryNecessary rightsEfficiencyRisk of data loss
Basket in the annexNo.High (within 30 days)Absent.
Backup copy of Mi CloudMi AccountTall.Low.
Local backup (XML/DB)No.MediumMedium.
Memory scanners (Root)RootLow/MediocreHigh-pitched

If you plan to use data recovery software, make sure that your phone doesn't overwrite new data to the deleted ones. The most reliable way to save data is to regularly create full copies of the system to an external medium. The less you use your phone after deleting an important note, the better the chances of success.

Synchronization and Cloud Technologies

The most civilized way to manage hidden notes is cloud synchronization, Mi Cloud allows you to save backup copies of notes, including hidden ones, in encrypted form, and when you log in to a new device under the same account, the notes will automatically tighten after you enter the security password.

To activate sync, go to Settings → Mi → Mi Cloud Account. Make sure the slider opposite Notes is activated. Also, the Notes app itself should have a sync option enabled in the settings, ensuring that even if your screen breaks or your phone is lost, you don’t lose important information.

⚠️ Note: When you reset your Mi Account or change your password from your account, access to synchronized hidden notes may be temporarily lost until you reauthorize and confirm your phone number.

The alternative is third-party software if you don’t trust the manufacturer’s cloud, but the standard means to transfer hidden notes to Google Keep or Evernote directly is not possible — you need to unlock and export them first, making the Xiaomi cloud the most convenient, though not the only option.

Frequently Asked Questions (FAQ)

Can I find hidden notes through a computer by connecting my phone with a cable?
No, with a normal USB connection in file transfer mode (MTP), the /data/data/ system folders are hidden. You won't see note files without Root rights or using special ADB debugging tools with enhanced privileges.
What happens to hidden notes when you reset your phone to factory settings?
With a full reset (Wipe Data/Factory Reset), all data in internal memory, including encrypted databases of hidden notes, will be permanently deleted, only pre-synchronization with Mi Cloud or local copy on the PC will save.
How to transfer hidden notes to a new Xiaomi phone?
The best way to log in to your Mi Account on a new device and enable sync. Or use the Mi Mover feature by selecting system data and applications transfer, pre-blocking notes on your old phone for correct portability.
Do hidden notes take up space in your phone’s memory?
Yes, they take up space in the internal memory of the device because they're physically on the drive, and the volume depends on the amount of text and the images that are embedded, and they're displayed as part of the space that the Notes app takes up in the storage.
Can I recover notes if I forget the password from the hidden album?
Without a password or a linked Mi Account, which was synchronized, it is technically impossible to restore access to hidden notes due to the encryption used. Resetting the screen password will not help, since these are different levels of protection.