Voice assistant Alice on Xiaomi: how to configure work in the background without restrictions

Voice assistant Alice from Yandex has long ceased to be just a โ€œsmart alarm clockโ€ โ€“ now it is a full-fledged tool for managing a smartphone, a smart home and even third applications. Alice doesn't work in the background, stops listening to commands after 5-10 minutes, or shuts down completely by the system. MIUI, which blocks background activity of โ€œnon-personalโ€ applications.

In this article, we will discuss unique ways to circumvent restrictions. MIUI for Alice, including hidden developer settings, fine-tuning autoruns, and even alternative methods using ADB. You will learn how to make your assistant work consistently. 24/7 without loss of functionality โ€” from voice notes to control smart devices, and find out which Xiaomi models (from Redmi Note) 10 Xiaomi 14 Ultra) require different approaches to setting up.

Why isnโ€™t Alice working in the background on Xiaomi?

The problem lies in three key features. MIUI:

  • ๐Ÿ”‹ Battery optimization: The system automatically suspends applications that it thinks are โ€œtoo activeโ€ in the background, and Alice falls under this filter because of constant listening to the microphone.
  • ๐Ÿšซ Autostart Limitations: By Default MIUI Blocks auto-run third-party applications after restarting or clearing memory.
  • ๐Ÿ”’ Privacy Protection: In New Versions MIUI 14+ Additional checks for apps with microphone access are added, which may interrupt Alice's work.

In addition, in some models (for example, POCO F5 or Redmi K60) There are regional restrictions: if a smartphone is purchased for the Chinese market, some of the voice assistant functions can be blocked at the firmware level. โ†’ The phone. โ†’ Version. MIUI โ€” If there are letters at the end of the title CN, I'll have to use a detour.

๐Ÿ“Š What kind of Xiaomi model do you have?
Redmi Note 11/12/13
POCO X3/X4/X5
Xiaomi 12/13/14
Redmi K50/K60
Another model

Preparing a smartphone: what to do before setting up Alice

Before you start to fine-tune, follow the basic steps to avoid conflicts:

  1. Update Aliceโ€™s app to the latest version via Google Play or APKMirror (if you donโ€™t have Google services).
  2. Check the version. MIUI: Go to Settings. โ†’ The phone. โ†’ Version. MIUI. For stable work of Alice in the background is recommended MIUI 13+ (On older versions, you may need to ADB-team).
  3. Clear Alice's app cache: Settings โ†’ Annexes โ†’ Application management โ†’ Alice. โ†’ Warehouse โ†’ Clear the cache.
  4. Disable other voice assistants (such as Google Assistant or Mi) AI), Avoid conflicts over access to the microphone.

If your smartphone is rooted, some settings (such as blocking optimization via Magisk) may conflict with Alice, in which case temporarily disable modules associated with battery management.

Update Alice's app to the latest version

Check the version. MIUI (13+)

Clear Alice's cache in the app settings

Disable other voice assistants (Google, Mi) AI)

Make sure your phone has enough free memory (at least 1 GB)-->

Method 1: Configure through the standard menu MIUI (without ADB)

This method is suitable for most users and does not require technical skills. MIUI, which circumvent restrictions on specific applications.

Step 1: Turning off battery optimization for Alice

Go to: Settings โ†’ Annexes โ†’ Application management โ†’ Alice. โ†’ Battery โ†’ Optimizing the battery.

Select the option "No restrictions." If there is no such item, then your version MIUI Uses a different path: Try settings โ†’ Battery and productivity โ†’ Choice of applications โ†’ Alice. โ†’ No restrictions.

Step 2: Enabling Auto Start and Background Activity

In the same Alice app menu, find the items:

  • ๐Ÿ”„ Auto-start - turn on.
  • ๐Ÿ“ฑ Background activity - allow me.
  • ๐Ÿ”” Notifications โ€“ turn on (this is necessary for stable operation of voice commands).

Step 3: Add Alice to Protected Apps

This step prevents Alice from closing when memory is cleared: Settings โ†’ Annexes โ†’ Special permits โ†’ Secure applications.

Find Alice in the list and activate the switch. If the app is not in the list, click Add Apps and select it manually.

๐Ÿ’ก

If Alice closes after these settings, try restarting your smartphone, and sometimes the changes only take effect after the reboot.

Step 4: Set up the permissions for the microphone

Go to: Settings โ†’ Confidentiality โ†’ Application authorizations โ†’ Microphone.

Make sure Alice has the "Allow" checkbox. If the "Only during use" option is active, change it to "Always" (this is critical for background work!).

๐Ÿ’ก

Even after all the settings, Alice can close with a long downtime. MIUI To minimize closure, interact more often with the assistant (for example, set simple commands every 1-2 hours).

Method 2: Use of the ADB For deep optimization (for advanced ones)

If the standard settings do not help, you will have to connect the debugging by USB use ADB-This method is 100% guaranteed that Alice won't close, but it requires a computer and minimal technical knowledge.

Step 1: Include debugging by USB

Activate Developer Mode: Settings โ†’ About Phone โ†’ MIUI version (click 7 times in a row).

Then go to: Settings โ†’ Additionally. โ†’ For developers and include:

  • ๐Ÿ”Œ Debugging by USB
  • ๐Ÿ”“ Unlocking OEM (if)

Step 2: Connect to the PC and execute commands

Download. ADB Tools for your OS, connect your smartphone USB (Select the "File Transfer" mode and execute in the terminal:

adb devices

(Your device serial number should appear.)

adb shell dumpsys deviceidle whitelist +ru.yandex.alice

This team adds Alice to the whitelist of apps that are not optimized by the system.

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

Allows background activity without restrictions.

Step 3: Checking the Results

Reboot your smartphone and test Alice in the background. If the assistant closes anyway, follow the additional command:

adb shell settings put global hidden_api_policy 1

It disables hidden restrictions. API, culprit.

What if the ADB does not recognize the device?
1. Install drivers for your Xiaomi model (you can download it on the website) MIUI Downloads). 2. Try another one. USB-cable (preferably original). 3. Enable the option โ€œDebugging by Debuggingโ€ in the developer settings USB (security parameters) and confirm the PC permission.

Method 3: Alternative methods (if nothing worked)

If Alice stubbornly refuses to work in the background, try these workarounds:

Method 1: Use of Tasker or MacroDroid

Automation applications can simulate Alice's activity so that the system doesn't shut her down. For example, in MacroDroid, create a rule:

  • ๐Ÿ”„ Trigger: "The app is running" (Alice).
  • โšก Action: Send notification (any text, such as Alice activeยป).
  • ๐Ÿ” Restriction: Repeat every 30 minutes.

This will make the system โ€œthinkโ€ that you are actively using the app.

Method 2: Install Alice as a system application (requires root)

If you have root access, you can move Alice to the system applications section to MIUI I couldn't block it:

  1. Download Root Explorer or FX File Explorer.
  2. Move the file. ru.yandex.alice.apk from /data/app/ into /system/priv-app/.
  3. Set the license 644 (rw-r-----).
  4. Reboot your smartphone.

Method 3: Use of a second account

Some users note that Alice works more stable if:

  • ๐Ÿ‘ค Register a second Yandex account and link it to an assistant.
  • ๐Ÿ“ฑ Install Alice on the second user profile of Android (if supported by your Xiaomi model).

๐Ÿ’ก

If you use Alice to manage your smart home (for example, through Yandex IoT), add Yandex to the protected app and also disable battery optimization for it.

Battery Optimization: How to Reduce Alice's Energy Consumption

Alice's background work inevitably affects autonomy, but the cost can be reduced by 30-40% if:

Setting upHow to applyBattery savings
Turn off "OK, Yandex."In Alice's settings: Voice assistant โ†’ Voice recognition โ†’ Turn off the constant listening.25%
Limit geolocationSettings โ†’ Confidentiality โ†’ Permits โ†’ geodata โ†’ Alice. โ†’ Only during use15%
Disable unnecessary notificationsIn Alice's settings: Notifications โ†’ Delete โ€œNewsโ€ and โ€œRecommendationsยป10%
Use the "Savings mode" in MIUISettings โ†’ Battery โ†’ Savings regime โ†’ Include (exclude Alice from optimization)5%

Also, you should disable the automatic update of Alice in the background. for this go to Google Play. โ†’ Settings โ†’ Auto-update of applications โ†’ Wi-Fi only (or not automatically updated).

๐Ÿ’ก

If you use Alice for voice notes or reminders, turn on the option โ€œWi-Fi only syncโ€ in her settings, which will reduce mobile traffic and battery consumption.

Common mistakes and their solutions

Even after the right setup, Alice can be unstable, and let's look at the typical problems and ways to fix them:

Mistake 1: Alice doesn't respond to voice commands

Causes and solutions:

  • ๐ŸŽค Microphone is busy with another app: Close all programs that use the microphone (such as WhatsApp or Zoom).
  • ๐Ÿ”‡ Microphone access disabled: Check permissions in Settings โ†’ Confidentiality โ†’ Microphone.
  • ๐Ÿ”Š Low volume ambient noise: In Alice's settings, enable the "Voice amplification" optionยป.

Mistake 2: Alice closes after locking screen

This is due to deep optimization. MIUI. Decisions:

  • ๐Ÿ”„ Restart Alice manually after unlocking (temporarily).
  • ๐Ÿ“ฑ Use it. ADB-The command from Method 2, if not already used.
  • ๐Ÿ”‹ Turn off the function โ€œMemory Cleanup when blockingโ€ in Settings โ†’ Battery โ†’ Settings โ†’ Cleaning up memory.

Mistake 3: Alice doesn't work after the update MIUI

Updates often reset optimization settings. What to do:

  • โš™๏ธ Repeat all steps from Method 1 (especially check auto-start and background activity).
  • ๐Ÿ“ฒ Remove the Alice Update via Settings โ†’ Annexes โ†’ Alice. โ†’ โ‹ฎ โ†’ Remove the updates, then update it again.

How to reset Alice's settings to factory?
1. Open Alice's app. 2. Go to Profile โ†’ Settings โ†’ Reset. 3. Confirm action. Attention: This will remove all your voice models and smart home settings!

FAQ: Frequent questions about setting up Alice on Xiaomi

Can you set up Alice in the background without ADB?
In most cases, standard settings are sufficient. MIUI (Disable battery optimization, add to secure applications, however, on some models (e.g. Xiaomi) 13T or POCO F5 Pro may be required ADB because of the strict limitations of the firmware.
Why does Alice only work in the background for 10 minutes and close?
It's standard behavior. MIUI The system thinks that if the application is not actively used, it can be suspended, so the solution is to add Alice to Secure Applications and turn off battery optimization for her.
Will Alice consume a lot of battery in the background?
Yes, listening to the microphone increases your consumption by 5 to 15 percent depending on the model. To reduce consumption: Turn off OK Yandex (if you don't use voice launch); Limit geolocation for Alice; Add the app to the battery-saving exceptions.
Can you customize Alice on Xiaomi with global firmware (EU/Global ROM)?
Yes, but there may be problems with voice input due to regional restrictions. If Alice can't recognize speech: Set Russian locale in the system settings. Download Russified version of Alice from the 4PDA (If the official version doesn't work, check if it's blocking. MIUI Microphone access for โ€œnon-Chineseโ€ applications (in privacy settings).
How to remove Alice completely if you donโ€™t need her?
If Alice was pre-installed (e.g. on some Redmi models for the Russian market), it cannot be removed by standard means: ๐Ÿ”ง Disconnect: Settings โ†’ Annexes โ†’ Alice. โ†’ Shut down. ๐Ÿ—‘๏ธ Remove updates to return factory version (less functional). ๐Ÿ› ๏ธ Use it. ADB-Command: adb shell pm uninstall --user 0 en.yandex.alice (requires debugging by USB). Warning: Complete removal of system applications may lead to unstable operation MIUI!