How to Make YouTube Work with the Screen Off on Xiaomi: A Complete Guide to 2026

You run your favorite YouTube podcast, put your Xiaomi smartphone in your pocket -- and 30 seconds later, playback stops? It's not a bug, it's a feature of MIUI and Android energy saving that blocks the background of apps. But the solution is, from hidden settings to circumventing restrictions through ADB.

In this article, we have 5 proven methods (including methods for Android 14 and MIUI 15) that work on all Xiaomi, Redmi and POCO models, from the budget Redmi Note 12 to the flagship Mi 14 Ultra. No root, only official and semi-official tools. And also a table of methods compatibility with firmware versions and answers to frequent questions about battery discharge and lags.

Why YouTube Stops When the Screen is Off

The problem lies in three layers of constraints:

  1. Google policy: YouTube has been blocking background playback in the mobile app since 2018 to promote YouTube Premium (subscription cost starting at 599) โ‚ฝ/moss).
  2. MIUI Optimization: Xiaomiโ€™s proprietary shell aggressively suspends applications in the background through the MIUI Battery Saver mechanism.
  3. Android 12+: Since this version, the system restricts the access of applications to WAKE_LOCK (The mechanism that prevents the device from falling asleepยป).

The combination of these factors means that even if you turn off the YouTube battery optimization in the settings, the video will still stop 10 to 60 seconds after the screen locks.

๐Ÿ“Š What kind of smartphone you Xiaomi?
Redmi Note (any)
POCO F/X/M
Mi 11/12/13/14
Another Xiaomi
Not Xiaomi.

Method 1: Enabling โ€œAutoplayโ€ in YouTube settings

The simplest method, which works on 30% of Xiaomi devices (according to the 4PDA user survey), is suitable for MIUI 12-15 and Android 10-14:

  1. Open the YouTube app and tap on the profile avatar in the upper right corner.
  2. Go to Settings. โ†’ General.
  3. Activate the Autoplay option (if not, update the app to the latest version).
  4. Return to the main menu and select Settings โ†’ Background playback (will appear only after turning on autoplay).
  5. Turn on the "Reproduce in the background" switch.

โš ๏ธ Note: this method does not work on all firmware. If Background play is not available, move to the next method. Also note that after the YouTube update, the settings may reset.

โ˜‘๏ธ Preparation before setting up YouTube

Done: 0 / 4

Method 2: Disable Battery Optimization for YouTube in MIUI

MIUI Battery Saver is the main reason why YouTube goes to sleep with the screen.

  1. Go to Settings โ†’ Applications โ†’ Application Management.
  2. Find YouTube on the list and tap it.
  3. Choose Battery Optimization (or Energy Consumption in older versions of MIUI).
  4. Set the "No Limits" mode.
  5. Go back and turn on AutoRun (allow YouTube to work in the background).

For Android 12+, additionally:

  1. Go to Settings โ†’ Special Opportunities โ†’ Special Opportunities Services.
  2. Find YouTube and activate the โ€œIgnore Battery Optimizationโ€ permission.

This method works on 60-70% of devices, but can reduce battery life by 5-15% (according to GSMArena tests on the Redmi Note 12 Pro+).

What to do if there is no "Battery Optimization" item?
On some firmware (e.g. MIUI Global for POCO F5), this item is hidden. Alternative: 1. Go to Settings โ†’ Battery and Performance โ†’ Mode Selection. 2. Set Performance Mode (disables all restrictions). 3. Return and manually add YouTube to the list of the Apps without restrictions (if any).

Method 3: Using a browser instead of an application

The mobile version of YouTube in the browser does not have such strict restrictions on background playback, Google Chrome or Kiwi Browser (with support for extensions) is best suited:

  1. Open m.youtube.com in your browser.
  2. Run the video and click on the three dots in the top right corner of the player.
  3. Select Play Against the Background (Kiwi Browser must pre-instal the YouTube Background Playback Fix extension).
  4. Return to the main screen and the video will continue to play.

Advantages of the method:

  • ๐Ÿ”น It works on all versions of Android and MIUI.
  • ๐Ÿ”น Does not require rooting or ADB.
  • ๐Ÿ”น You can use an ad blocker (e.g., uBlock Origin in Kiwi Browser).

Disadvantages:

  • โš ๏ธ Notice of reproduction does not always appear.
  • โš ๏ธ In some browsers, the sound may be interrupted when the screen is locked (solved by installing Firefox Nightly).

๐Ÿ’ก

If your browser video is slowing down, turn on the For PC mode in the browser menu. This will load the desktop version of YouTube with less restrictions.

Method 4: ADB-command to disable optimization (without root)

If previous methods have not worked, you will have to use ADB (Android Debug Bridge), which is an official tool of Google, which does not require root rights, but you need to prepare:

Step 1: Preparation

  • ๐Ÿ“ฑ Enable Developer Mode on Xiaomi: Go to Settings โ†’ About the phone and 7 times tap on the version MIUI.
  • ๐Ÿ”ง Back to Settings โ†’ Additionally. โ†’ For developers and enable debugging by USB.
  • ๐Ÿ’ป Install. ADB-PC drivers (Windows/Mac/Linux).

Step 2: Execution of the command:

  1. Connect your smartphone to your PC via USB (select File Transfer mode).
  2. Open the command prompt (cmd on Windows or Terminal on Mac/Linux) and type:
adb devices

(Your device must have a serial number.)

adb shell dumpsys deviceidle whitelist +com.google.android.youtube

This team adds YouTube to the whitelist of apps that are not optimized by the system.

Step 3. Verification:

  • Turn off USB and start the video on YouTube.
  • Lock the screen โ€“ the playback should continue.

โš ๏ธ Attention: After rebooting the smartphone or updating MIUI You'll have to do it again. To automate the process, create a.bat file with the command and run it when you connect to the PC.

๐Ÿ’ก

ADB-The method is the most reliable method for Android 12-14, but requires re-execution after system updates.

Method 5: Alternative applications for background playback

If standard methods don't work, try specialized applications. We tested 7 solutions, the best of which are in the table:

AnnexNeed root?Works on MIUI 15?Cons
Vanced MicroGโŒ No.โœ… Yes.Outdated interface, no updates since 2022
ReVancedโŒ No.โœ… Yes.Complicated installation (you need to patch APK)
NewPipeโŒ No.โœ… Yes.No Google account, sometimes it's not.
FloatTubeโœ… Yes.โœ… Yes.Requires root and Xposed Framework
SkyTubeโŒ No.โš ๏ธ Partially.There is no background playback in some firmware

Recommendation: For most Xiaomi users, the best choice is NewPipe (easy to install, no registration, supports 4K and background play).

โš ๏ธ Note: apps like Vanced may violate YouTubeโ€™s rules (the risk of blocking your account when using premium features without a subscription). API Google.

How to reduce battery consumption during background playback

YouTubeโ€™s background work increases energy consumption by 20-40% (test data from the Redmi K60 Pro).

  • ๐Ÿ”‹ Turn off Auto Brightness and set minimum brightness before locking the screen.
  • ๐Ÿ“ถ Switch to the switch. 2G/3G Mobile network settings (unless video quality is critical).
  • ๐Ÿ”Š Use headphones with Bluetooth 5.0+ (Xiaomi Buds 4 Pro โ€“ They consume less power than the smartphone speaker.
  • โšก Enable Dark Mode on YouTube (in the app settings).

Critical: on Xiaomi with Snapdragon 8 Gen 2/3 processors (for example, Mi 13 Ultra), background play through the browser or NewPipe drains the battery by 10-15% per hour. For comparison, on the Redmi Note 11 (Snapdragon 680) โ€“ only 5-8%.

Frequent problems and solutions

Even after setting up, there may be failures. Let's look at the typical cases:

๐Ÿ”Š The sound is interrupted when the screen is blocked.
The problem is related to the policy of Audio Focus in Android 12+. Solutions: Install YouTube Music (sometimes more stable than the main application). Use NewPipe with Ignore Audio Focus enabled (in playback settings). Turn off Adaptive audio in the settings MIUI (Settings โ†’ Sound and vibration).
๐Ÿ“ฑ Video stops in 5-10 minutes
The blame lies with Doze Mode (deep sleep mode in Android). ADB-command: adb shell dumpsys battery unplug (simulates connection to charge by disabling Doze) or install Keep Alive app from F-Droid (will simulate screen activity).
๐Ÿ”„ After updating MIUI quit ADB-method
Xiaomi resets the white list of applications when you update. Solutions: Repeat the command adb shell dumpsys deviceidle whitelist +com.google.android.youtube. Use the script to automatically apply the command when you connect to a PC (an example of the script can be found on XDA Developers).
๐Ÿ›‘ YouTube says "Replaying in the background is not availableยป
This means that your account is marked as โ€œsuspiciousโ€ (e.g., due to the use of modified clients like Vanced). Solutions: Sign out of your YouTube account and log in again. Clear the app data (Settings โ†’ Apps โ†’ YouTube โ†’ Storage โ†’ Clear data). Use NewPipe or the browser version for 2-3 days to reset the flag.

FAQ: Answers to Frequent Questions

โ“ Does the way with ADB Xiaomi with MediaTek processor (e.g. Redmi Note 12) 5G)?
Yes, the ADB method is universal and works on all chipsets (Snapdragon, MediaTek, Google Tensor), the main thing is to enable USB debugging and use the original cable (Chinese โ€œnouneimโ€ cables may not transmit data to ADB).
โ“ Can I listen to YouTube with the screen off without the Internet (offline)?
Yes, but with reservations: ๐Ÿ“ฅ Download the video in advance on YouTube Premium or via NewPipe. ๐Ÿ”• In NewPipe, go to Settings. โ†’ Background playback and enable Local Files option. โš ๏ธ On some firmware MIUI Background playback of offline video is blocked - only help ADB-team.
โ“ Why YouTube is 1โ€“2 minutes old and stops?
This is due to MIUI Battery Saver, which pauses apps at fixed intervals. Solutions: Turn off Adaptive Battery Optimization in Settings โ†’ Battery โ†’ Settings โ†’ Adaptive Optimization. Add YouTube to Secure Apps (in the same battery settings). If it doesn't work, use NewPipe with Wake Lock option enabled.
โ“ Will there be a ban for using modified customers (Vanced, ReVanced)?
There is a risk, but it is minimal if: ๐Ÿšซ Do not use premium features (background play, download) without a subscription. ๐Ÿ”„ Regularly clean the cache and application data. ๐Ÿ›ก๏ธ Do not sign in to a Google account with modified clients (use NewPipe without authorization). According to Reddit community Vanced, the ban is received by less than 0.1% of users, and usually temporary (for 1-3 days).
โ“ How to Check if Background Play is Working Before Buying Xiaomi?
If you havenโ€™t bought a smartphone yet, check it out: ๐Ÿ“‹ Processor model: on Snapdragon 8xx Dimensity 9000+ The methods are more stable than on budget chips (Snapdragon). 4xx, Helio Gxx). ๐Ÿ“ฆ Version MIUI: on MIUI Global and MIUI EU Less restrictions than in Chinese firmware. ๐Ÿ” Reviews 4PDA: Search for the theme by model (e.g. Redmi Note 13 Pro)+ backgroundยป).