Have you ever encountered a situation where Xiaomi (or Redmi/POCO) all links from instant messengers, emails and social networks stubbornly open in the standard MIUI Browser browser - despite the fact that you prefer Chrome, Firefox or Brave? - This is not a coincidence, but a feature of the MIUI firmware that aggressively promotes its own services. Fortunately, you can circumvent this limitation in several ways - from simple settings to technical tricks with ADB.
In this article, we will discuss 5 working methods, including hidden Android settings, using third-party utilities and even editing system files (for advanced users). All instructions are tested on Xiaomi 12T Pro, Redmi Note 11 and POCO F5 devices with MIUI 13/14 and Android 12/13, but will also be suitable for other models of the brand.
Before you start, check your firmware version in Settings โ About Phone โ MIUI. If you have MIUI 12.5 or later, some of the methods may not work due to tightening security policies, in which case, look for alternative solutions in the last sections.
1. Setting up the browser by default via the Android menu
The most obvious way is to specify your preferred browser in your system settings, which unfortunately doesnโt always work on Xiaomi: MIUI often ignores the userโs choice for certain types of links (e.g., from Telegram or WhatsApp), but itโs worth starting with.
Open Settings โ Applications โ Default Applications โ Browser. Here you will see a list of installed browsers. Choose the desired one (for example, Google Chrome) and confirm the choice. If the option is inactive or absent:
- ๐ Check if the browser is installed from Google Play (not a web browser like Opera Mini).
- ๐ฑ Restart your phone โ sometimes changes only apply after a reboot.
- ๐ซ Remove updates for MIUI Browser in Settings โ Annexes โ Application management โ MIUI Browser โ Remove updates.
An important nuance: even after changing the default browser, some applications (such as Facebook or VK) can ignore settings and open links in the built-in web browser. This is because social networks use WebView instead of an external browser. The solution - read the next section.
๐ก
If, after changing your browser, links still open in MIUI Browser, try clearing the cache and data of the application that sends links (for example, Telegram). To do this, go to Settings โ Applications โ [Messenger Name] โ Storage โ Clear cache / Clear data.
2.Use of WebView to Force Link Opening
Android WebView is the system component that is responsible for displaying web content within applications. Xiaomi uses MIUI WebView by default, which redirects all links to the standard browser, the solution is to replace it with Google WebView or an analogue from your preferred browser.
Do the following:
- Install Google WebView from the Play Market.
- Go to Settings. โ Annexes โ Application management โ Three points (โฎ) โ Show system-based โ Android System WebView.
- Click Disable (if the option is active) or Remove Updates.
- Activate Google WebView in the same menu.
For browsers like Firefox or Brave, an additional step may be required: install their versions of WebView (like Firefox Focus or Brave Browser: Private Web Browser) and select them in the default settings.
Why does MIUI ignore browser choices?
3. ADB-commands for forced browser change
If standard methods don't work, you'll have to use Android Debug Bridge (ADB), which requires you to connect your phone to your computer and enable USB debugging, but it's 100% effective. Attention: improper use of ADB can disrupt your system. Follow the instructions carefully.
Preparation:
- Turn on Developer Mode: Go to Settings โ About Phone and click on MIUI Version 7 times.
- Return to Settings โ Additional โ For developers and activate Debugging over USB.
- Connect your phone to your PC, confirm your trusted device, and install ADB Tools.
Now run in the command line (or Terminal on Mac/Linux):
adb shell pm clear --user 0 com.android.browser
adb shell cmd package set-home-activity com.android.chrome/com.google.android.apps.chrome.MainReplace com.android.chrome with your browser package:
- ๐ Firefox: org.mozilla.firefox
- ๐ฆ Brave: com.brave.browser
- ๐ต Microsoft Edge: com.microsoft.emmx
Developer mode is on
USB debugging activated
Installed ADB drivers on PC
The phone is connected via the original cable (not charging!)
-->
Warning: After executing commands, some system applications (such as Mi Video) may not work properly.
adb shell cmd package reset-home-activity4. Third-party utilities for link forwarding
If ADB seems too complex, you can use specialized applications that intercept Android intention messages and redirect them to the browser you choose.
| Annex | Pluses | Cons | Reference |
|---|---|---|---|
| Better Open With | Flexible rules for different types of links, no root | Paid version for advanced functions | Play Market |
| Intent Intercept | Shows all intents in real time, free of charge | A complex interface that requires knowledge | Play Market |
| Link Bubble | Opens links in a floating window, supports gestures | Not updated since 2019 | Play Market |
For example, in Better Open With, you can create a rule: "All links from Telegram open in Chrome."
- Open the app and click Add the rule.
- Select a source (e.g. Telegram).
- Please specify the target application (Chrome).
- Save and test by sending yourself a link.
Restriction: Some apps (like Instagram) block link interception due to security policies, in which case only ADB or manual copying of the link will help.
๐ก
Third-party utilities are the safest way to go, but they can conflict with MIUI optimization. If after installing such software, the phone starts to brake, clear the cache in Settings โ Applications โ [Utility name] โ Storage.
5. Editing system files (for advanced)
If none of these methods worked, the last resort is manual editing of packages.xml, which stores the intent filter settings, which requires root rights and can cause the system to fail. Backup before you start!
Instructions:
- Get root access (for example, through Magisk).
- Use Root Explorer or ADB Shell to open the file: /data/system/packages.xml
- Find a line from com.android.browser and replace it with your browser package (e.g. com.android.chrome).
- Save the file and restart the phone.
Example of a section of code before and after editing:
<package name="com.android.browser" ... >
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="http" />
<data android:scheme="https" />
</intent-filter>
</package>Replace com.android.browser with com.android.chrome (or another browser).
โ ๏ธ Attention: incorrect editing packages.xml This can lead to a bootloop. If you're not sure about your abilities, use it. ADB-sectional 3.
6.Alternative solutions: cloud browsers and virtual machines
If all of the above methods didnโt work (for example, on enterprise devices with limited rights), consider non-traditional approaches:
- ๐ฅ๏ธ Cloud browsers: services like BrowserStack or LambdaTest allow you to open links in a remote browser through a web interface.
- ๐ฅ๏ธ Virtual machines: applications such as UserLAnd or Termux X11 You can run Firefox in an isolated environment.
- ๐ Redirection through QR: Copy the link, generate the link QR-code (e.g. in Google Lens) and scan it in the right browser.
For UserLAnd, the instructions are as follows:
- Install UserLAnd from the Play Market.
- Select the Ubuntu distribution and install it.
- In UserLAnd, do sudo apt update & & sudo apt install firefox
- Run Firefox via VNC or X11.
This solution is suitable for rare cases when you need to open a link in a "clean" browser without MIUI surveillance.