Have you ever encountered a situation where your Androidsmartphone automatically opens files or links in unexpected applications - and the message “Always open” appears? This feature, intended for convenience, often becomes a source of irritation: the system persistently ignores your preferences, redirecting .apkfiles to an inappropriate installer, and .pdf to the browser instead of a specialized reader. Worse, sometimes the settings get lost after updates or resets, and regaining control over file associations is not so easy.

In this article we will analyze all possible reasons the problem and offer 5 proven methods its solutions - from standard Android settings to hidden commands for advanced users. You'll learn how to reset associations for specific file types, clear the cache of applications responsible for handling links, and even manually edit system settings (if other methods fail). We will pay special attention to the nuances of Android 12+where Google changed the logic of working with default settings.

We warn you right away: some methods require rights root or work with ADB —but we will explain in detail how to do without them in 90% of cases. If you are ready to take back control of Which application opens your files and when read on.

Why does Android stubbornly open files “always” in one application?

The “Always Open” function (or “Always use this application” on some firmwares) was conceived as a tool for automating routine actions. For example, so that .mp3files are always played in your favorite player, and .docx - in Microsoft Word. However, in practice this system often fails. Here are the main reasons:

  • 🔄 Resetting settings after updating the OS (especially relevant for Android 13/14where Google has tightened its security policy).
  • 📱 Application conflictwhen there are two installers (for example, APKMirror Installer and standard Package Installer) are fighting for the right to open .apk.
  • 🗑️ Damaged cache in the service Android System WebView or Google Play Servicesresponsible for processing links.
  • 🛠️ Manual changes in the MIUI/ColorOS registry (on smartphones Xiaomi, Oppo, Realme), where manufacturers override the standard behavior of Android.
  • 🦠 Viral Softwarewhich replaces file associations to display advertising or redirect traffic.

Interesting fact: on Android 10 and newer Google has introduced a restriction according to which the system can reset user associations for applications that have not been updated for a long time (more than 6 months). This is done for the sake of security, but often leads to unexpected consequences.

⚠️ Attention: If the problem appeared after installing an application from an unknown source, first check your smartphone for viruses using Malwarebytes or Dr.Web Light. Some Trojans specifically manipulate association settings to mask their activity.

Method 1: Resetting associations through standard Android settings

Let's start with the simplest method, which works on all versions of Android without additional tools. You will need:

  1. Open Settings → Applications.
  2. Tap on the three dots (⋮) in the upper right corner and select Default applications (on some firmware — Reset application settings).
  3. Find section Opening supported links or Opening settings.
  4. Select the problematic application (for example, Chromeif it opens everything .pdf) and reset the settings.

On Android 12+ the path may be slightly different:

Settings → Applications → Select an application → Open as default → Reset settings

If the desired section is not there, try an alternative path:

Settings → System → Advanced → Reset settings → Reset application settings

Make sure you have an alternative application installed for opening files (for example FX File Explorer for .apk)

Close all active applications that work with files

Connect to a stable Wi-Fi (after the reset you may need to download updates)

Make a backup copy of important files (association settings do not affect user data, but reinsurance won't hurt)-->

This method will work in 70% of cases, but there are nuances:

  • ❌ It does not help if the problem is caused by a system application (for example, Package Installer on Samsung).
  • ❌ On some firmware (for example, MIUI 14) the "Default Applications" section is hidden - you will need to use ADB.
  • ✅ Works for links (for example, tel:, mailto:) and most file types.

Method 2: Cleaning cache and data of problematic applications

If resetting the settings did not help, the next thing to try is clear cache and data applications that do not process files correctly are most often to blame:

  • 🌐 Google Chrome / Android System WebView (responsible for opening links).
  • 📁 File manager (for example Files by Google or Mi File Manager).
  • 📦 Package Installer (standard APK installer on Samsung/Xiaomi).
  • 📄 Google Drive / Dropbox (can intercept the opening of cloud files).

Instructions:

  1. Go to Settings → Applications → All applications.
  2. Find the problematic application (for example, Chrome) and tap on it.
  3. Select Storage and cacheClear cache.
  4. If that doesn’t help, go back and click Clear data (⚠️ this will delete all application settings, including bookmarks in browser!).

For Android System WebView (which is often to blame for problems with links):

Settings → Applications → Three dots (⋮) → Show system → Android System WebView → Clear cache
⚠️ Attention: On some devices (for example, Huawei without Google Mobile Services) Android System WebView may be disabled or replaced with an analogue from the manufacturer. In this case, look for an application with the name Huawei WebView or HarmonyOS WebView.

After clearing the data, restart the device and check if the problem goes away. If not, go to the next method.

Browser (Chrome, Firefox, etc.)

File manager

APK installer

Other system application

Not I know, but there is a problem -->

Method 3: Using ADB to reset all associations

If the standard methods did not work, you will have to connect Android debugging bridge (ADB). This is a universal method that works even on custom firmware and devices with locked settings (for example, on some models Xiaomi for the European market).

You will need:

  • 🖥️ Computer with installed ADB Tools (or use Platform Tools from Android Studio).
  • 📱 Enabled USB debugging on a smartphone (Settings → About phone → Build number - tap 7 times, then return to Settings → System → For developers).
  • 🔌 USB cable (preferably original).

Steps:

  1. Connect your smartphone to the PC and confirm permission for debugging on the device screen.
  2. Open the command line (Windows) or terminal (macOS/Linux) in the folder with adb.
  3. Enter the command to check the connection:
    adb devices

    The serial number of your device should appear.

  4. Run the command to reset all associations:
    adb shell cmd package reset-preferred-activities

    This command will reset all Always Open settings for all file types and links.

  5. To reset associations only for a specific package (for example, Chrome):
    adb shell pm clear-package-preferred-activities com.android.chrome

After completing the commands, restart your smartphone. Now, the next time you open the file, the system will again ask which application to use.

ADB Command Action When to use
reset-preferred-activities Reset all associations If the problem affects several types files
clear-package-preferred-activities Reset for a specific application If one application is at fault (for example, Chrome)
pm clear <package_name> Full application reset If clearing the cache did not help (example: pm clear com.android.packageinstaller)
⚠️ Attention: On devices with MIUI 13/14 and ColorOS 12+ after executing ADB commands, you may need to additionally reset the settings in the menu Password & security → Authorization & revocation (Security → Authorization and revocation).
What to do if ADB does not see device?

1. Make sure that USB debugging is enabled and you have given permission on the PC.

2. Try a different cable (cheap cables often do not support data transfer).

3. Install drivers for your device (for example, Samsung USB Driver or Xiaomi USB Driver).

4. On Windows, try running adb kill-serverthen adb start-server in the command line.

5. If you are using macOS/Linux, check the permissions of the folder with adb (chmod +x adb).

Method 4: Editing system files (for experienced users)

If you are ready to take drastic measures and you have root access, you can manually edit the files where the associations are stored. This method is risky, but sometimes the only one that works on heavily modified firmware (for example, on some versions of LineageOS or HavocOS).

File associations in Android are stored in two places:

  1. /data/system/package.xml —contains information about preferred actions for packages.
  2. /data/system/users/0/package-restrictions.xml —restrictions for the user (on multi-user devices).

To reset settings:

  1. Install a file manager that supports root (for example, Root Explorer or Solid Explorer).
  2. Navigate to the path /data/system/ and find the file package.xml.
  3. Make a backup copy of the file (copy it to /sdcard/).
  4. Open the file in a text editor and find the lines with <preferred-activity> or <intent-filter>.
  5. Remove blocks associated with problematic associations (for example, for .apk search android.intent.action.VIEW s mimeType="application/vnd.android.package-archive").
  6. Save the file and reboot the device.

Important: even a small error when editing package.xml may lead to system crash. If after rebooting Android does not start, restore the backup copy of the file via TWRP or ADB Sideload.

An alternative method (less risky):

su

rm /data/system/package-restrictions.xml

reboot

This command will delete the restrictions file and reboot the device. by default.

Method 5: Installing an alternative launcher or file manager

If all the previous methods did not work, and the problem only affects certain types of files (for example, .apk or .zip), you can take a workaround - use third-party applicationsthat ignore system associations.

Recommended tools:

  • 📁 File managers:
    • 🔹 FX File Explorer —allows you to manually select an application to open each file, ignoring system settings.
    • 🔹 Solid Explorer —has a built-in viewer for most formats (including .apk as a ZIP archive).
    • 🔹 MiXplorer —supports plugins for opening files without system associations.
  • 🌐 Alternative browsers:
    • 🔹 Firefox Focus —does not save link associations.
    • 🔹 Brave Browser —allows you to manually control the processing of tel:, mailto: and other protocols.
  • 📦 APK installers:
    • 🔹 APKMirror Installer —ignores the system one Package Installer.
    • 🔹 SAI (Split APKs Installer) — supports installation .apkm and .xapk without reference to system settings.

Example setting in FX File Explorer:

  1. Open a file that opens incorrectly (for example, .apk).
  2. In the window that appears, select Always next to the desired application (for example, SAI).
  3. Confirm your selection. Now FX will ignore system settings and use your selection.

Advantage of this method:

  • ✅ Does not require root or ADB.
  • ✅ Works even on locked devices (for example, corporate smartphones with Knox).
  • ✅ Allows flexible management of associations for each file type separately.
⚠️ Attention: On Android 13+ some file managers (for example Files by Google) may block opening .apk due to security policy. In this case, use FX or MiXplorer with the “Show hidden files” mode enabled.
💡

Alternative file managers are the only reliable way to bypass manufacturer restrictions on devices without root (for example, Xiaomi with a locked bootloader).

What to do if nothing helps?

If you We tried all the methods, but the problem remained, perhaps it is related to deeper system failures. Here's what you can do as a last resort:

  • 🔄 Reset to factory settings. This is a radical method, but it is guaranteed to reset all associations. Before resetting, make a backup copy of your data via Google Drive or Swift Backup (required root).
  • 🛠️ Reflashing the device. If the reset does not help, the system partition may be damaged. Install the stock firmware via Odin (for Samsung), Fastboot (for Pixel/Xiaomi) or SP Flash Tool (for Mediatek).
  • 📱 Contact the service center. On some devices (for example, Huawei s HarmonyOS) the logic of file associations is radically different from the standard Android, and without access to service utilities it is impossible to fix the problem.

Before sending the phone in for repair, check:

  • 🔍 Whether the device has viruses (use Kaspersky Mobile in deep scan mode).
  • 📋 Are there device profiles (for example, corporate policies via Android Enterprise) that can block changing associations.
  • 🔧 Is developer mode activated with restrictions (for example, Limit background activity may interfere with resetting settings).

If you suspect that the problem is caused by an OS update, check the support forums for your device (for example, XDA Developers or 4PDAThere are often patches or modified versions of system applications that fix bugs for specific models. associations.

💡

Before resetting to factory settings, try creating a new user in the menu Settings → System → Multiple users. If the problem disappears for the new user, your profile settings are to blame, not the system.

FAQ: Frequently asked questions about fixing “Always open”

Is it possible to reset associations for only one type of file (for example, only for APK)?

Yes. To do this:

  1. Find in Settings → Applications the application that currently opens files of this type (for example, Package Installer for .apk).
  2. Tap on it → Open by defaultReset settings.
  3. Or use the ADBcommand for a specific MIME type:
    adb shell pm clear-package-preferred-activities com.android.packageinstaller

After that, the next time you open .apk The system will ask again which application to use.

Why, after resetting the settings, Android automatically selects the wrong application again?

This happens due to:

  • 🔹 Cache applications — clear the data and cache of the problematic application (see Method 2).
  • 🔹 Manufacturer policies — on Samsung and Xiaomi some system applications have priority. Try disabling them through ADB:
    adb shell pm disable-user --user 0 com.sec.android.app.launcher

    (replace the package with the one that is current for your device).

  • 🔹 OS updates —after major updates, Android can reset user settings “for security.”
How to find out which application is currently opening a certain type of file?

Yes two ways:

  1. Through settings:
    Settings → Applications → Default applications → Opening supported links

    There will be a list of applications and the types of files/links for which they are responsible.

  2. Through ADB:
    adb shell dumpsys package d

    In the output, look for blocks with preferred activities.

For convenience, you can use the application App Inspector (requires root), which shows all associations in the graphical interface.

Will resetting associations delete my data in applications?

No, resetting the “Always Open” settings does not affect:

  • 🔹 User data in applications (saved games, chats, bookmarks).
  • 🔹 Files on the device (photos, videos, documents).
  • 🔹 Account settings (Google, social networks).

However clearing application data (see Method 2) will delete all internal settings of this application (for example, browser history or saved passwords).

Do these methods work on Android Go or devices without Google Services?

Yes, but with reservations:

  • 🔹 On Android Go the path to the settings may differ (for example, Settings → Applications → Application settings → Reset).
  • 🔹 On devices without Google Services (for example, Huawei s HMS) instead of Android System WebView look for analogues from the manufacturer.
  • 🔹 ADB-commands work universally, but on some firmware (for example, HarmonyOS) may require additional flags.

For Huawei without GMS try resetting settings via Huawei Mobile Services:

Settings → Applications → Applications → Three dots (⋮) → Reset application settings