How to change the program to open files on Xiaomi: all ways

Did you download a new file, but Xiaomi's smartphone persistently opens it in an unnecessary app? Or did the system automatically assign a default program that you don't like? This problem is familiar to many users of Redmi, POCO and other devices on MIUI. Unlike "pure" Android, Xiaomi's firmware has its own nuances in managing file associations - and today we'll take them all apart.

In this article, you will find 5 proven ways to change the program to open files โ€“ from standard settings. MIUI We'll also explain why sometimes the system forgets your choices and how to fix them once and for all. APK and multimedia, when MIUI Ignores custom settings due to battery optimization.

Why Xiaomi automatically selects applications for files

MIUI firmware (especially versions 12-15) actively interferes with file processing for three reasons:

  • ๐Ÿ”น Battery optimization: the system blocks background activity of โ€œunnecessaryโ€ applications, resetting their rights to open files.
  • ๐Ÿ”น Advertising integration: in some regions MIUI Promotes its own services (e.g. Mi Video for Video or Mi Music for Audio).
  • ๐Ÿ”น Security:.apk and.exe files are assigned by default MIUI, to prevent the installation of malware.

Android 10+ also introduced Scoped Storage, which restricts applications from accessing files. On Xiaomi, this often results in file associations being reset once the system is updated. For example, if you previously opened a PDF in Adobe Acrobat, after an update, MIUI can reassign this action to Google PDF Viewer.

๐Ÿ“Š What program you most often have to change to Xiaomi?
Music player
Video player
View PDF
Opening APK
Other type of file

Method 1: Change the program through the Open with Menu

The easiest method is to use the context menu of the file, which works for most formats (.jpg,.mp4,.pdf, etc.), but has limitations for system files.

  1. Open Files (standard Xiaomi or Google Files manager)
  2. Find the desired file and make a long press on it.
  3. In the menu that appears, select Open with (or More) โ†’ Open with help).
  4. Slip on the application you want to use once, or select Always for a permanent appointment.

โš ๏ธ Attention: On Xiaomi with MIUI 14+ The option may always be missing for some formats (e.g..apk). In this case, use Method 3 (application settings).

File is not corrupted (try to open in another application)

Appendix installed and updated

APK Installation from Unknown Sources Enabled

Battery optimization for target application disabled-->

Method 2: Configure associations in application parameters

If the context menu does not offer the desired application or does not save the choice, change the settings directly:

  1. Go to Settings โ†’ Applications โ†’ Application Management.
  2. Tap it on. โ‹ฎ (three-point) โ†’ Default applications.
  3. Select a file category: ๐Ÿ“„ Browser - for links http/https ๐ŸŽต Music player - for.mp3,.flac ๐ŸŽฌ Video player - for.mp4,.mkv ๐Ÿ“ฑ Telephone for calls and SMS

Select the desired application from the list.

This method is more reliable than the first, but has a limitation: MIUI There are no separate settings for rare formats (e.g..epub or.mobi) that require Method 4 (ADB-team).

๐Ÿ’ก

If the desired application does not appear in the list, first open the file through this application at least once - the system will add it to the available options.

Method 3: Reset all file associations (if MIUI forgets the choice)

Sometimes MIUI resets after an update or reboot, and this is due to the operation of the com.miui.securitycenter service, which "optimizes" the system, to regain control of:

  1. Go to Settings. โ†’ Annexes โ†’ Application management โ†’ โ‹ฎ โ†’ Resetting application preferences.
  2. This will delete all user associations of files, but allow them to be reassigned without any malfunction.
  3. Repeat Method 1 or Method 2 for the desired formats.

โš ๏ธ Note: Reset also removes: Browser default settings Preferences for phone calls and SMS Permissions for Assistants (e.g. Google Assistant) We recommend taking screenshots of current settings before resetting.

Method 4: Using ADB for Involuntary Assignment (for experienced)

If MIUI ignores your settings (for example, for.apk or.zip), you can apply ADB-This method requires a PC connection, but it's guaranteed to work.

You'll need:

  • ๐Ÿ–ฅ๏ธ Computer with installed ADB Tools
  • ๐Ÿ”Œ USB-cable (preferably original)
  • ๐Ÿ“ฑ On the smartphone included debugging on USB (Settings โ†’ The phone. โ†’ Version. MIUI โ†’ 7 times to tap โ†’ Return to Additional Settings โ†’ Developer parameters)

adb shell cmd role remove-role-holder android.app.role.SUPPORTED_MEDIA_PACKAGES com.miui.video # Delete Mi Video for video


adb shell cmd role add-role-holder android.app.role.SUPPORTED_MEDIA_PACKAGES com.mxtech.videoplayer.pro # Assign MX Player

Full list of roles for different file types:

File typeRole.Example of an application package
VideoSUPPORTED_MEDIA_PACKAGEScom.mxtech.videoplayer.pro (MX Player)
Audio.MUSICcom.spotify.music (Spotify)
browserBROWSERorg.mozilla.firefox (Firefox)
APK-fileINSTALL_PACKAGEScom.android.packageinstaller (Standard Installer)

To find out the package of the desired application, use the command:

adb shell pm list packages | grep "appendix name"
How to find an application package without ADB?
Open Google Play, find the app, and copy its URL. The package will be after id=. For example, for Adobe Acrobat, the package is com.adobe.reader.

Method 5: Using Third-Party File Managers

If standard methods donโ€™t work, install an alternative file manager (e.g. Solid Explorer or FX File Manager) that has its own file association settings that are independent of MIUI.

Instructions for Solid Explorer:

  1. Open the manager and find the file you want.
  2. Put it on the file. โ†’ Open with help.
  3. Select the app and mark Use Always.
  4. In Solid Explorer settings, go to Settings โ†’ File Association and secure the selection.

The advantage of this method is that the manager creates his own rules, which MIUI does not reset after updating, and the disadvantage is that you have to use third-party software for all operations with files.

๐Ÿ’ก

Part-party file managers bypass the limitations of MIUI, but require additional permissions (access to storage, installation of APK).

Frequent Mistakes and How to Avoid Them

Even after you set it up properly, users have problems, and here are the most common ones:

  • ๐Ÿ”„ MIUI Resets settings after rebooting โ†’ Turn off battery optimization for the target application (Settings) โ†’ Battery โ†’ Choice of applications โ†’ No restrictions).
  • ๐Ÿšซ There's no "Always" option for APK โ†’ Use it. ADB (Method 4) or install SAF (Storage Access Framework โ€“ Compatible Manager.
  • ๐Ÿ“ฑ The application does not appear in the list โ†’ Check if it supports the file format (for example, VLC It doesn't open.docx).
  • ๐Ÿ”’ The file does not open even after the program change. โ†’ Remove the application cache (Settings) โ†’ Annexes โ†’ Warehouse โ†’ Clear the cache).

Pay special attention to.apk files: MIUI blocks them from opening through third-party installers (e.g. APKMirror Installer).

  1. Go to Settings. โ†’ Annexes โ†’ Application management โ†’ โ‹ฎ โ†’ Special access โ†’ Installation of unknown applications.
  2. Select your file manager (or browser) and allow APK installation.
Why did all the settings drop after the MIUI update?
This is due to the Scoped Storage mechanism in Android 10+ and the MIUI security policy. After major updates (e.g. MIUI 13 by 14), the system resets all user file associations to prevent conflicts with new resolutions. To avoid this in the future, use Method 4 (ADB) - it binds settings at the system level.
Can I change the link opening program (HTTP/HTTPS)?
Yes, but with reservations. In MIUI, this is done through Settings โ†’ Applications โ†’ Default Apps โ†’ Browser. However, if you choose Chrome or Firefox, some system links (such as those from Mi Account) will still open in Mi Browser. To fix this, disable Mi Browser in the application settings (but this may disrupt some Xiaomi services).
How to return a standard MIUI application to a specific format?
Go to Settings โ†’ Applications โ†’ Application Management, find the current application that opens the file, and tap Open by default โ†’ Clear Settings. After that, the next time you open the file, the system will prompt you to select the program again, including the standard Xiaomi applications.
Why do some formats (such as.mkv) not open in any player?
This is due to the lack of codecs in the firmware. MIUI does not include support for some out-of-the-box formats. Solutions: Install a player with your own codecs (e.g., VLC or MX Player with Custom Codec package). Download the codec separately (e.g., MIUI Codec Pack for Mi Video). Convert the file to a supported format (e.g.,.mp4) using HandBrake.
Can I assign different programs to the same format in different folders?
No, Android (and MIUI in particular) doesn't support file-level contextual associations. The only workaround is to use two different file managers, like Solid Explorer assigning VLCs to the Films folder, and Xiaomi's standard manager Mi Videos to Downloads videos.