Xiaomi, Redmi and POCO phones run MIUI or, on newer models, HyperOS. Both close apps that work in the background to save battery. Both also stop apps from starting by themselves after a restart. That is a problem for the Android phone agent, which has to stay awake to answer your WhatsApp tasks, run reminders on time and show the floating button. Do the steps below once. They take about five minutes, and you don't need a computer.
The short version:
In Autowhat AI Agent, open Settings › Phone access and turn on Run in the background, Pop-up windows, Start on boot and Show over other apps.
In App info for Autowhat AI Agent, set Battery saver to No restrictions.
Check that Autostart is on for Autowhat AI Agent.
Check that Display pop-up windows while running in the background is allowed in Other permissions.
Lock Autowhat AI Agent in recent apps.
Never use Force stop or Ultra battery saver on Autowhat AI Agent.
Not set up yet? Start with the quick start, then come back here.
Why does my Xiaomi phone close Autowhat AI Agent?
MIUI and HyperOS have their own battery saver on top of Android's. It closes apps that run in the background, and it blocks an app from starting itself unless Autostart is on. Autowhat AI Agent tries to start again by itself a few seconds after it is swiped away, after an update and after a restart, and a back-up alarm tries again a few minutes after it is closed. Without Autostart, a Xiaomi phone can refuse those restarts, and Autowhat AI Agent then stays off until you open it.
Signs that your phone has closed or paused Autowhat AI Agent:
You send a task on WhatsApp and nothing happens until you open the app.
The floating button is gone from the edge of the screen.
A reminder comes late, or only when you unlock the phone.
The Chats tab shows the banner “Autowhat AI Agent is switched off.”, and the word under the name at the top says Off.
After a restart, nothing works until you open Autowhat AI Agent.
Start in Autowhat AI Agent: the Keep it running buttons
Autowhat AI Agent has buttons that open the right Xiaomi pages for you. Use them first. The sections after this one cover the settings the buttons can't reach.
Open Phone access
Open Autowhat AI Agent. Tap the round picture at the top right (it opens the You menu), then Settings, then Phone access.
Autowhat AI Agent › You › Settings › Phone access
During first setup you saw the same buttons on a card called “Keep it running”, each with an “Allow” button. If you skipped them then, do them here.
Turn on “Run in the background”
Under For more tasks, tap “Turn on” next to Run in the background. Android asks whether Autowhat AI Agent may always run in the background. Tap Allow.
If your phone opens a list of apps instead, find Autowhat AI Agent in it and set it to not optimised (the words differ by phone).
This is Android's own battery setting. Xiaomi has a second, separate one called Battery saver. You set it in the next section.
Turn on “Pop-up windows”
Tap “Turn on” next to Pop-up windows. Autowhat AI Agent reminds you: “Find “Display pop-up windows while running in the background” and allow it.” Xiaomi's permission page for Autowhat AI Agent opens. Allow that one row, then go back.
Autowhat AI Agent needs this to open apps for you while you are using something else.
Turn on “Start on boot”
Tap “Turn on” next to Start on boot. Autowhat AI Agent reminds you: “Turn on Autostart for Autowhat AI Agent.” Xiaomi's Autostart page opens. Turn on the switch next to Autowhat AI Agent, then go back.
Turn on “Show over other apps”
This is for the floating button, the small round button that lets you give Autowhat AI Agent a task from any app. Tap “Turn on” next to Show over other apps, then switch on Autowhat AI Agent on the page that opens. Xiaomi often calls this page Display over other apps.
What you will see
A tick means the setting is on. “Turn on” means it is still off.
On Xiaomi phones, Pop-up windows and Start on boot may show “Check” instead, with the line “Android can't check this. Open it to make sure it's on.” That is normal: MIUI doesn't always tell apps whether these two are on. Tap Check, look at the switch yourself, and come back.
If your phone does not let Autowhat AI Agent open a page, Autowhat AI Agent opens App info instead and says “That screen is not available here; opened App info instead.” Use the sections below to find the setting from there.
Switch greyed out?
On Android 15 and later, Android can grey out the switch for showing over other apps when an app was installed from a file, as it does for accessibility. Allow restricted settings for Autowhat AI Agent first, then try again. The accessibility guide shows how.
Set Battery saver to No restrictions
This is Xiaomi's own battery limit for each app. Autowhat AI Agent has no button for it, so set it by hand. It matters even after you allowed Run in the background, because Xiaomi checks both.
Open App info for Autowhat AI Agent
Press and hold the Autowhat AI Agent icon on your home screen, then tap App info (the small ⓘ). App info is the app's own settings page. You can also go to Settings › Apps › Manage apps › Autowhat AI Agent.
Tap “Battery saver”
On most MIUI phones it is called Battery saver. On some newer HyperOS versions, tap Power or Battery first, then Battery saver.
Choose “No restrictions”
Tap No restrictions. The other choices, such as Battery saver (recommended), let Xiaomi close Autowhat AI Agent when it runs in the background.
Also in App info
If you see Pause app activity if unused, turn it off. It takes permissions away from apps you haven't opened for a while, and Autowhat AI Agent often works without being opened.
Turn on Autostart
If you used Start on boot in Autowhat AI Agent, Autostart is probably on already. Check it once anyway. Without it, Autowhat AI Agent can't start by itself after a restart, and Xiaomi can refuse to bring it back after it was closed.
Find Autostart
On many MIUI phones there is an Autostart switch right in App info for Autowhat AI Agent. If yours has none, go to Settings › Apps and look for Autostart or Background autostart. On HyperOS it is often a shortcut near the top of the Apps page. Older phones keep it in the Security app under Permissions › Autostart.
Can't find it? Type Autostart in the search box at the top of Settings.
Switch on Autowhat AI Agent
Find Autowhat AI Agent in the list and turn its switch on. Then go back.
Allow pop-up windows while running in the background
Autowhat AI Agent works by opening apps for you. MIUI blocks an app from opening screens while it is in the background unless this is allowed. If you used Pop-up windows in Autowhat AI Agent, just check it here.
Open “Other permissions”
In App info for Autowhat AI Agent, tap Other permissions. On some versions it is App permissions, then Other permissions.
Allow the pop-up permission
Tap Display pop-up windows while running in the background and choose the option that allows it. Depending on the version it says Allow, Always allow or Accept.
Lock Autowhat AI Agent in recent apps
The recent apps screen shows the apps you used last. Xiaomi's Clear all button there closes every app except the locked ones. Lock Autowhat AI Agent so a quick clean-up doesn't close it.
Open recent apps
Swipe up from the bottom edge and hold for a moment. If your phone has buttons at the bottom, tap the square button.
Lock the Autowhat AI Agent card
Press and hold the Autowhat AI Agent card, then tap the padlock. On some older MIUI versions you pull the card down instead. A small padlock now shows on the card. To unlock it later, do the same again.
If you swipe it away
Swiping Autowhat AI Agent away from recent apps closes it. It asks Android to start it again a few seconds later, but Xiaomi only allows that when Autostart is on. Locking it is simpler.
Things that switch Autowhat AI Agent off on Xiaomi
Force stop in App info. It closes Autowhat AI Agent at once. On Xiaomi phones it also switches off Autowhat AI Agent's accessibility, and you then have to turn it back on by hand (see the next section).
Ultra battery saver and other extreme battery modes. They close almost every app, so Autowhat AI Agent can't answer you while they are on.
Battery saver for the whole phone, in Settings › Battery. It can delay Autowhat AI Agent's background work. The standard Balanced mode is the safe choice.
The Security app's Cleanup or Boost speed, and other cleaner apps. They close background apps. If you use them, check afterwards that the floating button is back.
Fix “Stopped. Turn it off and on again.”
Sometimes Android stops Autowhat AI Agent's accessibility service even though its switch still looks on. Autowhat AI Agent then can't use the screen, so phone tasks can't run. You will see one of these:
In Phone access, Use your screen says “Stopped. Turn it off and on again.” in red, with a Fix button.
On the Chats tab, a banner says “Autowhat AI Agent stopped using your screen. Turn it off and on again.”
After about two minutes, Autowhat AI Agent also says so in the chat, and as a notification if the app is closed.
Tap “Fix”
Android opens its Accessibility page. You can also get there yourself: Settings › Additional settings › Accessibility, then Downloaded apps.
Turn Autowhat AI Agent off, then on again
Tap Autowhat AI Agent in the list. Turn its switch off. Then turn it on again and tap Allow when Android asks. Go back to Autowhat AI Agent: the red line goes away within a few seconds.
Xiaomi may show its own warning with a short countdown before you can tap Allow. Wait for it to finish.
If it keeps happening, the phone is almost always closing Autowhat AI Agent in the background. Do the battery and sleep steps on this page again. If the switch is greyed out, see the accessibility guide.
Switch off, not Stopped?
If the switch itself was turned off, for example by Force stop, the Chats banner says “Screen access was switched off. Turn it on again.” Autowhat AI Agent also tells you once in the chat, and as a notification when the app is not open. Tap “Turn on” on the banner, tap Autowhat AI Agent in the list and turn it on.
How to check it is working
Do these once after the steps above:
In Phone access, Run in the background and Show over other apps show a tick. Pop-up windows and Start on boot show a tick or Check.
The word under “Autowhat AI Agent” at the top of the Chats tab says Ready.
If you allowed notifications, a quiet notification called Autowhat AI Agent stays in your notification shade. That is the app running. Leave it there; it is how Android lets an app keep working in the background.
Lock the phone for half an hour. Then send Autowhat AI Agent a task from your WhatsApp (see the WhatsApp guide). It should start without you opening the app.
Restart the phone and don't open Autowhat AI Agent. After a minute or two, the floating button should come back by itself.
If you keep the Daily message on (Settings › WhatsApp), a missing morning message is also a sign that the phone closed Autowhat AI Agent.
MIUI and HyperOS: where each setting usually is
Xiaomi renames and moves these settings between versions and models. Use this table if a step above doesn't match your phone.
Setting
Where it usually is
Other names or places you may see
Autostart
App info › Autostart, or Settings › Apps › Autostart
Why does my Xiaomi phone close apps in the background?
MIUI and HyperOS add their own battery saver on top of Android's. It closes apps working in the background and stops apps starting themselves unless Autostart is on. For Autowhat AI Agent, set Battery saver to No restrictions, turn on Autostart and pop-up windows, and lock it in recent apps.
Where is Autostart on Xiaomi, Redmi and POCO phones?
On many MIUI phones it is a switch in the app's App info page. On HyperOS it is usually under Settings › Apps › Autostart or Background autostart. You can also open it from Autowhat AI Agent: Settings › Phone access › Start on boot › Turn on. If you can't find it, search Settings for Autostart.
Why does Phone access say Check on my Xiaomi phone?
MIUI doesn't always tell apps whether pop-up windows and Autostart are on. When Autowhat AI Agent can't read the setting, it shows Check and the line: Android can't check this. Open it to make sure it's on. Tap Check, look at the switch yourself, and come back.
Why did accessibility turn off after I closed Autowhat AI Agent?
On Xiaomi phones, Force stop in App info also switches off an app's accessibility. Open Settings › Additional settings › Accessibility › Downloaded apps › Autowhat AI Agent and turn it on again. To avoid it, lock Autowhat AI Agent in recent apps and don't use Force stop.
Will this drain my battery?
Autowhat AI Agent uses more battery while it is doing a task than while it waits. No restrictions only stops the phone from closing it; it does not give it extra work. We don't publish battery figures. When the battery is at 15% or lower and not charging, the floating button reminds you to plug in.
Do I need to do this again after updating Autowhat AI Agent?
Usually not. Installing a new version over the old one keeps these settings, and Autowhat AI Agent starts again by itself after the update. If you uninstall Autowhat AI Agent and install it again, the settings are gone, and you need to do these steps again, including accessibility.
Written for Autowhat AI Agent 1.0.1. Menu names differ by phone maker and Android version; the steps say where they usually are. Android is a trademark of Google LLC.