How to remove the lock on Android applications Xiaomi: the complete guide 2026

Xiaomiโ€™s MIUI-based smartphones are known for their aggressive approach to managing background processes and blocking applications. Users often find themselves in a situation where the right programs suddenly stop working: no notifications arrive, applications spontaneously close or do not start, the reason lies in the optimization of the system, which by default limits the activity of โ€œunnecessaryโ€ (according to the MIUI algorithms) applications to save battery power.

In this article, we will discuss all the current ways to unblock, from standard MIUI settings to advanced methods using ADB and third-party tools. We will pay special attention to the nuances for different versions of firmware (from MIUI 12 to HyperOS) and smartphone models (Redmi, POCO, Xiaomi series 11/12/13/14). You will learn how to unlock applications without root rights, what to do if the settings were reset after the update, and why some methods stopped working in new versions of MIUI.

Why Xiaomi is blocking apps: 3 main reasons

Before you remove restrictions, it's important to understand how they occur, and in MIUI, you block applications at three levels:

  • ๐Ÿ”‹ Battery optimization: the system automatically limits the background activity of โ€œenergy-intensiveโ€ applications (messaging apps, social networks, games), this applies even to popular services like WhatsApp or Telegram.
  • ๐Ÿ›ก๏ธ Data protection: MIUI Blocks access to contacts, camera or microphone for applications that have not been used for a long time (Permission auto-reset feature in new versions).
  • ๐Ÿšซ Manual restrictions: Users could accidentally blacklist an app through Settings โ†’ Annexes โ†’ Permits โ†’ Auto-start.

Interestingly, the locking algorithms differ depending on the regional firmware, for example, in the global versions of MIUI (marked Global) the restrictions are milder than in the Chinese (China), where the system aggressively closes the background processes to save resources, and locks are strengthened on budget models (Redmi 9A, POCO M3) due to weak iron.

โš ๏ธ Attention: After updating to MIUI 14 or HyperOS some old unlock methods (e.g. via Security) โ†’ Optimization may not work. In new versions, the path to settings has changed - read about this in the corresponding section.

Method 1: Standard MIUI settings (without ADB and root rights)

To start with, the safest method that works on all versions of MIUI and doesn't require any technical skills, you need to consistently disable all types of restrictions for the problem application:

  1. Autorun: Go to Settings โ†’ Applications โ†’ Application Management, select the desired application and activate the Autorun switch.
  2. Background Activity: In the same menu, find the Resolution โ†’ Background Activity and select No Limits.
  3. Battery Optimization: in Settings โ†’ Battery โ†’ Battery Optimization Find the app and install it without restrictions.
  4. Block Notifications: Check Settings โ†’ Notifications โ†’ [App Name] and turn on all types of alerts.

For convenience, we have prepared a checklist with mandatory items:

Autorun enabled |Background activity without restrictions |Battery optimization disabled |Notifications permitted |Access to contacts/camera/microphone not reset-->

On HyperOS models (such as Xiaomi 14 or Redmi K70), the path to autorun settings has changed: now go to Settings โ†’ Apps โ†’ Special Permissions โ†’ Autorun. HyperOS also has a new item Deep Optimization โ€“ it also needs to be disabled for problematic applications.

MIUI 12/13|MIUI 14|HyperOS (Xiaomi 13/14)|I don't know my version.|other-->

Method 2: Unlocking through ADB (for power users)

If standard settings don't work, you'll need to use the Android debugging bridge (ADB), which works even on the latest versions of MIUI/HyperOS, and allows you to remove hidden restrictions that aren't displayed in the interface.

  • ๐Ÿ’ป Computer with installed Xiaomi drivers and utility ADB (You can download from the official Android website).
  • ๐Ÿ“ฑ Smartphone with enabled debugging USB (Settings โ†’ The phone. โ†’ Version. MIUI โ†’ 7 times to tap the version number โ†’ return to โ†’ For developers โ†’ Debugging by USB).
  • ๐Ÿ”Œ USB-TypeC Cable (preferably original).

Next, run the following commands in the terminal (cmd for Windows or Terminal for macOS/Linux):

adb shell


dumpsys deviceidle whitelist +com.example.app # replace com.example.app with your application package




dumpsys deviceidle force-idle




cmd appops set com.example.app RUN_ANY_IN_BACKGROUND allow

To find out the name of the application package, use the command:

adb shell pm list packages | grep -i "appendix name"

For example, for Telegram package will be org.telegram.messenger, for Viber โ€” com.viber.voip. After completing the commands, restart your smartphone โ€” this is critical for applying changes!

โš ๏ธ Attention: B MIUI 14 and HyperOS, dumpsys deviceidle whitelist may not work the first time, in which case, enter adb shell settings put global settings before running it. hidden_api_policy 1 This temporarily disables restrictions on the use of hidden API.

Method 3: Use of third-party utilities (without root rights)

If ADB seems too complex, you can use specialized applications that automate the unlocking process and often offer additional features, such as monitoring system processes.

AnnexFunctionsSupport for MIUI/HyperOSReference
MIUI Optimization DisablerDisables background optimization for all applications, blocks permission resetMIUI 12โ€“14, HyperOS (partially)Google Play
AutoStart ManagerAutostart management, unblock notifications, control background processesAll versions of MIUIGoogle Play
Battery OptimizerFlexible battery optimization for each applicationMIUI 13โ€“14, HyperOSGoogle Play

Example of AutoStart Manager:

  1. Install the application and grant it Special Access rights (a request will pop up after the first launch).
  2. In the main menu, select AutoRun and find the problem app.
  3. Activate all switches: Autostart, Background Activity, Notifications.
  4. Go to the Battery Optimization tab and turn off the restrictions for this application.

๐Ÿ’ก

If applications are blocked again after using third-party utilities, try disabling the Adaptive Battery feature in MIUI settings. It often conflicts with manual optimization settings.

Method 4: Unlocking through Safe Mode (if the application does not start)

There are situations where the application is not just blocked, but completely stops opening โ€“ for example, after a system update or reset, in which case the download in Safe Mode, where all third-party processes and limitations of MIUI are disabled, will help.

To enter Safe Mode:

  1. Press the power button before the off menu appears.
  2. Press and hold the "Switch off" (or "Switch off" power) item for 3-5 seconds.
  3. Confirm the transition to safe mode (the Safe Mode sign will appear at the bottom of the screen).

In safe mode:

  • ๐Ÿ”“ Try running a problem application โ€“ if it works, it means the lock is related to a conflict in the main system.
  • ๐Ÿ”ง Go to Settings. โ†’ Apps and reset cache/data for this application.
  • ๐Ÿ”„ Restart your smartphone as normal and check if the problem persists.

โš ๏ธ Note: Safe Mode entry may be different on HyperOS, with some models (Xiaomi 13 Ultra, Redmi) K60 Pro) press the power button + Increase the volume before the logo appears MI, Then release and immediately clamping down the volume.

Method 5: Resetting optimization settings (last resort)

If none of these things work, you have to reset your optimization settings to factory settings, which is a radical method, but it often solves the problem of blocking applications, especially after updates. Importantly, this reset does not affect user data (photos, messages, apps), but returns all system settings to the post-purchase state.

Instructions:

  1. Go to Settings โ†’ About the phone โ†’ Reset settings.
  2. Select Reset Optimization Settings (in some versions, the item is called Reset Battery Settings).
  3. Confirm the action and wait for the reboot (takes 1-2 minutes).

After discharge:

  • ๐Ÿ”„ Reconfigure autorun and background activity for the desired applications (see Method 1).
  • ๐Ÿ”‹ Turn off the Adaptive Battery in Settings โ†’ Battery.
  • ๐Ÿ“ฑ Reinstall problematic apps (sometimes clean installation helps).
What if the reset didn't help?
If after reset optimization applications are still blocked, the reason may lie in the damage to the system files. In this case, only a complete reset to factory settings (Settings โ†’ Phone โ†’ Reset โ†’ Delete All Data) or flashing through Fastboot. Before that, be sure to back up the data through Settings โ†’ Additional โ†’ Backup!

Frequent Mistakes and How to Avoid Them

When you unlock applications on Xiaomi, users often make common mistakes that nullify their efforts.

Mistake.Effects of consequencesHow to fix it
Not rebooted smartphone after changes to ADBSettings are not applied, applications are still blockedAlways restart your device after ADB commands or changes in optimization settings
Used the wrong name of the package in ADBThe command fails, the error is Package not found.Check the name of the package through adb shell pm list packages or App Inspector
Adaptive battery not disabled after manual settingThe system automatically resets permissions in 2-3 daysTurn off the function in Settings โ†’ Battery โ†’ Battery settings
We've installed an app on SD-mapMIUI blocks background activity for applications on external driveTransfer the app back to internal memory

Another common problem is resetting permissions after the MIUI update, to avoid this:

  • ๐Ÿ“ต Before the update, turn off automatic optimization through ADB: adb shell settings put global hidden_api_policy 1
  • ๐Ÿ”„ After the update, re-set autostart and background activity.
  • ๐Ÿ“ฑ Use it. MIUI Optimization Disabler for settings fixing.

๐Ÿ’ก

On HyperOS models (such as Xiaomi 14) after the upgrade, you may need to re-activate ADB permissions in the developer settings.

FAQ: Answers to Frequent Questions

Why is it that after unlocking the app through ADB, it is blocked again after a few days?
This is due to Adaptive Optimization in newer versions of MIUI/HyperOS. The system automatically resets permissions for "unused" applications. To avoid this: Disable Adaptive Battery in Settings. Add the app to the Optimization Exceptions via ADB: adb shell dumpsys deviceidle whitelist +com.example.app Use MIUI Optimization Disabler to fix settings.
Can I unlock system applications (e.g. Google Play Services)?
Yes, but with reservations: ๐Ÿ”ง Use it. ADB with superuser rights (root). ๐Ÿ“ต Not all system applications can be unlocked โ€“ some critical services (MIUI System UI, SecurityCenter is protected from changes. โš ๏ธ Unlocking system components can cause a smartphone to work unstable. Example of the command to unlock Google Play Services: adb shell cmd appops set com.google.android.gms RUN_ANY_IN_BACKGROUND allow
How to check which applications are blocked by MIUI?
There are several ways: through ADB: adb shell dumpsys deviceidle get deep Shows a list of applications in "deep optimization." Through AutoStart Manager, the Optimization tab displays all limited applications. Through the system event log: adb logcat | grep -i "kill" Shows what processes are forcibly shut down by the system.
Does this work on POCO and Black Shark?
Yes, all the described methods are relevant for smartphones POCO Black Shark, because they work on the base. MIUI/HyperOS. But there are nuances: ๐ŸŽฎ On Black Shark (for example, Black Shark) 5) The path to optimization settings may be different: Settings โ†’ Playing space โ†’ Optimization. ๐Ÿ“ฑ Nana POCO F5 The adaptive battery is called the Ultra Battery Saver. ๐Ÿ”ง For POCO firmware POCO Launcher may need to disable additional optimization in launcher settings.
Can I turn off the app lock permanently?
You can't completely disable MIUI optimization mechanisms without root rights, but you can minimize the limitations: Disable Adaptive Battery and MIUI Optimization. Use MIUI Optimization Disabler to fix settings. Regularly (once every 1-2 weeks) check autorun settings - MIUI can reset them after updates. Install an alternative launcher (like Nova Launcher) that doesn't conflict with background processes. The most reliable way is to get root rights and install the Disableggg Module in Magisk, but it requires an unload and it is guaranteed.