On Xiaomi devices, aggressive system optimizations can cause background apps to be prematurely killed, disrupting functionality. To ensure your app runs reliably in the background, follow these steps to adjust Xiaomi’s system settings:
Open Settings:
Go to Applications or Apps:
Access System App Settings:
Select Security:
Enable "Boost Speed" Options:
Lock Your Desired App:
Xiaomi devices run MIUI, a heavily customized version of Android that prioritizes battery efficiency and performance. To achieve this, MIUI aggressively terminates background processes. While this improves battery life, it can negatively impact apps that rely on running in the background, such as messaging, health trackers, or media players.
This method has been tested on devices running MIUI and HyperOS, and it effectively prevents apps from being killed by the system.
Xiaomi’s app-killing behavior can be frustrating, but with the right settings adjustments, you can ensure your app remains operational. These steps are particularly important for developers who want their apps to deliver consistent performance on Xiaomi devices. If you encounter additional challenges, consider reaching out to Xiaomi’s support or exploring their official MIUI documentation.