You listen to your favorite playlist, lock the Xiaomi screen, and the music suddenly stops. Familiar situation? This problem is found on most devices running MIUI (from Redmi Note 10 to Xiaomi 13), and its causes lie in both the system settings and the peculiarities of the application. 80% of the time, it is not the firmware bugs that are to blame, but the aggressive optimization of the MIUI battery, which suspends background processes, including audio playback.
In this article, weโll look at all the possible causes, from the banal (forgot to enable the permission for the application) to the specific (conflict with the Adaptive Battery function), youโll learn how to set up autostop music through the MIUI menu, which applications are most often blocked by the system, and what to do if the problem appeared after the update, and also why on some models (for example, POCO F5) music works in the background without problems, and on others (Redmi 9A) it does not.
1. MIUI battery optimization: the main culprit of the problem
MIUI's proprietary shell is known for aggressive power optimization. By default, the system limits the background activity of applications to extend battery life. Music players (including Spotify, YouTube Music, and even the standard Mi Music) often fall under this ban, especially if you rarely use them.
How does it work? When you lock the screen, MIUI analyzes which apps are not critical to the user and pauses their processes. A music player without special permissions falls into this category. The solution is simple: you need to manually add the application to the optimization exceptions.
- ๐ The path to settings: Settings โ Battery and productivity โ Optimizing the battery
- ๐ต Action: Find your music app (e.g., your music app, VK Music, tap it and select it without restrictions
- โก Important: Google Play Music and Apple Music may require additional AutoRun permission
โ ๏ธ Attention: After update MIUI before 14+ The list of applications in the battery optimization menu may be reset!
Permissions for background reproduction
Even if you have disabled battery optimization, music may stop due to a lack of permits to work in the background. MIUI requires separate confirmation for activities such as:
- ๐ฑ Auto-start (permission to start when screen locks)
- ๐ Background activity (opportunity to work without an open window)
- ๐ถ Use of data in the background (for streaming services)
How to check:
- Open Settings โ Applications โ Application Management
- Select your music player (such as SoundCloud)
- Go to Permits and enable all items related to background mode
- Go back and tap the battery limitations. โ No restrictions.
Battery optimization enabled โ No restrictions.
Auto-start allowed
Background activity is on
Use of mobile data in the background (for streaming) is allowed)-->
If you use YouTube Music, note an additional limitation: the app may stop playback due to Googleโs policy (especially on uncertified devices), in which case installing a modified version (Vanced or ReVanced) will help.
3. conflict with the function "Adaptive Battery" (Adaptive Battery)
Starting with MIUI 12, the firmware has added Adaptive Battery, which uses machine learning to predict which apps you wonโt need anytime soon, and limits them. Unfortunately, the algorithm often gets it wrong by blocking music players.
How to turn it off:
- Go to Settings โ Battery and Performance โ Adaptive Battery
- Turn off the slider or add a music app to exceptions
- Restart the device (required!)
| Xiaomi model | MIUI version | Availability of Adaptive Battery | Recommended action |
|---|---|---|---|
| Redmi Note 11 | 13.0.5+ | Yes. | Disable or add an exception |
| POCO X4 Pro | 14.0.2 | Yes (hidden in Additional) | Turn it off completely. |
| Xiaomi 12T | 13.2.4 | Yes. | Add a player to the exceptions |
| Redmi 10A | 12.5.7 | No. | Check battery optimization |
โ ๏ธ Note: On some firmware (for example, MIUI EU) Disabling Adaptive Battery can lead to increased battery consumption 10-15%. Weigh the pros and cons!
MIUI Global
MIUI China
MIUI EU (Europe)
MIUI Russia
Other/Castomic-->
4. Problems with specific applications (Spotify, VK Music, YouTube)
Not all music services work equally well with MIUI.
- ๐ง Spotify: Often stopped due to conflict with Google Play Services.The solution is to clear the cache of Google services.
- ๐ถ VK Music: Requires additional permission to display over other windows (for mini-player).
- ๐บ YouTube/YouTube Music: Blocked because of DRM-Protection on non-certified devices.
- ๐ฑ Standard Mi Music: Can glitch after the update โ will help reset the settings of the application.
For Spotify, there is a separate instruction:
1. Open Settings โ Applications โ Application Management โ Spotify
2. Slip "Storage" โ Clear the cache
3. Go back and turn on:
- Auto-start.
- Background activity
- Display over other windows
4. Restart the applicationIf the problem persists, try alternative clients:
- ๐ ฟ๏ธ Poweramp (paid but stable)
- ๐ต Musicolet (no internet requirement, offline)
- ๐ BlackPlayer (well optimized for the game) MIUI)
๐ก
If the music stops only in Bluetooth headphones, try resetting their settings: โ Bluetooth โ โ๏ธ near-device โ Forget this device, then plug it back in.
5. Mistakes after the MIUI update: what to do?
After major updates (e.g., from MIUI 13 to MIUI 14), users often find that the music stops playing when the screen is locked.
- ๐ Resetting permits (MIUI Resets the battery optimization settings)
- ๐ Bugs in newer versions (e.g. in the MIUI 14.0.3 was a bug with MediaSession)
- ๐ฑ Changes in the policy of background processes (in MIUI 14+ restrictions tightened)
Algorithm of action:
- Check out the MIUI version in Settings โ About Phone. If itโs a recent update (released less than 2 weeks ago), wait for the patch.
- Reset the settings of all music apps: Settings โ Apps โ [Select player] โ Storage โ Clear data
- Turn off Adaptive Battery and MIUI Optimization (see sections above).
- If nothing helps, try to roll back to the previous version of MIUI via Fastboot.
How to get back to the previous version of MIUI?
On some devices (for example, Xiaomi 11T) after upgrading to Android 13, a bug with AudioFocus appears - the system "forgets" that the music application is active, in which case only waiting for an official fix from Xiaomi will help.
6. Hardware causes: when the "iron" is to blame
If all software methods have been tried and the music is still turned off, the problem may lie in the hardware:
- ๐ Faulty speaker or 3.5mm connector (on older models like the Redmi 5). Check playback via Bluetooth headphones.
- ๐ Worn-out battery (at a charge level below 15% MIUI forcefully kills background processes).
- ๐ฑ Processor overheating (on POCO F3 Check the temperature in the settings. โ The phone. โ Status.
How to diagnose:
- Connect the headphones โ if the music is playing, the problem is the dynamics.
- See the error log: Settings โ About Phone โ Debugging โ Error logs Look for records with AudioManager or MediaPlayer.
- Check the battery health using the code: ##4636## โ Battery If wear level > 30%, replace the battery.
โ ๏ธ Note: On devices with MediaTek Helio (e.g. Redmi) 9C) Sometimes, the overheating hardware goes off, which shuts down the audio processor, and then only repairs can help.
7. Alternative solutions: if nothing works
If standard methods donโt help, try:
- ๐ ๏ธ Install custom firmware (e.g. Pixel Experience or LineageOS). On pure Android, background play is less common.
- ๐ Using Automatic Tasks via MacroDroid or Tasker: Create a Macro: Trigger: Screen is Off Action: Launch the App [your player]
- ๐ฑ External player (e.g, USB-C Some users of Xiaomi 12 Pro solve the problem like this.
For advanced users, there is a radical method โ disabling MIUI Optimization via ADB:
adb shell
settings put global miui_optimization_disabled 1โ ๏ธ It'll shut down all the branded chips. MIUI, But it can solve the problem of background play. Not recommended for beginners!
๐ก
Before installing custom firmware, backup through Settings โ Additional โ Backup and Reset. Without a backup, you risk losing data when unlocking the bootloader!