Setup to Open Links in Apps on Xiaomi: The Complete Guide

Have you ever seen a situation where when you click on a link in a messenger or social network, it opens not in your favorite browser, but in some other application? Or when YouTube links are stubbornly redirected to a mini-player instead of a full-fledged application? On Xiaomi, Redmi and POCO smartphones with a branded MIUI shell, this is especially true β€” the system often ignores the user's default settings. In this article, we will examine all the ways to bring the behavior of links in order, from basic Android settings to hidden MIUI chips and even manual editing of configuration files.

The problem isn't just limited to browsers, like Google Maps links can open in Yandex.Maps, and product links can open in AliExpress instead of Wildberries, and the blame is on MIUI's aggressive policy of trying to "help" the user by automatically selecting apps to open certain types of links, and luckily you have full control over this process - you just need to know where to look for the switches you want.

The MIUI shell has historically been known for its β€œunique” approach to user experience. Unlike pure Android, where the default app selection is strictly regulated by system settings, Xiaomi adds its algorithms:

  • πŸ”„ Dynamic choice of applications: MIUI Analyzes which application you used last to open a particular type of link, and can automatically assign it to a β€œpriority” without your knowledge.
  • πŸ“¦ Pre-installed apps: Mi Browser, Mi Video, or Mi Music often get privileges when processing media links, even if you don’t use them.
  • πŸ”— Specific protocols: Some types of links (e.g. magnet: or tel:) are handled by system services. MIUI, which cannot be disabled by standard means.
  • πŸ“± Regional settings: On devices for the Chinese market (China) ROM) The list of supported protocols may differ from the global version (Global) ROM).

MIUI also actively caches user choices, which means that even if you manually specified your preferred link-opening app, the system may β€œforget” your choices after updating or rebooting, especially on devices with MIUI 12-14, where the algorithms for β€œintelligent” redirection have become even more aggressive.

⚠️ Note: Some Xiaomi models (e.g. Redmi Note 10 Pro) POCO F3) After resetting to factory settings, all user link anchors are reset and the system returns to default behavior. To avoid this, export the settings through Settings before resetting. β†’ Annexes β†’ Application default settings β†’ Export (not available on all versions) MIUI).

Method 1: Set up the default apps in Android

The first and most obvious step is to check the basic Android settings, and although MIUI often ignores them, the right configuration is the basis for further manipulation.

  1. Open Settings β†’ Applications β†’ Application Management.
  2. Slip on the three dots in the upper right corner and select the Default Apps.
  3. Scroll down to Open Supported Links (on some versions of MIUI, this item may be called Link Settings).
  4. Select the link type (such as HTTP or HTTPS) and specify your preferred application (such as Chrome or Firefox).

On devices with MIUI 13/14, the path may be slightly different:

Settings β†’ Applications β†’ Application settings by default β†’ Browser

It is important to understand that this method only works for basic protocols (HTTP/HTTPS, mailto, tel). For specialized links (for example, youtube:// or instagram://) additional actions will be required.

Are the default application settings open?

Is the browser selected for HTTP/HTTPS?

Are your email and tel settings checked?

Is the settings cache reset (reboot of the device)-->

If general settings don’t work, you’ll have to manually specify which app should open certain types of links, especially for media content, maps, or social media.

For example, to open YouTube links in the official app, and not in Mi Video:

  1. Go to Settings β†’ Applications β†’ Application Management.
  2. Find the YouTube app and tap on it.
  3. Select Open by default (or Link Opening Settings).
  4. Activate the Open supported links switch and confirm the selection.

For browsers, the process is similar, but with nuances:

  • 🌐 For Chrome: Enable the option to Open Links from Other Apps in your browser settings.
  • 🦊 For Firefox: additionally check the settings in Settings β†’ About the programme β†’ Open links in Firefox.
  • πŸ” For Mi Browser: Turn off the option Automatic Link Opening in Settings β†’ Additionally.

⚠️ Note: Some Xiaomi firmware (especially in China) ROM) The default opening point may be hidden, in which case, try first to open the desired type of link manually through the target application - the system may suggest making it a priority.

Mi Browser

Google Chrome

Firefox

Other (write in the comments)

I don't know.-->

If MIUI persists in ignoring your settings, you'll have to use ADB (Android Debug Bridge), which allows you to reset all link bindings to factory settings, and then you can reconfigure them.

You'll need:

  • πŸ–₯️ Computer with installed ADB Tools.
  • πŸ“± Included debugging by USB on a smartphone (Settings) β†’ The phone. β†’ Version. MIUI (tap 7 times) β†’ Additional settings β†’ Developer parameters β†’ Debugging by USB).
  • πŸ”Œ USB-cable.

Instructions:

  1. Connect your smartphone to your PC and confirm the debugging permission.
  2. Open the command line (Windows) or terminal (macOS/Linux) and type:
adb shell pm clear-defaults com.android.browser


adb shell pm clear-defaults com.miui.browser




adb shell pm clear-defaults com.android.chrome

Replace com.android.chrome with your browser ID (e.g. org.mozilla.firefox for Firefox).

After you execute the commands, restart the device. Now, the next time you click on the link, the system will prompt you to select an application to open it.

List of identifiers of popular applications
Chrome: com.android.chrome Firefox: org.mozilla.firefox Opera: com.opera.browser YouTube: com.google.android.youtube Google Maps: com.google.android.apps.maps Yandex Maps: ru.yandex.yandexmaps VK: com.vkontakte.android Telegram: org.telegram.messenger

Method 4: Configure with "Special Features" (for power users)

Little-known fact: some of the link opening settings are hidden in the Special Features section, which works on MIUI 12-14 and allows you to bypass the limitations of the standard interface.

Algorithm of action:

  1. Go to Settings β†’ Special Features β†’ Developer Settings (if no, activate Developer Settings as described in Method 3).
  2. Find the option Forced link opening in the browser (in English firmware - Force open links in browser).
  3. Activate it and select the desired browser from the list.

This setting causes MIUI to ignore application bindings and always open web links (HTTP/HTTPS) in the browser of choice, but it does not affect specialized protocols like youtube:// or instagram://.

MethodApplicationLimitationsNeed an ADB?
Default settingsBasic protocols (HTTP, mailto)MIUI can ignore it.No.
Manual assignmentSpecific applications (YouTube, Maps)It doesn’t work for all types of linksNo.
ADB-teamResetting all bindingsRequires PC and debugging over USBYes.
Special facilitiesForced opening in the browserHTTP/HTTPS onlyNo.
Editing by manifest.xmlFull control of protocolsRequires root or patched bootYes.

Method 5: Editing system files (for advanced users)

On devices with unlocked bootloader and root rights, you can manually edit /data/system/users/0/package-restrictions.xml, which stores all link anchors, which is a last resort, but it gives you complete control over the behavior of the system.

Instructions:

  1. Get root access (for example, through Magisk).
  2. Use a root-enabled file manager (such as Root Explorer or Mixplorer).
  3. Go to /data/system/users/0/ and find package-restrictions.xml.
  4. Make a backup copy of it, then open it in the text editor.
  5. Find the strings with the references (e.g. <default-browser package="com.miui.browser"/>) and replace them with the desired values.
  6. Save the file, set the permissions 644, and restart the device.

Example of file content before and after editing:

<!-- Do -->


<default-browser package="com.miui.browser" />




<default-handler package="com.miui.video" type="video/*" />





<!-- After -->




<default-browser package="com.android.chrome" />




<default-handler package="com.google.android.youtube" type="video/*" />

⚠️ Attention: Incorrect editing of this file can cause system failures, up to the point of not being able to open any links.Be sure to back up before making changes and make sure you have access to recovery through TWRP or Fastboot.

πŸ’‘

If you don't have root, but you have an unlocked bootloader, you can use the Magisk App Systemizer module to "embed" the desired application into the system, which will make MIUI treat it as a system and give priority when opening links.

Method 6: Alternative solutions (if nothing helps)

If all of the above methods fail, there are radical or workarounds:

  • πŸ”„ Factory reset: Sometimes it's the only way to return the system to default.Before reset, export important data.
  • πŸ“² Use of alternative launchers: Some launchers (like Nova Launcher or Lawnchair) allow you to flexibly customize link processing.
  • 🌍 Change of the firmware region: Global ROM limitations MIUI less aggressive than in China ROM. To change the region will need to unlock the loader.
  • πŸ› οΈ Custom firmware: Install LineageOS, Pixel Experience or other AOSP-Firmware will solve the problem completely, but it will require technical skills.

For users who don’t want to go into technical details, there’s an easy solution to use link interceptor apps like:

  • Open Link With (allows you to manually select an app for each link).

πŸ’‘

If you often face the problems of opening links to Xiaomi, consider installing custom firmware.This is a radical, but most effective solution that will get rid of all the limitations of MIUI.

Why do the link opening settings reset again after the MIUI update?
This is a well-known MIUI problem – in major updates, the system resets some user settings, including link bindings. To avoid this, before updating: Export default application settings (if available). Back up the package-restrictions.xml file (requires root). Once updated, manually reconfigure the anchors or restore the file. On some firmware, disabling automatic MIUI updates through Settings β†’ About Phone β†’ System Update β†’ Three Points β†’ Update.
How to get links to Instagram to open in the official application, and not in the browser?
To do this: Delete the cache and Instagram app data (Settings) β†’ Annexes β†’ Instagram β†’ Warehouse β†’ Clear cache/data. Open any Instagram link in your browser and select Open in the app (if you request it). Go to Settings β†’ Annexes β†’ Instagram β†’ Open by default and activate all supported link types.If it doesn't work, use ADB-Command: adb shell pm set-app-links --package com.instagram.android enabled
Can I turn off link opening in Mi Browser forever?
Yes, but it will require: Disable Mi Browser via Settings β†’ Applications β†’ Mi Browser β†’ Disable (not available on all firmware). Or delete it via ADB: adb shell pm uninstall --user 0 com.miui.browser Note that on some devices Mi Browser is a system application and its removal can lead to unstable operation.
Why do some links open in mini-apps (e.g., video in a player instead of YouTube)?
This is a feature of MIUI that tries to optimize traffic and resource consumption. To disable: Go to Settings β†’ Applications β†’ Application Management β†’ Three Points β†’ Special Access β†’ Battery Optimization. Find an application that opens mini players (such as Mi Video) and turn off optimization for it. In the settings of a particular application (such as YouTube), turn off the option Easy Mode or Traffic Saving.
How to return the standard link behavior after installing custom firmware?
Nana AOSP-Firmware (e.g. LineageOS or Pixel Experience) link settings work according to Android standards: Go to Settings β†’ Annexes β†’ Default apps. Select the browser you want to open links. For specialized protocols (such as magnet:), use applications like Open Link With. If links still don't open correctly, reset the application settings via ADB: adb shell pm clear-defaults