How to get Alice to work in the background on Xiaomi: the complete guide

Voice assistant Alice from Yandex has long been an integral part of the ecosystem of smartphones, but on Xiaomi devices with a shell MIUI Users often face a problem: the assistant stops listening to commands 5-10 minutes after locking the screen, the reason lies in the aggressive optimization of the battery and background processes that Xiaomi uses by default. MIUI and make Alice work in the background without constant restarts, including hidden settings, ADB-teams and alternative methods.

It's important to understand that the problem is not with Yandex and Alice, but with MIUI's energy saving policy. Even after manually adding an application to the exclusion, the system can force it to close after a few hours. We tested the solutions on Redmi Note 11 Pro+, Poco X5 Pro and Xiaomi 13 Ultra models β€” all methods work, but require accurate execution of instructions. If you are willing to spend 10-15 minutes setting up, Alice will respond to commands even with the screen off.

Why Alice is not working in the background on Xiaomi

The main reason is the Deep Sleep battery optimization mechanism, which MIUI applies to all applications except system ones. When the screen goes out, the system puts the background processes into sleep mode to reduce charge consumption, Alice in this case loses access to the microphone and network. Even if you manually allowed autostart and removed the restrictions, MIUI can ignore these settings after rebooting or updating.

The second problem is the limitations on the background for third-party applications. Since MIUI 12, Xiaomi has tightened the rules: apps are not allowed to keep processes active without the explicit permission of the user. Alice is not a system application, so it falls under these restrictions. In addition, new versions of MIUI (13-14) have added the App Battery Saver mechanism, which automatically suspends applications if they have not been used for a while.

  • πŸ”‹ Deep Sleep Mode – forced β€œsedation” of applications when blocking the screen.
  • 🚫 Limitations MIUI β€” ban on background work for non-system applications.
  • ⚑ App Battery Saver – Automatic suspension of underutilized applications.
  • πŸ”„ Resetting settings - after updating MIUI All exceptions can fly.

Another nuance: on some models (for example, Redmi). 10C POCO M4 Pro) even after all the settings, Alice can turn off after 1-2 hours. This is due to hardware limitations - on budget Xiaomi smartphones, a less powerful processor is used, which can not simultaneously process background tasks and save battery. ADB-A command to disable optimization (more on this below).

πŸ“Š What kind of Xiaomi model do you have?
Redmi Note 10/11/12
Poco X3/X4/X5
Xiaomi 12/13/14
Another model

Preparation: What to do before setting up

Before you start changing your settings, follow a few mandatory steps to avoid crashes and make sure that the problem is in optimizing MIUI, not in the application itself.

  1. Update the Yandex app to the latest version via Google Play or APKMirror (if you don’t have Google services).
  2. Check permissions: go to Settings β†’ Applications β†’ Application Management β†’ Yandex and make sure all permissions are enabled (microphone, auto-start, display over other windows).
  3. Disable any β€œbattery optimizers” from third-party manufacturers (such as Greenify or AccuBattery).
  4. Reboot your smartphone – sometimes it helps to reset the MIUI time limits.

If Alice is still not working in the background after these actions, go to the basic methods of setting. Note: on some firmware (for example, MIUI Global), some menu items may be missing or called differently.

Update the Yandex application to the latest version

Check all permissions (microphone, autorun, notifications)

Disable third-party battery optimizers

Reboot your smartphone

Make sure the developer mode is turned on (if you use it) ADB)-->

Method 1: Manual addition of Alice to MIUI exceptions

The easiest way is to add Yandex to the battery optimization exception list, which works on most devices, but may require reconfiguration after the MIUI update.

Instructions:

  1. Open Settings β†’ Battery and Performance β†’ Battery Management
  2. Select Applications (or Apps with offline launch on new versions).
  3. Find Yandex in the list and turn on the switches: πŸ”„ Auto-start (allows start when the smartphone is turned on). πŸ”‹ No restrictions (disable battery optimization). πŸ“± Background activity (allows work in the background).

Optimizing the battery

Sleep regimen

Yandex

No restrictions.

After that, restart your smartphone. If Alice still doesn't respond to commands with the screen off, move on to the next method. On some firmware (e.g. MIUI EU), menu items may be called differently:

Title: MIUI GlobalTitle: MIUI EU/ChinaRelevant paragraph
Battery managementBattery & performanceThe main menu of battery settings
Auto-startAuto-startLaunch authorization upon activation
No restrictions.No restrictionsBattery optimization mode
Background activityBackground activityWork permit in the background

πŸ’‘

If your version of MIUI does not have a Background Activity option, try to enable Background Lock, which is an alternative name for the same function.

Method 2: Using ADB to Disable Optimization

If manual settings do not help, you will have to use ADB-This method is guaranteed to turn off optimization for Alice, but requires you to connect your smartphone to your computer. MIUI The procedure will need to be repeated.

Step-by-step:

  1. Turn on Developer Mode: Go to Settings β†’ About Phone. Click 7 times on MIUI until the notification "You're a developer" appears.

Activate debugging over USB

  • Back to Settings β†’ Additionally. β†’ For developers.
  • Turn on USB debugging and confirm the permission.
  • Connect your smartphone to your PC and install ADB drivers (if not already installed).
  • Open the command line (Windows) or terminal (macOS/Linux) and type:
adb devices

If the device appears in the list, enter the following command (replace ru.yandex.searchplugin with the current package of your version of Yandex):

adb shell dumpsys deviceidle whitelist +ru.yandex.searchplugin

Then turn off battery optimization:

adb shell cmd appops set ru.yandex.searchplugin RUN_ANY_IN_BACKGROUND allow


adb shell cmd appops set ru.yandex.searchplugin RUN_IN_BACKGROUND allow

After you've done the commands, restart your smartphone. Now Alice has to run in the background without restrictions. If the commands don't work, try the alternative:

adb shell settings put global hidden_api_policy 1

This command unlocks hidden APIs that MIUI can use to limit background processes.

What if the ADB can’t see the device?
If the adb device command returns an empty list: 1. Check if debugging is enabled by USB 2. Install drivers for your Xiaomi model (you can download from Xiaomi or via Mi Flash Tool). 3. Try another one. USB-cable (preferably original). 4. Reinstall ADB through SDK Google Platform Tools. 5. On Windows, try running the command prompt on behalf of the administrator.

Method 3: Alternative solutions (if nothing helps)

If neither manual settings nor ADB work, try one of the alternative methods, which is less reliable, but can work on individual Xiaomi models.

  • πŸ”„ Using Tasker or MacroDroid: Create a task that will wake up the Yandex app every 30 minutes. To do this, add the Launch App action to indicate Yandex. This is not the perfect solution, but will help keep the process active.
  • πŸ“± Installation of modified firmware: LineageOS or Pixel Experience-based firmware does not have aggressive optimization MIUI. However, this requires unlocking the bootloader and may deprive you of the guarantee.
  • πŸ”Š Voice Launch via Bixby or Google Assistant: Set up Google Assistant to launch Alice on a voice command (e.g., "OK Google, launch Alice"). This is a workaround, but it works more stable.
  • ⚑ Power Saving Disconnect: Put your smartphone into High Performance Battery Settings.This will increase charge consumption, but will allow Alice to work without interruption.

On some devices (for example, Xiaomi Mi). A2/A3 on pure Android) there are no problems with the background work of Alice - this confirms that the shell is to blame MIUI. If you are ready to sacrifice some functions for the sake of stable work of the assistant, consider switching to custom firmware.

πŸ’‘

ADB-commands are the most reliable way to disable optimization, but require re-execution after resetting or updating. MIUI.

Frequent Mistakes and How to Avoid Them

Many users make the same mistakes when setting up Alice on Xiaomi, which leads to unstable work.

⚠️ Note: If you have enabled AutoRun for Yandex but have not added it to Without limitation in battery settings, Alice will close in 30 to 60 minutes.

  • ❌ Previous articleUnrenewed application Yandex: Old versions of Alice may not work properly with the latest updates MIUI. Always use the current version from Google Play or official website.
  • ❌ Uses the "Light" version of Yandex: Yandex Lite does not support Alice's background work.
  • ❌ ADB-Instructions are entered with errors: Check the correctness of the application package (ru.yandex.searchplugin for the standard version.
  • ❌ Not rebooted after changes: Optimization settings only apply after reboot.

Another common mistake is using third-party β€œbattery optimizers”: apps like Greenify or AccuBattery can conflict with MIUI settings and force Alice to close, and uninstall or disable such programs before setting up.

⚠️ Attention: On devices with MIUI China, part of the battery settings can be hidden, and that's where it's going to help. ADB or switching to the global/European version of the firmware.

Comparison of methods: which to choose

Each of these methods has its pros and cons, and in the table below we compared them in terms of efficiency, complexity of setting up and stability of operation.

MethodEfficiencyDifficultyStabilityPC requiredWorks after the update
Manual settings MIUIMediumLow.Low (may reset)❌ No.❌ No.
ADB-teamTall.MediumTall.βœ… Yes.❌ No (I have to repeat)
Tasker/MacroDroidLow.Tall.Medium (depending on the tasks)❌ No.βœ… Yes.
Custom firmwareMaximumVery high.Maximumβœ… Yes.βœ… Yes.
High-performance modeMediumLow.Low (battery consumption)❌ No.βœ… Yes.

For most users, the best solution is a combination of manual settings and ADB. If you are not ready to deal with the command line, try the exception method in MIUI first, and if it does not help, use Tasker to periodically β€œwake up” the application.

On devices with MIUI 14 and later, the manual settings are becoming more aggressive in closing the background, and ADB is the only reliable way to do this, unless you consider switching to custom firmware.

FAQ: Answers to Frequent Questions

Alice stops working after the MIUI update.
After the update, all optimization exceptions are reset. You need to: Repeat manual settings (permissions, autorun, no restrictions). ADB, Reset your smartphone, reset your phone, and reset your phone. MIUI (13+) You may need to disable the function MIUI Optimization through ADB: adb shell settings put global miui_optimization 0
My Xiaomi doesn't have a background activity item. What do I do?
On some firmware, this item is called otherwise: Background lock (Blocking in the background) No restrictions (No restrictions) in the Battery section Manage battery use β†’ Unrestricted If there is no item at all, use ADB or check if it is hidden in Settings β†’ Special features β†’ Hidden settings (on some firmware).
Alice works in the background, but she doesn't respond to voice commands.
The problem may be: Microphone: check if it is not silenced (for example, after falling or getting moisture). β†’ Annexes β†’ Yandex β†’ Permissions and make sure that you have microphone access enabled at all times (not only during use) Conflict with other assistants: disable Google Assistant or Mi AI Assistant in settings. Regional settings: Alice may not recognize voice if the system has a non-Russian region. β†’ Additionally. β†’ Language and region.
Can I turn off optimization for all applications at once?
Yes, but it will greatly reduce battery life. For this: Enable Developer Mode (as described above). β†’ Additionally. β†’ For developers, activate the Background Process Limit (or Do not disable background processes) β†’ No limit). ⚠️ Warning: This will increase battery consumption by 15-30%.
Does this work on POCO or Black Shark?
Yes, all MIUI-based devices (including POCO, Black Shark, and Redmi) have similar battery optimization settings, except for pure Android models (such as POCO F1 or Mi A3), where background work is usually not problematic. Black Shark may need to further disable game optimization mode in Settings β†’ Black Shark β†’ Game Mode.