Installing a custom core on Xiaomi smartphones is one of the most effective ways to make the most of iron, improve autonomy or add unique features that are not available in stock firmware. However, this process requires not only technical skills, but also an understanding of the Android architecture, the features of the Xiaomi bootloader and the potential risks. Unlike simple firmware custom recovery or ROM, working with the core affects low-level components of the system, where an error can lead to a brick (complete inoperability) device.
In this guide, we will analyze the entire process from A to Z: from preparing the device and unlocking the bootloader to choosing the optimal kernel for your model. Xiaomi/Redmi/POCO. We will focus on compatibility issues (for example, why the kernel for Snapdragon) 865 Not suitable for Dimensity 1200), And also tools to roll back changes if things go wrong, and if you're new to Android, start by learning the basics, and without that, installing a custom core can lead to a loss of warranty and data.
1.What is a custom core and why you need it on Xiaomi
The Android kernel is the middleman between the smartphone hardware and the operating system. In Xiaomi stock firmware, it is optimized for stability and compatibility, but often limits the capabilities of the hardware. Cast cores developed by enthusiasts or teams like LineageOS, ArrowOS or FrancoKernel offer:
- π Improved power management β for example, dynamically changing processor frequencies to save power.
- β‘ Productivity - overclocking CPU/GPU, Optimization of the task scheduler (schedutil, performance).
- ποΈ Additional Features: WireGuard support out of the box, KCAL To adjust the color rendering of the screen, Sound Control for audio chips.
- π‘οΈ Security patches for vulnerabilities that Xiaomi doesnβt close in old firmware.
But there is a downside: instability (especially in beta versions of cores), possible problems with Widevine L1 (loss of HD support in streaming services), or broken sensors, such as some POCO F3 models, custom cores break the NFC or IR-blaster.
β οΈ Attention: Installing a custom core will void Xiaomi's warranty and could result in a device lock if you break the bootloader unlock rules.On models with MediaTek (e.g. Redmi Note 11 Pro)+) The process is more complicated due to the closed source driver code.
2.Device preparation: unlocking bootloader and TWRP
Before installing the kernel, you need to unlock the bootloader and install the custom TWRP receivers. This stage is mandatory - you can not flash the kernel without it. The unlock process on Xiaomi is officially supported through the Mi Unlock Tool, but has nuances:
- Mi Account Link: The device must be tied to the Xiaomi account for at least 7 days (some models have 30 days).
- Enable OEM Unlock: In the developer settings (Settings β About Phone β MIUI version β tap 7 times) activate OEM Unlock and USB Debugging.
- Fastboot mode: Connect your phone to your PC, go to fastboot (turn off the device, then press Power + Volβ) and execute the command:
fastboot oem unlockOnce unlocked, install TWRP for your model. Important: only use official builds from twrp.me or trusted sources (such as XDA Developers). Some devices (such as Xiaomi 12T) may require you to disable AVB 2.0 via the command:
fastboot --disable-verity --disable-verification flash vbmeta vbmeta.imgMi Account is linked to the device (minimum 7 days)
bootloader unlocked via Mi Unlock Tool
Installed custom TWRP Recovery
Backup of EFS and data in TWRP
Verified compatibility of the kernel with the Android version and chipset-->
3.Selecting a custom core for your Xiaomi model
Not every core is right for your device.
- π± Model and chipset: Snapdragon 8 Gen 1 (Xiaomi 12) core is not compatible with Dimensity 9000 (Xiaomi 12 Pro).
- π€ Android Version: Cores for Android 12 It may not work on Android. 13/14 due to changes in kernel API.
- π Firmware type: Some cores require MIUI, other β AOSP (For example, LineageOS).
Popular cores for Xiaomi devices:
| Model | Recommended core | Features | Reference (XDA) |
|---|---|---|---|
| POCO F3 / Redmi K40 | FrancoKernel | Optimized for gaming, support for KCAL and WireGuard | Reference |
| Xiaomi 11T Pro | Neon Kernel | Improved heat management, F2FS support | Reference |
| Redmi Note 10 Pro | Stable Kernel | Focus on stability, fixes NFC bugs | Reference |
Critically, check the compatibility of the kernel with your exact firmware version before you run the firmware. For example, the Android 13-based MIUI 14 kernel wonβt work on MIUI 13 with Android 12, even if the device model matches.
Improving autonomy
Increased productivity
Additional functions (KCAL, WireGuard, etc.)
Firmware experiments
Other-->
4. Step-by-step instruction for kernel firmware through TWRP
When the kernel is selected and downloaded (usually in.zip or.img format), we proceed to firmware. Importantly, the process may vary depending on the file format.
Method 1: Firmware ZIP-archive
- Download the kernel in.zip format and move it to internal memory or SD-map.
- Reboot to TWRP (press Power + Vol+ when turned on).
- Press Install, select the kernel file and swipe for confirmation.
- After the firmware, run the Wipe β Dalvik/ART Cache and reboot.
Method 2: Firmware IMG-file (for experienced)
If the kernel is in.img format, it should be flashed into the boot section:
fastboot flash boot kernel.imgFor devices with A/B-partitions (e.g. Xiaomi) 12) use:
fastboot flash boot_a kernel.img
fastboot flash boot_b kernel.imgβ οΈ Note: Some models (e.g. Redmi) K50) Firmware kernel through fastboot without first shutting down AVB You can always check the instructions of the kernel developer!
π‘
If the phone doesnβt boot after the kernel firmware is done, try flashing stock boot.img through TWRP. Often this solves the bootloop problem without losing data.
5. Custom core configuration: key parameters
Once the firmware is successful, the kernel requires fine tuning.
- π± Applications for management: Kernel Adiutor, FrancoKernel Manager or Ex Kernel Manager.
- π§ Parameters CPU: Selection of Governor (ondemand, performance, powersave) and frequencies.
- π Energy management: Thermal-engine settings to prevent overheating.
Example of optimal settings for balancing performance and autonomy on the Snapdragon 870 (POCO F3):
- Governor: schedutil (for CPU) and msm-adreno-tz (for GPU).
- Max. frequency of CPU: 2.8-3.0 GHz (depending on cooling).
- Thermal Throttling: Disable or raise the threshold to 85Β°C.
To apply the settings through Kernel Adiutor:
- Open the application and provide root access.
- Go to the CPU section and select the governor.
- In Thermal, adjust the temperature thresholds.
- Save the profile and restart the device.
What to do if after setting up the kernel phone overheats?
Possible problems and solutions
Even with the right firmware, errors can occur. Consider typical scenarios and how to fix them:
| Problem. | Possible cause | Decision |
|---|---|---|
| Bootloop (Cyclical Reboot) | Incompatibility of the kernel with firmware or incorrect dtbo | Switch to stock boot.img via TWRP or fastboot |
| Wi-Fi/Bluetooth is not working | There are no drivers for your chipset in the core | Return to the drain core or find an alternative assembly |
| Loss of Widevine L1 (No HD on Netflix) | The kernel doesn't support DRM-keynote | Switch to Magisk module for L1 recovery |
| Random reboots | Unstable CPU/GPU settings or kernel errors | Reset the core settings to default or change governor |
If the device does not boot even after running stock boot.img, try:
- Swipe the full stock ROM through the Mi Flash Tool (clean all mode).
- Check the integrity of the dtbo partition β sometimes it will block the download.
- For devices with MediaTek, you may need to flash preloader (risky!).
π‘
If the sound is gone or the sensors are not working after the custom core is installed, it is likely that the core was assembled without the support of your hardware, in which case go back to the stock version or look for alternative builds marked "full drivers support".
7.How to Return the Stock Core and Reverse Changes
If the experiment with the custom core failed, you can return the original in two ways:
Method 1: Through TWRP
- Download the stock firmware for your model from the Xiaomi Firmware Updater website.
- Remove the boot.img file from the archive (usually located in the image folder).
- Swipe it through TWRP to the boot section.
Method 2: Through Fastboot
For devices with blocked TWRP:
fastboot flash boot boot.img
fastboot rebootIf the device is unstable after returning to the drain core (for example, overheats or discharges quickly), perform a full reset via fastboot:
fastboot erase userdata
fastboot erase cacheβ οΈ Note: On some Xiaomi models (e.g. Mi 11 Ultra), returning to the effluent core requires re-locking the bootloader!