How to disable random music playback on Xiaomi devices: the full guide

Why does the music turn on on by itself?

Have you ever encountered a situation where a Xiaomi or Mi TV phone suddenly starts playing music without you? Not only is it annoying, it can lead to awkward moments β€” for example, during an important meeting or on public transport. The reasons for this behavior are diverse, from MIUI malfunctions to conflicts of applications accessing media files.

Most of the time, the background processes that scan music folders and automatically add tracks to playlists are to blame, especially after updating firmware or installing new apps, such as Mi Music, Google Play Music, or even YouTube Music, can arbitrarily run playbacks if they're allowed to access the storage, but the problem is solved β€” and we'll tell you how.

Method 1: Disabling Autoplay in MIUI settings

The most obvious method is to block autostart directly in system settings, which works on most Xiaomi, Redmi and POCO smartphones running MIUI 12-15 or HyperOS.

Here's the step-by-step instruction:

  1. Open the Settings β†’ Applications.
  2. Select Application Management β†’ Auto-start.
  3. Find music-related apps (Mi Music, Google Play Music, Spotify, etc.) in the list.
  4. Turn off the slider in front of each of them.

If your firmware version does not have AutoStart, try an alternative path:

  • πŸ” Settings β†’ Battery and productivity β†’ Battery consumption management β†’ Choice of applications β†’ Turn off auto-start for music services.
  • βš™οΈ Settings β†’ Special facilities β†’ Rumor β†’ Turn off automatic sound playback (if any).

Notifications from music apps are disabled|

Are all applications closed in the background?|

Is the firmware updated to the latest version?|

Have permissions for applications been checked in Settings β†’ Confidentiality-->

Method 2: Limiting permissions for music applications

Often the problem lies in the excessive rights that users accidentally grant to applications. For example, Mi Music can automatically scan folders and play files if it has access to storage and autorun.

How to limit permissions:

  1. Go to Settings β†’ Applications β†’ Application Management.
  2. Select a problem app (such as Mi Music).
  3. Press Permissions and turn off: πŸ“ Storage (if you don’t need to scan files) πŸ”Š Change the sound settings πŸ“± Auto-start

Notifications

For Google Play Music or YouTube Music, it is also recommended to turn off Background activity in the battery settings.This will prevent the application from spontaneously starting when connecting headphones or on a schedule.

πŸ’‘

If after the permissions are limited, the application stopped working correctly, try first to clear its cache in Settings β†’ Apps β†’ Storage β†’ Clear the cache.

Method 3: Removing or disabling the standard Mi Music player

MIUI firmware has a default Mi Music system player, which is often a source of problems, and cannot be completely removed without root rights, but can be disabled or replaced with a third-party one.

Instructions for unsetting:

  1. Open Settings β†’ Applications β†’ Application Management.
  2. Find Mi Music (or Music)
  3. Click Disable (if the button is active) or Remove Updates.
  4. Clear Cash and Data.

If you can’t disable the application, you can hide it with the help of ADB-commands (computer required):

adb shell pm hide com.miui.player

To return it, use:

adb shell pm unhide com.miui.player
What to do if there is no "disconnect" button?
On some models (e.g. Xiaomi 12T or Redmi Note 11), system applications cannot be disabled by standard means. In this case, it will help: 1. Install an alternative launcher (e.g., Nova Launcher), which allows you to hide applications. 2. Use Package Disabler (requires root or ADB). 3. Switch to custom firmware (e.g., Pixel Experience), where there is no preinstalled Mi Music.

Method 4: Configure playback when connecting headphones

Many users complain that music automatically turns on when wired or Bluetooth headphones are connected, and this is due to the Autoplay feature when you connect a device that you can turn off.

How to do this:

  • 🎧 For wired headphones: Open Settings β†’ Connected devices β†’ Headphones, turn off the Autoplay audio option.
  • πŸ”΅ For Bluetooth headphones: Go to Settings β†’ Bluetooth, press the icon. βš™οΈ next to the connected device. Turn off Autoplay Media.

If you don't have those options, check the settings in the music app itself. For example, Spotify or YouTube Music have separate options for autoplay when you connect your devices.

Wired |

Bluetooth|

Both of them |

Not using.-->

Method 5: Reset audio settings (for Xiaomi TV and smartphones)

If the problem persists, the system's audio settings may have gone wrong, in which case resetting media settings will help, a method that is suitable for smartphones, Mi TV or Redmi TV.

For smartphones:

  1. Open Settings β†’ System β†’ Resetting settings.
  2. Select Reset Application Settings (does not delete data!).
  3. Confirm the action.

For Xiaomi TV:

  1. Go to Settings β†’ Sound.
  2. Select Resetting Sound Settings.
  3. Confirm and restart the TV.

πŸ’‘

Resetting audio settings does not delete your files, but can reset individual equalizer and volume settings.

If the reset didn’t help, try clearing the cache of system applications:

  • πŸ“± On a smartphone: Settings β†’ Warehouse β†’ Clear cache for Mi Music and Media Storage.
  • πŸ“Ί On TV: Settings β†’ Annexes β†’ Application management β†’ Clear the data for TV Music.

Additional measures: check the file system and viruses

Sometimes the cause of spontaneous reproduction are:

  • 🦠 Viruses or malware masquerading as music files.
  • πŸ—ƒοΈ Damaged media files in Music or Downloads folders.
  • πŸ”„ Conflicts between apps (e.g. Mi Music and the likes of the game) VLC).

How to check:

  1. Install an antivirus (such as Dr.Web or Malwarebytes) and scan the device.
  2. Move all music files from the Music, Ringtones, and Downloads folders to another location (e.g. Documents).
  3. Check if suspicious applications are installed in Settings β†’ Apps β†’ Unknown sources.

If the music continues to turn on even after deleting all files and applications, the cause may be a hardware failure (for example, an audio chip malfunction).

Comparison of methods: which way to choose?

Depending on the cause of the problem, the effectiveness of the methods varies.

The cause of the problemRecommended methodDifficultyIs root/ADB required?
Auto-launch Mi Music or SpotifyMethod 1 or 2 (Limitation of Permits)⭐No.
Reproduction when connecting headphonesMethod 4 (Bluetooth/earphone settings)⭐No.
System failure or virusMethod 5 (Settings reset + antivirus)⭐⭐No.
Mi Music is not disabled by standard meansMethod 3 (ADB or custom firmware)⭐⭐⭐Yes.
The problem is Xiaomi TVMethod 5 (resetting sound settings)⭐No.

If you are not sure of the cause, start with Method 1 (disable autostart) and gradually move on to more radical measures.

πŸ’‘

On HyperOS devices (such as Xiaomi 14 or Redmi K70), the paths to settings may differ. If you don't find the right item, search Settings (the magnifier icon at the top).

Frequently asked questions

Why does music turn on on on itself even after all apps are turned off?
Possible causes: πŸ”„ The mediaserver system process automatically scans files. Try restarting the device. πŸ“± A hardware button (e.g. on headphones) may be accidentally pressed. Check the physical condition of the accessories. 🦠 Malware that mimics clicks. Install antivirus and scan the device.
How to remove Mi Music without root rights?
You can't completely remove the system application without root, but you can: Disable it through Settings β†’ Applications (if available); Hide the icon with an alternative launcher (for example, Nova Launcher); Use ADB for deactivation (pm hide com.miui.player command). Complete removal will require unlocking the bootloader and installing custom firmware.
Why is the music switched on again after the MIUI update?
Updates often reset user autorun and permission settings. After the update: Check Settings β†’ Apps β†’ Autorun. Clear the Mi Music and Media Storage cache. Turn off automatic app updates on Google Play. If the problem is repeated, consider rolling back on the previous firmware version.
Can you turn off autoplay only for certain folders?
Yeah, but not through the standard settings: πŸ“ Move music files to a folder with a dot at the beginning of the name (for example,.MyMusic) – system scanners will ignore it. πŸ› οΈ Use a file manager with folder number (such as Solid Explorer) and hide folders from the media scanner. πŸ“ Create an empty.nomedia file in a folder – this will block its scanning. ⚠️ Note: The.nomedia file hides the folder from all media applications, including the gallery.
How to turn off autoplay on Xiaomi TV?
On Xiaomi TVs, the algorithm is different: Open Settings β†’ Sound β†’ Autoplay and turn off the option. Remove or disable the TV Music app in Settings β†’ Apps. Reset the audio settings (see Method 5). If the Bluetooth headphones are problematic, turn them off in Settings β†’ Devices β†’ Bluetooth and reconnect them.