How to Enable YouTube Background Mode on Xiaomi: All Ways to 2026

Watching locked-screen YouTube videos is one of the most popular features among Xiaomi users, but the standard app blocks playback when the display is turned off. The reasons are simple: saving traffic, copyright protection, and Google's restrictions on free accounts. However, there are several ways to get around these restrictions on MIUI smartphones, from built-in features to third-party utilities.

In this article, we will discuss 7 proven methods, including official settings. MIUI, utilization ADB-commands, alternative players and even hidden YouTube Premium chips (no charge). MIUI 12-15 and models from Redmi Note 10 to Xiaomi 14 Pro. Important: some methods require permission to install from unknown sources or temporary connection to the PC.

1. Enabling background playback through MIUI settings

The easiest way is to use the built-in AutoRun feature in MIUI, which allows some apps to run in the background, but YouTube requires additional setup:

  • ๐Ÿ“ฑ Open the Settings. โ†’ Annexes โ†’ Application management.
  • ๐Ÿ” Find YouTube in the list and tap it.
  • ๐Ÿ”„ Enable the options: "Stop", "Second Start" and "Show notifications".
  • ๐ŸŽต Run the video on YouTube, then lock the screen โ€“ the sound must continue (does not work on all models).

โš ๏ธ Attention: On some firmware MIUI (For example, for the European region, this function can be disabled at the system level.

๐Ÿ“Š What kind of smartphone you Xiaomi?
Redmi Note 10/11/12
Redmi 9/9A/9C
Xiaomi 11/12/13
POCO X3/X4/X5
Other

2.Use of the "Share-in-Picture" mode

MIUI supports Picture-in-Picture (PiP) for some apps, but YouTube blocks it by default.

  1. Open the video on YouTube and click Home (Home button or gesture).
  2. If the video window folds into a small player, then PiP works (relevant to YouTube Premium).
  3. For free accounts: install ReVanced (modified YouTube with PiP support).

๐Ÿ”น Note: On Xiaomi with MIUI 14+ You may need additional permission for the PiP. Go to Settings for this. โ†’ Special facilities โ†’ Picture-in-Picture and enable the option for YouTube.

Make sure multitasking mode is enabled|Update YouTube to the latest version|Allow PiP in the settings MIUI|Reboot the smartphone after the changes-->

3. ADB-commands to unlock background

If the previous methods failed, you can force backup play through ADB (Android Debug Bridge), which does not require root rights, but you need to:

  • ๐Ÿ–ฅ๏ธ Computer with installed ADB-driver.
  • ๐Ÿ“ฒ Included debugging by USB on a smartphone (Settings) โ†’ The phone. โ†’ Version. MIUI โ†’ 7 times to tap the assembly number โ†’ return to Settings โ†’ Additionally. โ†’ For developers โ†’ Debugging by USB).

Next, run commands in cmd (Windows) or Terminal (Mac/Linux):

adb shell settings put global hidden_api_policy 1


adb shell am force-stop com.google.android.youtube




adb shell pm grant com.google.android.youtube android.permission.FOREGROUND_SERVICE

๐Ÿ”น Result: YouTube will play audio in the background after the smartphone reboot.This method works on 90% of Xiaomi devices, but may reset after the update MIUI.

What if the ADB does not recognize the device?
Make sure you have drivers installed for your Xiaomi model (download from the official website). USB-Enable Charge Only and select File Transfer again when you connect. If the problem persists, try another PC or Linux virtual machine.

4. Alternative players with background mode

If standard YouTube stubbornly refuses to work in the background, use the side of the application:

AnnexFeaturesReferenceCons
NewPipeOpen source, no advertising, background playout out of the boxnewpipe.netThere is no official Google account, sometimes it is not
Vanced MicroGModified YouTube with PiP and backgroundrevanced.appRequires manual installation, can be blocked
SkyTubePrivate browsing without a Google account, background modeskytube-app.comThe interface is outdated, there are no functions

โš ๏ธ Attention: Installation APK Before downloading, check the hash of the file on VirusTotal and use only official developer sites.

5. Using a browser requesting a desktop version

The mobile version of YouTube in the browser blocks background play, but the desktop version of this restriction is not.

  1. Open Chrome or Firefox on your smartphone.
  2. Go to YouTube.com.
  3. Press. โ‹ฎ โ†’ Desktop version (in Chrome) or โ‹ฎ โ†’ Request the full version (in Firefox).
  4. Run the video and lock the screen โ€“ the sound will play.

๐Ÿ”น Advice: Add the site to the main screen through โ‹ฎ โ†’ Add to the main screen to quickly open YouTube in desktop mode.

๐Ÿ’ก

If the video in the browser is interrupted when the screen is locked, try turning off the battery saving for Chrome in the MIUI settings (Settings โ†’ Battery โ†’ Charge Saving โ†’ Applications).

6. Setup via Tasker or MacroDroid

For advanced users, automation using Tasker or MacroDroid is suitable, and these applications can emulate taps or block the screen from turning off when playing:

  • ๐Ÿค– Install MacroDroid (free of charge).
  • ๐Ÿ“ Create a macro with the condition: The application is running โ†’ YouTube.
  • ๐Ÿ”ง Add Action: Disable Screen Lock or Emulate Pressing Home".
  • ๐Ÿ”„ Save and test.

๐Ÿ“Œ MacroDroid macro example:

Trigger: Application launched (YouTube)


Condition: Audio is played back




Action: Block the screen off (for 30 minutes)

7. circumventing restrictions via VPN (for some regions)

In some countries (such as India or Turkey), YouTube allows background play for free accounts.

  1. Install a VPN (like ProtonVPN or Windscribe).
  2. Connect to a server in India or the Philippines.
  3. Open YouTube and launch the video โ€“ now it will play in the background.

โš ๏ธ Note: This method may violate YouTube's user agreement, use it at your own risk, and note that playback speeds may be affected by a remote server.

๐Ÿ’ก

The most reliable ways for Xiaomi โ€” ADB-commands and alternative players (NewPipe, Vanced). VPN They are unstable and may stop functioning after updates.

FAQ: Frequent questions

๐Ÿ” Why my Xiaomi doesnโ€™t work in the background even after all the settings?
Probable reasons: You have Chinese firmware MIUI (For example, Xiaomi.eu or Global. ROM Restricted battery optimization enabled for YouTube, YouTube beta installed (roll back to stable) Solution: Try resetting the app settings (Settings) โ†’ Annexes โ†’ YouTube โ†’ Warehouse โ†’ Clear the data or install NewPipe.
๐Ÿ”‹ How the background mode affects battery consumption?
When playing video in the background, Xiaomi consumes 15โ€“25% More power than normal. This is due to: Wi-Fi/It's a mobile Internet for streaming, it's an audio decoder, even when the screen is off, it's a background process. MIUI, Advice: Use the airplane mode. + Wi-Fi to save power if you listen to music without video.
๐Ÿ“ต Can You Listen to YouTube with Screen Off Without Internet?
Yes, but only if you downloaded the video beforehand: In the official YouTube, downloads are available only on Premium subscription. In NewPipe or Snaptube, you can download the video for free (select MP3 or M4A format for audio).
๐Ÿ› ๏ธ Will the settings reset after the update? MIUI?
Yes, some methods (e.g, ADB-commands) may reset after a major firmware update. To avoid problems: Save the command list in your notebook. Use MacroDroid to automatically apply settings after the reboot. MIUI, if stability is critical.
๐Ÿšซ Why YouTube is blocking background playback?
Google restricts background mode for three reasons: Monetization: Premium users pay for background playback; Traffic savings: Background streams consume more data; Copyright: Music labels require listening control. Bypassing these restrictions can result in account bans (rarely) or feature blocking in future updates.