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.
Preparing a smartphone: what to do before setting up Alice
Before you start to fine-tune, follow the basic steps to avoid conflicts:
- Update Aliceโs app to the latest version via Google Play or APKMirror (if you donโt have Google services).
- 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).
- Clear Alice's app cache: Settings โ Annexes โ Application management โ Alice. โ Warehouse โ Clear the cache.
- 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.aliceThis 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 allowAllows 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 1It disables hidden restrictions. API, culprit.
What if the ADB does not recognize the device?
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:
- Download Root Explorer or FX File Explorer.
- Move the file. ru.yandex.alice.apk from /data/app/ into /system/priv-app/.
- Set the license 644 (rw-r-----).
- 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 up | How to apply | Battery savings |
|---|---|---|
| Turn off "OK, Yandex." | In Alice's settings: Voice assistant โ Voice recognition โ Turn off the constant listening. | 25% |
| Limit geolocation | Settings โ Confidentiality โ Permits โ geodata โ Alice. โ Only during use | 15% |
| Disable unnecessary notifications | In Alice's settings: Notifications โ Delete โNewsโ and โRecommendationsยป | 10% |
| Use the "Savings mode" in MIUI | Settings โ 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.