Error “In the app Security has occurred” on Xiaomi: 7 ways to fix the problem

The “Security App Error” error** on Xiaomi, Redmi or POCO smartphones is encountered by users after updating MIUI, installing third-party apps, or even for no apparent reason. System notification can appear constantly, block access to security settings, and sometimes even cause the interface to freeze when trying to open the “Security” section. Unlike typical failures, this error does not disappear after a normal reboot and often requires a comprehensive approach.

The problem is caused by the conflict of the system application com.miui.securitycenter with other components. MIUI — From corrupted cache files to incompatibility with the latest updates, in this article, we will discuss 7 proven methods for fixing the error, including hidden developer settings, manual data cleaning and alternative ways to restore the application. MIUI 12-14 and new versions based on Android 11-14.

Why is there an error in the Security app?

Xiaomi’s Security app is responsible for antivirus protection, permission control, garbage cleaning and activity monitoring, and can be caused by:

  • 🔒 Blocking system files with antiviruses (for example, Avast or Kaspersky can tag components) MIUI suspiciously).

The error is particularly common on the Redmi Note 10/11, POCO X3/X4 and Xiaomi 12/13 models after the transitions between global and Chinese versions of MIUI. In 2023-2026, users also reported failures after installing HyperOS on older devices.

📊 Which Xiaomi model you are using is a mistake?
Redmi Note 10/11/12
POCO X3/X4/X5
Xiaomi 11/12/13
Another model
I don't know.

Method 1: Reboot and clean the application cache

Start with basic actions – they help in 60% of cases if the error is caused by a temporary failure.

  1. Press the power button and select “Reboot”** (don’t turn the device off completely!).
  2. After turning on, go to Settings → Applications → Application Management.
  3. In the search box, type "Security"** (or Security in English firmware).

☑️ Preparation for cache cleanup

Done: 0 / 4

If the error persists after cleaning and the Security section does not open, try to force the application to stop through the same control screen. Importantly, after cleaning the data, all antivirus and permission settings will be reset to factory.

⚠️ Warning: On some firmware, cleaning up the security app data may result in a fingerprint and pattern lock reset. check alternative ways to unlock in advance (PIN-code).

Method 2: Reset the Security App Settings via ADB

If the standard cleaning does not help, use it. ADB-This method works even when the application interface is not available.

  1. Install ADB Tools on your computer and enable “USB Debugging”** in the developer settings (Settings → About Phone → MIUI Version (click 7 times) → Additional → For Developers).

These commands completely reset security settings, including:

  • 🔐 List of permissions for applications;
  • 🛡️ Antivirus and blocking settings;
  • 📱 Data on suspicious activity.
What if the ADB does not recognize the device?
Make sure that Xiaomi drivers are installed (download from [official website](https://new.c.mi.com/global/miuidownload/index)). Try another one. USB-cable (original) and port on PC. Enable the option "Allow debugging by PC" in the developer settings USB (safe-haven)».

Method 3: Update or roll back firmware

The error often appears after the automatic MIUI update. If the problem has started recently, try:

  1. If the update doesn’t help, roll back to the previous version of MIUI via the Mi Flash Tool (for power users only!).
MIUI versionFamous "Security" BugsRecommendation
MIUI 14.0.3–14.0.5Conflict with Google Play ServicesUpgrade to 14.0.6+ or retrace to 14.0.2
MIUI 13.0.8 (Redmi Note 11)Error in scanning the deviceCache Clearance + Permission Reset
HyperOS 1.0 (beta)Security interface freezeWaiting for a stable release or returning MIUI

For firmware rollback:

  1. Download the desired version from the official website.
  2. Use the Mi Flash Tool in clean all mode (delete all data!).

⚠️ Attention: Firmware rollback on models with a locked bootloader (Redmi) 9A/10A This may cause a device to fail completely.Unlock the bootloader through the Mi Unlock Tool before the procedure.

Method 4: Remove updates through Settings

If the error occurs after updating system applications (such as Google Play Services or MIUI Security Core), you can roll them back:

  1. Go to Settings → Applications → Application Management.
  2. Find Security Update Provider (or Security Update Provider) and click Delete Updates.

After rollback, restart your device and prevent these apps from automatically updating in the Google Play Store:

  1. Open Play Store → Click on profile avatar → Settings → Auto-Update applications.
  2. Select “Do not update automatically” **.

💡

If the error disappears after the updates are removed, nolater returns – add the Security and Google Play Services apps to the list of “Not For Optimization” in the battery settings (Settings → Battery → Battery Optimization).

Method 5: Reset all settings (without data loss)

If previous methods failed, perform a partial reset that does not affect user files but returns system settings to factory settings:

  1. Select “Resetting”** (not “Reset to factory”!).

This method removes:

  • 📋 Settings for Wi-Fi, Bluetooth and mobile network;
  • 🔑 Saved passwords and accounts (except Mi Accounts);
  • 🎨 Design themes and system sounds;
  • ⚙️ All app permissions.

After discharge:

  1. Reset your Mi Account and sync.
  2. Update all apps through the Play Store.
  3. Check the Security section.

💡

Partial reset is the safest way to get to factory settings before it is completely reset, and it saves photos, videos and documents, but requires reconfiguring system settings.

Method 6: Manual Recovery through Recovery

For advanced users, if the error is critical and blocks access to the system:

  1. Turn off the phone and press the Power button + Volume up to enter Recovery.

In Recovery, you can also install firmware manually:

  1. In Recovery, select “Install Update”** and select the downloaded file.

⚠️ Note: On devices with Dynamic Partition (e.g. Xiaomi) 12T, Redmi K50) manual firmware through Recovery can cause data loss in the super and vendor sections. Use this method only if other methods have not helped.

Method 7: Contact Xiaomi Service Center

If none of the methods worked, the problem may be related to:

  • 🔧 Hardware damage (e.g., failure in eMMC memory or security controller);
  • 🛡️ Blocking. IMEI after the failed unlocking of the loader;
  • 📱 Substituting system files with viruses or unofficial firmware.

In these cases, a diagnosis is required at an authorized service center.

  1. Find out the serial number of the device (Settings → About phone → General information).

The cost of diagnostics in official services Xiaomi is ~1 500–2 500 ₽, warranty repairs are free of charge. Average repair time: 3-7 days.

FAQ: Frequent questions about the "Security" error

Can I use the phone if an error appears but the Security section opens?
The error indicates instability of the system component, which may lead to: 🔄 Self-resetting; 🛡️ Unworkable antivirus and application verification; 📱 Loss of access to certain features (e.g. Second Space or App Lock) We recommend that you apply one of the fixes as soon as possible.
Why does the error appear after installing Magisk or custom Recovery?
Magisk modules (e.g. Xiaomi) EU ROM Or Displax) modify system files, including com.miui.securitycenter. To resolve the conflict: Open Magisk Manager and disable all modules. Reboot and check for the error. If the problem is gone, turn on modules one by one to find the culprit. Most often, modules that change conflict framework-res.apk or services.jar.
How to recover the data of the Security application after resetting?
Unfortunately, Security settings (resolutions, locks, scan history) are not synchronized with Mi Account and are not backed up through standard means: 🔄 You'll have to reconfigure permissions for applications; 🔐 Re-add fingerprints and pattern lock; 🛡️ Run a full virus scan for your device. For the future: use third-party backup tools like Swift Backup (requires root).
The error only appears when you connect to Wi-Fi. What to do?
The problem may be related to: DNS Lock: try changing DNS to 8.8.8.8 or 1.1.1.1 in Wi-Fi settings. Router Conflict: disable IPv6, Parent Control or Firewall functions in the router. Certificate problem: go to Settings → Wi-Fi → Additional → Install certificates and reset trusted certificates.
After the error was corrected, access to Second Space was lost.
Second Space is tied to the Security app, and resetting it can remove the second profile. To recover: Go to Settings → Special Options → Second Space. Click Restore Space** and follow the instructions. If the option is not available, recreate Second Space (the old profile data will be lost). In the future, back up Second Space through Settings → Second Space → Backup.