You have downloaded file on your smartphone, you try to open it, but the system persistently offers the wrong application or even gives you the error โ€œCould not openโ€? The problem lies in file associations, the mechanism that determines which app will be used to work with a particular format. In Android, this system does not work as obviously as on a PC: there is no single โ€œassociation managerโ€, and the settings are scattered across different menus and depend on the OS version, the manufacturerโ€™s shell, and even the specific file manager.

In this article we will look all methods of managing associations โ€”from basic settings in the interface to advanced methods with using ADB and third-party utilities. We will pay special attention to typical errors: why Android โ€œforgetsโ€ your selections, how to reset associations to factory settings, and what to do if the application you need does not appear in the list of available ones. The material is relevant for devices on Android 8.0 Oreo and newer, including the latest versions Android 14.

What are file associations and why they get lost

File association is the binding of an extension (for example, .pdf, .apk, .mp3) to specific application. When you first open a file of a certain type, Android asks, "Always use this app?" If you agree, the system remembers your choice and automatically launches the selected app in the future. But this mechanism is far from ideal:

  • ๐Ÿ”„ Reset after updates: some applications (especially system ones) after an update โ€œforgetโ€ your settings and ask for a choice again.
  • ๐Ÿ“ฑ Manufacturers intervene: shells MIUI, One UI or ColorOS can be forced assign their applications (for example Xiaomi QuickPic for images).
  • ๐Ÿ› ๏ธ Application conflicts: if two apps claim the same format (for example Chrome and Firefox for .html), the system can behave unpredictable.
  • ๐Ÿ—‘๏ธ Clearing cache/data: after clearing application data (for example, through Settings โ†’ Applications), associations are reset.

In Android 10 and later, Google introduced a limitation: the system can ignore manual associations for "sensitive" formats (for example, .apk or .exe) if the application is not a "trusted" installer. This is a security measure, but it often interferes with users.

โš ๏ธ Attention: On devices with Android Go (light version for weak smartphones), some methods for setting up associations may not be available due to limited system capabilities.

Method 1: Setting up associations through the standard Android menu

The simplest method โ€” use the built-in tools of the system. It works on all devices, but the interface may differ slightly depending on the shell. General algorithm:

  1. Find the file of the desired type in any file manager (for example, Files by Google or built-in My file on Samsung).
  2. Touch the file with one finger (not long press!) - the "Open with..." menu should appear.
  3. Select the desired application from the list and check the box "Always" (or a similar option).
  4. Confirm your selection with "OK".

If there is no "Always" checkbox, it means that an association has already been established for this format, and it must first be reset (more on this in the next section) (for example, Huawei c EMUImenu). "Open with..." appears only after a long press on the file.

Make sure that the desired application is installed|Check if the application supports this file format|Close all background tasks (especially other file managers)|Reboot the device if the associations are not saved-->

Manufacturer Shell Features of setting up associations
Samsung One UI The "Open with..." menu appears when you short click. There is a separate section Settings โ†’ Applications โ†’ Default selection.
Xiaomi/Redmi/Poco MIUI The system aggressively promotes its applications (Mi Browser, QuickPicTo see all the options, click "More..." in the selection menu.
Google Pixel Stock Android The most โ€œcleanโ€ implementation is managed through Settings โ†’ Applications โ†’ Application settings (โš™) โ†’ Reset preferences.
Huawei/Honor EMUI/Magic UI The selection menu appears only after long press. There is a separate "Defaults" section in the application settings.
โš ๏ธ Attention: On some devices (for example, Realme or Oppo) after resetting the associations, the system may automatically assign its applications (File Manager, Music) without the ability to deselect. In this case, only the method with ADB will help (see Method). 4).

Method 2: Reset all associations to factory settings

If the associations are lost or you want to start from scratch, you can reset all settings to factory settings. This will not delete your data, but you will have to re-select applications for each format. data-i="105">Open

  1. Open Settings devices.
  2. Go to section Applications (or Manage applications on MIUI).
  3. Click on the three dots in the upper right corner (or โš™ Settings in One UI).
  4. Select Reset application preferences (on some devices - Reset settings to default).
  5. Confirm the action.

After the reset, the first time you open any file, the system will again ask which application to use. Please note that this method does not delete associations for system applications (for example, Google Play Market will remain a handler for .apk by default).

๐Ÿ’ก

If after resetting the associations are still not saved, try clearing the cache and application data Settings (not to be confused with system settings!). To do this, find it in the list of applications and select Storage โ†’ Clear cache/data.

On devices with Android 12+ after a reset, a notification may appear: "Some application settings have been reset." This is normal - this is the system's way of telling you that you can now re-configure associations.

Method 3: Using third-party file managers

Standard Android tools are not always convenient for managing associations. Third-party file managers, such as Solid Explorer, FX File Explorer or Total Commanderoffer more flexible settings. Let's look at an example. Solid Explorer:

  1. Install Solid Explorer from Google Play and open it.
  2. Find the file for which you want to change the association, and do long press.
  3. In the menu that appears, select Open with....
  4. Press Other applications (if what you need is not in the main list).
  5. Select the app and mark "Always use".

Advantages of this method:

  • ๐Ÿ” A more complete list of available applications (including those that the standard manager does not show).
  • ๐Ÿ“ Ability to mass change associations for a group of files.
  • ๐Ÿ”„ Saving the history of open files and used applications.

Disadvantage: some managers (for example, FX File Explorer) require root access for complete control over system file associations. Without them, you will not be able to change the handler for .apk or .dex.

๐Ÿ“Š Which file manager are you using?
Standard (from manufacturer)
Solid Explorer
FX File Explorer
Total Commander
Other

Method 4: Advanced setup via ADB (for advanced users)

If standard methods do not work (for example, the desired application does not appear in the list or associations are reset after a reboot), you can use ADB โ€”the Android debugging tool. This method requires a connection to a PC and basic knowledge of the command line, but gives full control over associations.

Before you start:

  • ๐Ÿ–ฅ๏ธ Install Android SDK Platform-Tools on your PC.
  • ๐Ÿ“ฑ Enable USB Debugging on the smartphone (Settings โ†’ About phone โ†’ Build number - press 7 times, then return to Settings โ†’ System โ†’ For developers).
  • ๐Ÿ”Œ Connect the device to the PC via USB and confirm trust in the computer.

Basic commands for managing associations:

# View current associations for all formats

adb shell dumpsys package d

Reset all associations to factory ones

adb shell cmd package reset-preferred-activities

Assign a default application for a specific file type (example for PDF)

adb shell cmd package set-home-activity com.adobe.reader/.AdobeReader

To assign a specific application for an extension, you need to know it package name and activity. You can find them using the command:

adb shell pm list packages -f | "application_name"

In Android 11+, Google has limited ADB's ability to manage associations for security reasons. Now some commands (for example, forcing a handler for .apk) may not work without root access.

โš ๏ธ Warning: Incorrect use ADB may lead to system failures. For example, the command adb shell pm clear will delete all application data, including associations. Before experiments, make a backup copy of the data.

Solving typical problems with associations

Even after proper configuration, associations may not work correctly. their solutions:

Problem 1: The required application does not appear in the "Open with..." list

Causes and solutions:

  • ๐Ÿ“Œ The application does not support this format: check the description in Google PlayFor example, VLC opens .mkv, but the standard player does not.
  • ๐Ÿ”ง The application has not registered the intent-filter: some apps (especially beta versions) do not inform the system about supported formats. Try reinstalling the application.
  • ๐Ÿ›ก๏ธ Android 10+ restrictions: for formats .apk, .exe or .bat the list of applications may be limited. Use ADB or SAF (Storage Access Framework).

Problem 2: Associations are reset after application updates

This is typical behavior for system applications (for example, Google Photos or Galaxy StoreSolutions:

  • ๐Ÿ”„ Disable automatic updates for the problematic application in Google Play.
  • ๐Ÿ“ต Install an alternative application (for example QuickPic instead of Google Photos) and make it the default.
  • ๐Ÿ› ๏ธ Use ADB, to force the association (see Method 4).

Problem 3: The system ignores my choice and opens the file in another application

Most often this happens because:

  • ๐Ÿ“ฑ Manufacturer shells: MIUI or ColorOS may force redirection of files to their applications. Try disabling. "Recommendations" in the shell settings.
  • ๐Ÿ”— Links to files: if a file is opened via a link (for example, from Telegram), an application designed to handle links rather than files can be used.
  • ๐Ÿ—‘๏ธ System cache: clear the cache in Settings โ†’ Storage โ†’ Cache data.
How to check which application is actually opening the file?

Open Settings โ†’ Applications โ†’ Recent (or "Recent"). It will indicate which app processed the file. An alternative is to use the command: ADB-command:

adb shell dumpsys activity recents

In the output, find the line with taskId and baseActivity โ€”this will be the application you need.

FAQ: Frequently asked questions about file associations in Android

Is it possible to assign different applications for the same format in different folders?

No, Android does not support contextual associations (for example, open .jpg in Galery from the "Photos" folder, and in Photoshop Express from the "Work" folder). data-i="241">are not saved?

Why after resetting the association settings for .apk not saved?

With Android 8.0, Google has tightened the rules for APK installers. By default, only Google Play Market and Files (from Google) can process .apkTo add another application (for example, APKMirror Installer), need to:

  1. Open Settings โ†’ Applications โ†’ Special access โ†’ Install unknown applications.
  2. Find your application in the list and allow it to install the APK.
  3. Repeat the association selection.
How to make ZIP archives open in WinRAR, and not in the standard manager?

The standard archive manager in Android often cannot work with .rar or multi-volume archives. To force assignment WinRAR:

  1. Install WinRAR from Google Play.
  2. Find any ZIP file and select "Open with โ†’ WinRAR โ†’ Always".
  3. If WinRAR is not appears in the list, clear the cache of the standard archiver (Settings โ†’ Applications โ†’ Archiver/File Manager โ†’ Storage โ†’ Clear cache).

For .rar you may need to additionally allow access to the storage in the settings applications.

Is it possible to export/import association settings when flashing?

There is no direct way, but you can save the list of associations using ADB and restore it after flashing:

  1. Run command: adb shell dumpsys package d > associations.txt (will save the current settings to a file).
  2. After flashing, manually assign associations for critical formats, using the saved file as a reference.

Full automatic import is not possible due to Android security restrictions.

Why some formats (for example .flac or .mkv) do not have associations?

Android by default does not know about "non-standard" formats Solutions:

  • Install an application that supports this format (for example, VLC for .mkv or Poweramp for .flac).
  • After installation, open the file through this application manually - the system will remember the association.
  • If the format is still not recognized, rename the file by adding the extension manually (for example, audio.flac instead audio).
๐Ÿ’ก

If none of the methods helped, check if your device is corporate (managed via MDM). In this case, associations may be blocked by security policies, and they can only be changed through the device administrator.