Where on Xiaomi are stored push notifications: system paths, cache and settings MIUI

Push notifications have become an integral part of interaction with modern smartphones, but few people think about where they are stored in the system. On Xiaomi devices with a MIUI shell, the notification mechanism has its own features – from the physical location of files to the logic of system services. If you have ever tried to find an archive of notifications, clear cache or figure out why some alerts disappear, this article will help clarify the situation.

Unlike Android in its pure form, where notifications are managed by standard NotificationManager, MIUI adds its own layers of abstraction. This means that storage paths, file formats, and even display logic may differ. For example, some notifications are duplicated in system application databases, while others are stored temporarily and deleted after reading. Understanding these nuances will help not only optimize the device’s operation, but also restore lost alerts or customize their display to your needs.

Next, we’ll look at where push notifications are physically stored on Xiaomi, how they’re organized in the system, and what tools allow you to manage them. From system paths to manual cleaning methods, you’ll get a complete guide with practical tips and warnings about possible risks.

Physical Storage of Push Notifications: System Paths in MIUI

At the operating system level, notifications in Android (including MIUI) are stored in multiple locations, not all of which are accessible to the user without root permissions.

  • πŸ“ NotificationManager: the primary system service that manages all notifications, and its data is stored in a file. /data/data/com.android.providers.telephony/databases/mmssms.db (for SMS) and /data/system/notification_policy.xml (However, access to these files is only possible with superuser rights.
  • πŸ“ System application cache: Many notifications (e.g. from Mi Push Service) are temporarily stored in folders /data/data/com.xiaomi.xmsf/ or /data/data/com.miui.system/. Log files and cached data can be found here, but they are often encrypted.
  • πŸ“ App folders: Each app (e.g. WhatsApp, Telegram) stores its notifications in its own database along the way /data/data/[package_name]/databases/. For example, for Telegram, this will be /data/data/org.telegram.messenger/databases/.

It is important to understand that most notifications are stored temporarily and deleted after reading or restarting the device, except for notifications from system services (such as MIUI updates or security alerts) that can be archived in separate logs.

If you need to find a specific notification, such as from a banking application, first check its own database, which requires root access or the use of specialized tools like Root Explorer or SQLite Editor.

⚠️ Warning: Direct editing of system databases (e.g., mmssms.db) can cause notifications to malfunction or even data loss.

How MIUI Manages Notifications: The Role of System Services

At MIUI, several key services are responsible for processing push notifications, each of which plays a role:

  • πŸ”„ Mi Push Service (com.xiaomi.xmsf) is the primary service responsible for delivering push notifications from Xiaomi applications (such as Mi Home, Mi Fit) and some third-party services. It interacts with the Xiaomi cloud and stores temporary data in the Xiaomi cloud. /data/data/com.xiaomi.xmsf/.
  • πŸ“± Security Center (com.miui.securitycenter) – controls permissions for displaying notifications, blocking spam and prioritizing. /data/data/com.miui.securitycenter/shared_prefs/.

The MIUI is aggregating notifications from multiple sources and can duplicate them in its own databases, for example, if you received a notification from VKontakte, it can be stored simultaneously:

  1. In the database of the VK application itself.
  2. In the Mi Push Service cache (if the application uses Xiaomi services).
  3. Security Center logs (if the notice has been marked as important).

This makes it difficult to find a specific notification, but it ensures that the delivery is reliable, for example, if an application crashes, MIUI can recover the notification from the cache of the system service.

πŸ“Š How often do you clear the notification cache on Xiaomi?
Never.
Once a month
Once a week.
Only when problems arise

Where notifications from Xiaomi system applications are stored

Xiaomi system applications (e.g. Mi Home, Mi Fit, Themes) use its own push notification mechanism, which is integrated with Mi Account.

  1. Local database: each system service has its own database in the /data/data/[package_name]/databases/. For example, for Mi Home, it will be /data/data/com.xiaomi.smarthome/databases/. It stores both active and archival notifications (for example, alerts about new devices in a smart home).
  2. Cloud storage: If you are logged in to Mi Account, some notifications sync to the Xiaomi cloud, and can be viewed on other devices connected to the same account, but only through APIs or official apps can you access cloud data.

Example of notification storage structure for Mi Fit:

Type of dataStorage pathFormatAccess without root
Active notifications/data/data/com.xiaomi.hm.health/databases/mi_fit.dbSQLite❌ No.
Archive of notifications/data/data/com.xiaomi.hm.health/shared_prefs/XML❌ No.
Cache push messages/data/data/com.xiaomi.xmsf/cache/Binary❌ No.
Logs of error/sdcard/MIUI/debug_log/TXTβœ… Yes.

If you need to recover a notification from a system application (such as a missed low charge alert for a smart bracelet), try the following steps:

  1. Check the notification archive in the app itself (for example, Mi Fit has a Notifications section).
  2. If the notification came through Mi Push, try syncing the data to the cloud (in Xiaomi account settings).
  3. Use it. ADB For database extraction (if root access is available): adb pull /data/data/com.xiaomi.hm.health/databases/mi_fit.db Open the file with SQLite Browser.

⚠️ Note: When retrieving databases through ADB Make sure that the device is debugging on USB (Settings β†’ The phone. β†’ Version. MIUI β†’ Press the developer mode 7 times without it, the team won't work.

How to clear the notification cache on Xiaomi: step-by-step instructions

If notifications start to duplicate, appear late or disappear altogether, the problem can be hidden in a crowded cache.

Clear the cache of system applications (Mi Push Service, Security Center)

Delete the data of the application, the notifications of which are glitched

Reset the device

Check your Mi Account sync settings (if you use the cloud)-->

Detailed instructions:

  1. Cache cleanup Mi Push Service: Go to Settings β†’ Applications β†’ App management. Find Mi Push Service (or Xiaomi push notification service). Click Storage β†’ Clear cache.
  2. Reset notification settings for a specific application: Go to Settings β†’ Notifications and Status bar β†’ Notification management. Select a problem app (like WhatsApp). Disable and turn on notification permission again.
  3. Delete Security Center data (if notifications are blocked): In Settings β†’ Applications, find Security Center. Click Storage β†’ Delete data (this will reset all security settings, including permissions for notifications!).

If the problem isn’t solved, try turning off battery optimization for the problem app:

    πŸ’‘

    If the notifications stop coming after cleaning the cache, check if the background mode for the application is turned off. In MIUI, it is often blocked by the system to save charge.

    Can I restore deleted notifications to Xiaomi?

    Recovering deleted notifications on Xiaomi is a non-trivial task, but in some cases it is possible. Success depends on where the notification was stored and how long ago it was deleted.

    Recovery methods:

    • πŸ” In-app archive check: Some apps (such as Gmail or Telegram) store notification history inside themselves. Go to the app settings and look for the Notifications or Archives section".
    • πŸ“± Backups: If you have backup enabled in Mi Cloud, try restoring your app data. β†’ Mi Account β†’ Mi Cloud β†’ Data recovery.
    • πŸ’» Analysis of logs through ADB (For experienced users only: adb shell dumpsys notification --last 50 This team will bring the last 50 notifications from the system (developer rights required).

    If the notification was a push message (for example, from Viber or Facebook), its recovery is unlikely, since such messages are stored temporarily, except if the application syncs data with the cloud (for example, Telegram allows you to view the notification history on other devices).

    ⚠️ Warning: Recovering notifications through Mi Cloud backups will regress all application data to the state at the time of backup creation, meaning that new messages or settings may be lost.

    What if notifications disappear after the MIUI update?
    After major updates MIUI (For example, from version 12 to version 13, the system services responsible for notifications can be reset cache, in this case: 1. Reboot the device. 2. Clear the cache of Mi Push Service and Security Center. 3. Check if notifications are disabled in the settings of a particular application (sometimes reset is automatic). 4 If the problem persists, try resetting the network settings (Settings). β†’ SIM-maps and mobile networks β†’ Reset network settings, as some push messages depend on a stable internet connection.

    How to disable or configure notification storage

    If you're annoyed by the large number of notifications you have, or if you want to optimize the storage of notifications, MIUI provides flexible settings. Here's how to manage them:

    1. Disabling notifications for specific applications:

    1. Go to Settings β†’ Notifications and Status bar β†’ Notification management.
    2. Select the app from the list.
    3. Turn off the Allow Notifications switch.

    Setting the priority of notifications:

    • In the same notification management menu, you can select a priority for each application: πŸ”” Important – notifications will be displayed in a pop-up window and accompanied by sound. πŸ“Œ Ordinary - standard display in the curtain. πŸ”• Quiet – notifications will be hidden from pop-ups and sounds.

    3. Restriction of storage of notifications:

    To prevent notifications from accumulating in the curtain:

    1. Go to Settings β†’ Notifications and Status bar β†’ More.
    2. Activate Automatically Delete Notifications and set a limit (e.g., 50 notifications).

    4. Blocking spam notifications:

    MIUI has a built-in spam filter:

    1. Go to Settings β†’ Notifications and Status bar β†’ Spam filter.
    2. Turn on the option and blacklist unnecessary apps.

    πŸ’‘

    Setting up notifications through the Security Center allows you not only to block spam, but also to limit the background activity of applications, which has a positive effect on battery life.

    Frequent push notification issues on Xiaomi and their solutions

    Xiaomi users often face typical push notification problems, and here are the most common ones and how to fix them:

    Problem.Possible causeDecision
    Notifications don't come in.The app is blocked by Security Center or battery optimizationAdd the app to battery exceptions and allow auto-start in Settings β†’ Permissions β†’ Auto-Run
    Notifications are coming with a delayWeak Internet connection or limited background trafficTurn off background traffic restriction in Settings β†’ SIM-maps and mobile networks β†’ Transfer of data β†’ Background restriction
    Notifications are duplicatedThe conflict between Mi Push Service and the standard Android mechanismClear the Mi Push Service cache and restart the device
    Notifications disappear after rebootResetting the cache of system servicesCheck your sync settings in Mi Account or turn off automatic notification cleanup
    Notifications from Google services (Gmail, YouTube) are not workingGoogle Play Services is not available or is outdatedUpdate Google Play Services via Play Market or install manually from APKMirror

    If none of these methods worked, try resetting your network settings:

    1. Go to Settings. β†’ SIM-maps and mobile networks β†’ Resetting network settings.
    2. Confirm the reset and restart the device.

    This procedure will reset all network settings (including saved Wi-Fi networks), but often solves problems with delivering push notifications.

    FAQ: Frequent questions about push notifications on Xiaomi

    Can I view the history of all notifications on Xiaomi?
    By default. MIUI It does not keep a complete notification history, but you can: Use third-party applications like Notification History Log (requires permission to access notifications). Enable notification log through ADB: adb shell settings put global notification_history_enabled 1 After that, the story will be available in the Settings β†’ Notifications and status bar β†’ Note: the log only stores notifications after activation.
    Why are some apps not coming to Xiaomi?
    This is a typical MIUI problem associated with aggressive battery optimization. To fix: Open Settings β†’ Battery and Performance β†’ Battery Optimization. Find the problem app and select Unlimited. Enable Autorun for the app in Settings β†’ Permissions β†’ Autorun. Clear the Mi Push Service cache and restart the device. If the problem persists, check if the app is locked in the Security Center.
    Where are SMS and Call Notifications stored?
    Notifications about SMS and missed calls are stored in the system database: SMS: /data/data/com.android.providers.telephony/databases/mmssms.db (table sms). Calls: /data/data/com.android.providers.contacts/databases/contacts2.db (table). These files are only accessible with rights. Without them, you can view your call history and SMS calls only through standard root applications and Phone calls.
    How to transfer notifications to another Xiaomi smartphone?
    Notification transfer between devices is only possible for Xiaomi system applications (e.g. Mi Home or Mi Fit) if they are linked to Mi Account. To do this: Log in on a new device under the same Xiaomi account. Enable data synchronization in the application settings (e.g., in Mi Fit go to Profile β†’ Settings β†’ Data Sync). Wait for synchronization to complete (may take up to 10 minutes). For third-party applications (e.g. WhatsApp or Viber), notification transfer is not possible – they are stored locally and are not synchronized between devices.
    Can I turn off push notifications completely?
    Yes, but that will prevent you from receiving notifications from apps and system services. To turn off notifications globally: Go to Settings β†’ Notifications and Status bar. Turn off the Notifications switch on the lock screen. In the Notifications Management section, turn off notifications for all applications manually. To completely disable push services, Xiaomi can revoke permissions from Mi Push Service, but this can disrupt system applications.