How to get Xiaomi to open YouTube links in the app, not in the browser

You clicked on a YouTube link in a messenger or social network, and instead of the usual red logo of the application opened Mi Browser or Google Chrome? This problem is familiar to many owners of Xiaomi, Redmi and POCO smartphones โ€” the MIUI system by default often ignores the default settings and redirects traffic to its own browser. As a result, the functionality of the application is lost: there is no history of views, recommendations and the ability to save videos to playlists.

The reason lies in MIUIโ€™s aggressive link management policy: the system forcibly opens some types of URLs in preinstalled apps, even if the user explicitly chose an alternative, especially YouTube, where Xiaomi is actively promoting its browser and services. Fortunately, the problem can be solved โ€“ and we have collected all the working methods, including hidden settings and workarounds for different versions of MIUI (12 to 14).

Why Xiaomi Ignores YouTube's Default Settings

Unlike pure Android, where the default choice of app is fixed by the system, MIUI uses its own link processing engine.

  • ๐Ÿ”— Priority Mi Browser: In MIUI The logic is that links to videos (including YouTube) are opened by default in the browser, even if the application is installed.
  • ๐Ÿ“ฑ Conflict with the "Light mode": on budget models (Redmi) 9A, POCO M3) Resource saving mode is enabled, which blocks the background operation of applications, including link processing.
  • ๐Ÿ”„ Resetting after update: After major updates MIUI (For example, from 13 to 14), the system resets the links to applications, returning priority to the browser.
  • ๐Ÿ› ๏ธ Restrictions for third-party launchers: If you use an alternative launcher (e.g. Nova Launcher), MIUI may ignore its processing settings URL.

It's important to understand that the problem isn't always with the YouTube app itself, but rather with com.miui.systemAdSolution, which manages traffic redirection, and its behavior depends on regional firmware: on global versions. MIUI (Global ROM) The problem is less common than in China. ROM).

๐Ÿ“Š What version? MIUI You're using it?
MIUI 12
MIUI 13
MIUI 14
I don't know.
other

Method 1: Set up the application by default in the Android menu

The most obvious, but not always working, method is to explicitly indicate YouTube as the default link processing app. In MIUI, this path is partially blocked, but it is worth trying:

  1. In the list, find YouTube and turn on the Open Supported Links switch.

If there's no YouTube item on the list, MIUI has hidden it because of a conflict with Mi Browser, in which case you can move on to the following ways.

Make sure that YouTube is updated to the latest version

Check if power saving mode is on for YouTube

Close all background applications (especially browsers)

Reboot your smartphone before setting up-->

Method 2: Reset application settings (radical method)

If MIUI persists in ignoring your preferences, a complete reset of application settings will help, which removes all user anchors and returns the system to factory link processing settings:

  1. Go to Settings โ†’ Applications โ†’ Application Management.
  2. Slip on the three dots in the top corner and select Reset App Settings.
  3. Confirm action.The system will warn you that will be reset: Default settings for links Permissions for applications Background activity restrictions

YouTube

https://youtu.be/dQw4w9WgXcQ

YouTube

Always.

โš ๏ธ Note: This method will reset all individual permissions for applications (e.g., access to a camera or microphone).

Efficiency of the method: ~85% for MIUI 13-14, ~60% for MIUI 12 (If it doesn't work, move to the method of c. ADB.

Method 3: ADB commands for forced YouTube binding

For advanced users, the most reliable method is manual linking via ADB. This requires connecting a smartphone to a computer, but is guaranteed to bypass the limitations of MIUI.

You'll need:

  • Computer with installed Xiaomi drivers (download from the official website)
  • On-board USB debugging on your smartphone (Settings โ†’ About Phone โ†’ MIUI version โ†’ 7 times tap on version โ†’ go back to Additional settings โ†’ Developer settings)
  • ADB (download as part of Android SDK Platform-Tools)

adb shell pm set-app-links --package com.google.android.youtube --package com.google.android.apps.youtube.music 1


adb shell cmd appops set com.google.android.youtube SYSTEM_ALERT_WINDOW allow




adb shell cmd appops set com.android.browser NO_DEFAULT_BROWSER ignore

After the commands are executed:

  1. Reboot your smartphone.
  2. Open any YouTube link and confirm your choice of application.
  3. Check the work through messengers (Telegram, WhatsApp) โ€“ links should open in the application.

โš ๏ธ Note: On some models (Redmi Note 10 Pro, POCO X3 Pro after teams ADB You may need to disable battery optimization for YouTube: Settings โ†’ Annexes โ†’ Application management โ†’ YouTube โ†’ Battery โ†’ No restrictions.

What if the ADB does not recognize the device?
1. Check if debugging is included on USB (You should be notified when you connect. 2. Try another one. USB-cable (original from Xiaomi). 3. Install drivers manually through Device Manager (select "Update driver" โ†’ "Perform a search on this computer" โ†’ put the folder ADB). 4. Switch the connection mode from "Charging" to "File Transfer" (MTP).

Method 4: Use of alternative launchers

If MIUI stubbornly ignores your settings, you can trick the system with a third-party launcher.Some launchers (like Nova Launcher or Hyperion Launcher) have their own link processing mechanisms that bypass the manufacturer's restrictions.

Instructions for Nova Launcher:

  1. Install Nova Launcher from Google Play.
  2. Make it the default launcher (at the first start, the system will offer a choice).
  3. Open the Nova settings โ†’ Applications and notifications โ†’ Default Apps.
  4. Find YouTube and install it as a link handler.
  5. Return to the basic settings of Nova โ†’ Lab โ†’ Quick commands and add a command to reset the link cache (adb shell pm clear com.android.providers.settings).

LauncherEfficiencyCons
Nova Launcher90%Premium version for some functions
Hyperion Launcher85%A complex setup for beginners
Lawnchair70%Unstable work at MIUI 14
Microsoft Launcher60%Advertising and telemetry collection

Critical nuance: after the update MIUI The launcher may lose control of the links. in this case, repeat the setting or use ADB-Teams from Method 3.

Method 5: Manual file editing default_permissions.xml

For users with unlocked bootloaders and root rights, there is a radical method: editing the system file that handles the links, which is risky (may cause system failure), but it gives 100% results.

Procedure:

  1. Install a file manager with root support (such as Root Explorer or Solid Explorer).
  2. Cross the path. /system/etc/permissions/ and find the file. default_permissions.xml.
  3. Create a backup of the file (copy it in /sdcard/).
  4. Open the file in the text editor and find the lines from android:defaultBrowser.
  5. Replace the value with: <permission name="android.permission.BROWSABLE_CONTENT"> <group gid="media_rw" /> <group gid="sdcard_rw" /> <group gid="sdcard_r" /> </permission>
  6. Save the file, set the rights 644 (rw-r--r---).
  7. Reboot your smartphone.

โš ๏ธ Warning: Incorrect editing of this file can lead to a cyclical reboot of the device.If the phone does not start after the changes, restore the backup through the device. TWRP Or re-sweep the firmware.

๐Ÿ’ก

Before editing system files, check if your Xiaomi model supports official bootloader unlocking on the Mi Unlock site. New devices (released after 2022) may require a wait of 7-15 days to unlock.

Additional Tips for Stable Work

Even after successful setup, links can reopen in the browser to avoid this:

  • ๐Ÿ”„ Turn off Mi Browser Auto Update: Go to Google Play โ†’ Mi Browser โ†’ Disable Auto Update. New browser versions can reset settings.
  • ๐Ÿ“ต Freeze the Mi Browser through ADB: adb shell pm disable-user --user 0 com.android.browser This will completely remove the browser from the list of possible link handlers.
  • ๐Ÿ”‹ Eliminate YouTube from Battery Optimization: Settings โ†’ Annexes โ†’ YouTube โ†’ Battery โ†’ No restrictions.
  • ๐Ÿ”’ Turn off Smart Help in MIUI: Settings โ†’ Special facilities โ†’ Smart help. โ†’ This service sometimes redirects traffic.

If you use a POCO Launcher or MIUI Launcher with widgets enabled, check if they conflict with link processing, for example, the Quick Ball widget can intercept clicks on links.

๐Ÿ’ก

The most stable solution is a combination of Method 3 (ADB) + Method 4 (alternative launcher) that minimizes MIUI interference with link processing.

FAQ: Frequent Questions and Answers

Why do links open again in the browser after the MIUI update?
MIUI resets custom link processing settings in major updates (e.g., 13 to 14).This is due to the System Ad Solution mechanism, which overrides anchorings. Solution: Reset through ADB or reset applications.
There's no way to run the Redmi Note 8 Pro. What do you do?
On older models (Redmi Note) 8/9, Mi 9T) s MIUI 12 and below may require a rollback to an earlier firmware version (for example, with 12.5 on 12.0.3). Alternatively, install custom firmware (Pixel Experience, LineageOS), where there are no restrictions. MIUI.
Can you solve the problem without a computer?
Yes, but with limitations: Use App Cloner to create a duplicate YouTube with different permissions. Install Open Link With from Google Play - this app lets you manually select the handler for each link. Enable developer mode and turn off MIUI Optimization (Settings) โ†’ Additionally. โ†’ Developer parameters โ†’ MIUI Optimization).
Will these methods work on Black Shark?
Black Shark devices use a modified version MIUI (JOYUI), where the link problem is less common. If it's manifested, use it. ADB-Commands (Method 3) or disable Game Turbo โ€“ this service sometimes conflicts with processing URL.
How do you get it back if something goes wrong?
If after the changes, the links stopped opening at all or there were errors: ADB-Method: run adb shell pm clear com.android.providers.settings To edit system files: restore backup default_permissions.xml. In the extreme, make a reset settings (Settings). โ†’ The phone. โ†’ Resetting settings), but it will delete all data.