Xiaomiβs MIUI-based smartphones often automatically assign standard applications to open certain types of files β whether photos, documents or archives. However, embedded programs (such as Files or Gallery) donβt always suit users in functionality or convenience. The question is, how do you reassign these associations to third-party applications like Solid Explorer, FX File Manager or dedicated PDF viewers?
In this article, weβll break down all the ways to change the default apps on Xiaomi β from standard Android settings to hidden features. MIUI, We'll focus on the typical problems of why the system ignores your choices, how to reset associations to factory ones, and what to do if the desired application does not appear on the list of available ones. MIUI (12 to 14) and features of working with files on external drives.
Why Xiaomi automatically selects applications for files
The Android operating system (and the MIUI shell in particular) uses a file association mechanism to simplify the user experience. When you first open a file of a certain format (for example,.pdf or.apk), the system offers to select an application from the list and suggests making it by default. This choice is saved in the settings and applies to all files of this type in the future.
There are several reasons why standard apps can be assigned automatically on Xiaomi:
- πΉ Pre-setting MIUI: The manufacturer pre-associates popular formats (e.g.,.jpg with Gallery,.mp3 with music) to unify experiences.
- πΉ System updates: After major updates MIUI (For example, from 13 to 14) associations can be dropped to factory.
- πΉ Battery Optimization: Some applications lose their default rights after long downtime due to energy-saving mechanisms.
- πΉ Application conflict: If several programs are installed to work with the same format (for example, WPS Office and Microsoft Word for.docx, the system can select the last used.
It is important to understand that MIUI sometimes blocks changing associations for system applications (such as Downloads or Files) and that these cases will require workarounds, which we will discuss below.
Method 1: Change the standard application through Android settings
The most obvious and universal method is to use Android built-in tools, which works on all versions of MIUI (12 to 14) and does not require superuser rights.
- Open Settings β Applications β Application Management.
- Slip on the three dots in the upper right corner and select the Default Apps.
- In the list, find the category you want to change (for example, Browser, Gallery or Music Player).
- Choose the app you want from the one you want. If the app isn't on the list, install it from Google Play first.
Please note: some categories (such as Phone or Messages) may be blocked for change on Xiaomi due to MIUI policy.
Make sure the right application is installed|Check the version. MIUI (Settings β The phone)|Close all open files before changing|Restart your phone after changing the application by default-->
If after changing the settings, the system continues to open files with the old application, try the following steps:
- π Clear cache: Go to the settings of the application that should open files, and click Clear cache.
- π Reboot: Sometimes changes only apply after the device is rebooted.
- π Resetting Associations: The Appβs default menu has the option to Reset App Settings (password may be required).
π‘
If you often work with archives (.zip,.rar), install ZArchiver or RAR and assign them by default. This will speed up the decompression of files directly from the file manager.
Method 2: Reassigning through the context menu of the file
A faster way to change an application for a specific file type is to use the context menu when you open it, which is convenient if you only need to reassign one format (like.pdf) without affecting the rest.
Algorithm of action:
- Open any file of the desired format through Files or other manager.
- When the Open with... window appears, select Always (or Use by default) and specify the application you want.
- If the window doesnβt appear, press your finger on the file β Open with the help β select the program and mark Always.
On MIUI 14, this method may not work for system formats (e.g.,.apk will always open through the Packet Installer), and some applications (e.g., Google Drive) block the ability to become standard for certain file types.
| File format | Standard MIUI application | Recommended alternative |
|---|---|---|
| .jpg, .png | gallery | QuickPic, Simple Gallery |
| .mp3, .flac | Music. | Poweramp, VLC |
| Reading (MIUI) | Foxit PDF, Adobe Acrobat | |
| .apk | Packet installer | SAI (Split APK Installer) |
| .zip, .rar | Files (built-in archiver) | ZArchiver, WinZip |
Important: On Xiaomi with MIUI 13+, some formats (such as.xapk) may not appear in the default file manager, requiring you to display hidden files or use third-party applications like Total Commander.
Method 3: Using ADB to reset associations
If standard methods donβt work (e.g., the system ignores your choices or the application you want isnβt listed), you can use ADB (Android Debug Bridge), which requires connecting your phone to your computer, but doesnβt need root rights.
Step-by-step:
- Install ADB Tools on your PC and enable USB Debugging on your phone (Settings β About Phone β MIUI Version β 7 times tap on version β Return to Additional β For Developers).
- Connect the phone to your computer and confirm the debugging permission.
- Open the command prompt (or Terminal on Mac/Linux) and type:
adb shell pm clear-package-preferred-activities com.android.fileexplorer
adb shell pm clear-package-preferred-activities com.miui.galleryThese commands will reset the associations for embedded Files and Gallery. For other applications, replace the packets:
- π com.android.browser - browser
- π΅ com.miui.player - Music player
- π com.miui.pdf - viewer PDF
After you execute the commands, restart your phone. When you open the file, the system will again prompt you to select the default application.
What if the ADB does not recognize the device?
Method 4: Setup through third-party file managers
Some advanced file managers (such as Solid Explorer or FX File Manager) have built-in tools to manage file associations, which is handy if you prefer not to use MIUI system settings.
Example for Solid Explorer:
- Open the app and go to Settings β General.
- Find the File Association section (or Open Files).
- Select the formats you want to assign Solid Explorer to by default (e.g.,.txt,.csv).
- Confirm the selection and restart the manager.
The advantage of this method is that it can flexibly configure file opening directly from the manager interface without digging into system settings, but some formats (such as.apk) can still be opened through system applications due to the limitations of MIUI.
π‘
Partition file managers often offer more options for working with associations than standard Android settings. For example, in FX File Manager you can assign different applications for file subcategories (for example, separately for.mp4 and.mkv).
Problem Solving: Why Changes Are Not Applicable
Sometimes, even after changing the application by default, MIUI continues to open files through old programs.
β οΈ Attention: If you are using MIUI 14 based on Android 13+, Some system applications (such as Files or Gallery) can automatically restore their rights after updates, in which case only disabling automatic updates for these applications in Google Play will help.
| Problem. | Possible cause | Decision |
|---|---|---|
| The application does not appear in the selection list | The program is not declared as a handler of this format in AndroidManifest.xml. | Install an alternative application (e.g. Total Commander instead of FX File Manager) |
| Changes are reset after rebooting | Conflict with battery optimization or MIUI upgrade | Add the app to power saving exceptions (Settings β Battery β Battery Optimization) |
| Files on SD-The map is opened by the wrong application | Different settings for internal and external memory | Reassign associations separately for files on the memory card |
| The system ignores the choice for.apk | MIUI security restrictions | Use SAI or disable signature verification in developer settings |
If none of the methods worked, check:
- π οΈ Version MIUI: There may be bugs with associations on beta versions of the shell. Check for updates in Settings β The phone. β Updating the system.
- π οΈ Application Conflict: Remove duplicate programs (for example, if two programs are installed) PDF-reader).
- π οΈ Application Rights: Go to the settings of the program you want and check that it has access to the storage (Settings) β Annexes β Permits).
Method 5: Changing root rights associations (for advanced ones)
If you have root access on your Xiaomi, you can manually edit the system files that are responsible for the associations, a risky method (may cause the system to run in an unstable way), but it gives you complete control.
Instructions:
- Install any root conductor (e.g. Root Explorer or FX File Manager with root access).
- Go to /data/system/users/0/ and find mimeTypes.xml.
- Make a backup copy of the file (copy it on the SD-map).
- Open mimeTypes.xml in the text editor and find the lines with the desired extensions (for example, <item name="application/pdf" type="com.miui.pdf" />).
- Replace the application package (com.miui.pdf) with your program package (e.g. com.adobe.reader for Adobe Acrobat).
- Save the file, reboot the phone.
β οΈ Attention: Incorrect editing mimeTypes.xml It can cause system applications to crash or you canβt open any files.Be sure to back up the file before making changes and make sure you have access to recovery to recover.
Alternative way with root:
su
pm clear com.android.providers.mediaThis command will reset all file associations to factory settings, after which you can reassign them.