Modern smartphone owners Xiaomi and Redmi often face intrusive advertising in the official YouTube app that interrupts viewing of favorite content. Although Google has officially closed the Vanced project, the community of enthusiasts has created viable alternatives, such as ReVanced and YouTube ReVanced Manager, which allow you to return functionality without unnecessary costs. Installing these modifications on the shell of MIUI or HyperOS has its technical nuances that require careful approach to configuring access rights and versions of components.
Unlike the standard installation APK-The process of implementing a modified client on Xiaomi devices requires prior preparation of the system. You will need not just to download the finished file, but often use a special patcher to build the current version of the application for your processor architecture. This ensures stable operation of the video player, no departures and correct display of the interface in a dark theme, which is critical for the user. OLED-displays.
The challenge is to get the main app and MicroG service right for you to log in to your Google account, and without that, you can watch videos but lose access to subscriptions, history and likes, and in this tutorial, we'll go through every step, from finding proven sources to fine-tuning the battery so that the system doesn't kill the playback in the background.
Preparation of the smartphone and search for sources
The first step before any manipulation of system components is to ensure data security. Since we will install applications from third-party sources, you need to make sure that you have an up-to-date backup of important contacts and files. Xiaomi owners should also check the Android version, as modern patches often require a version of the system at least Android 10, ideally Android 12 or later.
The critical point is to choose a reliable source to download files. There are many fake sites on the Internet offering “hacked” YouTube that may contain malicious code. The only safe way is to use the official GitHub repository of the ReVanced project or a proven ReVanced Manager. APK-This could lead to theft of Google account data.
You will need to free up space in the device’s memory, as the patching process may require several gigabytes of data to be temporarily stored, especially if you decide to back up the original applications. Also make sure that the battery is more than 50% so that a sudden shutdown does not interrupt the installation process of critical components.
Required components and versions
A modified client requires a specific set of software components to work successfully on the MIUI shell. Trying to use older versions of MicroG or incompatible YouTube builds will lead to launch errors, you’ll need: YouTube ReVanced (or patcher), MicroG (Vanced MicroG), and possibly ReVanced Manager for self-assembly.
Youtube versions are specially targeted, and patches are created for a specific version of the original app, and using a newer or older version can cause library conflicts. Usually, current versions are listed in the project channel or in a readme file on GitHub. If you use a manager, he often offers to download the desired version.
☑️ Checklist of preparations
Below is a table of compatibility of the main components for stable operation at the moment. Please note that versions can be updated, so always check the relevance of links.
| Component | Recommended version | Appointment | Source |
|---|---|---|---|
| YouTube ReVanced | The last stable (for example, 17.xx.x) | The main application with patches | GitHub / Telegram channel |
| MicroG | 0.2.22 or later | Authorization of Google account | Official MicroG website |
| ReVanced Manager | Last version | Patching and update | GitHub Releases |
| Gms Core | Current | Replacement of Google Play Services | Built into MicroG |
Step-by-step installation of MicroG and patchers
The installation process begins with the introduction of MicroG services, because without them, the application will not be able to verify the license and authorize the user. Download the installation file VancedMicroG.apk from a trusted source. When you try to install, Xiaomi will issue a security warning – you must click “Still Install” or “Allow” before confirming the action with a fingerprint or password.
Once you install MicroG, launch the app and log in to your Google account. If you log in successfully and you see your subscription list in the MicroG interface, then the component is working correctly. In some cases, you may need to manually issue permissions to access contacts and location, although this is not always strictly necessary for basic functionality.
Then we go to install YouTube itself. If you're using an APK, just install it on top of the original YouTube (pre-deleting the original if versions conflict) or as a standalone app. If you're using ReVanced Manager, the process is more complicated: you need to select the version of YouTube in the manager, download the proposed patches and click the "Patch" button, which can take a few minutes depending on the power of your Redmi's processor.
⚠️ Warning: When you install a patched app, the system may warn you that it is “not verified by Google Play Protect.” This is a normal reaction to a modified signature. Select the “Stay Install” option, otherwise the process will be interrupted.
Permissions and MIUI Battery Optimization
The MIUI shell and the new HyperOS are known for their aggressive energy saving policies, which often kill background processes. To keep video playing when the screen is off (Background Play feature) or when using other applications, you need to manually adjust battery settings. Go to Settings → Apps → All Apps → YouTube (ReVanced).
In the app menu, find Energy Saving and select No Limits mode, a critical step without which the video will stop a few minutes after the screen is turned off, and it is also recommended to enable AutoRun for the app so that it can work properly in the background.
💡
If the video still stops in the background, try also turning off the Memory Cleanup option for YouTube in the MIUI Extended Memory Cleanup settings.
Don't forget to check permissions. Go to Permissions and make sure the app is allowed to display over other windows (Picture-in-Picture) and access storage (for video caching). Without permission to "Above other applications," the Picture-in-Picture feature won't work.
Solving common problems and errors
One of the most common problems is the “Unconnected” error or endless download when you try to log in to your account, often solved by re-authorizing with MicroG or cleaning up the data of the MicroG application itself. Sometimes it helps to delete and re-install MicroG in the right order: first delete YouTube, then MicroG, install MicroG, log in to your account, and only then install YouTube.
Another common problem on Xiaomi is the lack of sound in ads or black screens when switching videos, which may be due to hardware acceleration. Try experimenting with codec switches or disabling hardware decoding in the YouTube settings (under the "General" or "Play"), if this option is available through patches.
What if ReVanced Manager issues a patching error?
If the app crashes immediately after launch, check if you have the original YouTube with the same signature installed. The modified version must have a different packet name or be installed as an update but with a changed signature. 90% of the time, the solution is to completely remove the original YouTube before installing ReVanced.
FAQ: Frequently Asked Questions
Is it safe to use ReVanced with your primary Google account?
Why aren’t comments or likes working?
Can I watch 4K video on Xiaomi?
How to update the app in the future?
💡
The main secret to stable operation is the correct sequence of MicroG installation in front of YouTube and setting “No Limits” for the battery.
In conclusion, installing modified versions of apps is a process that requires minimal technical literacy. However, following this instruction for Xiaomi and Redmi, you can enjoy video without ads, with the screen turned on and with all the features of Premium, free of charge.