[Redmi Note 8 Pro Guides, News, & Discussion] Agent_fabulous:
CFW and CFW builds and recoveries

CFW​

[SIZE="+1"]What is a CFW?[/SIZE]

The A10 Custom Firmware, or CFW for short, is a combination of multiple Xiaomi firmware packages.

[SIZE="+1"]Why do I need it?[/SIZE]

You are probably aware of the leaked factory firmware for the Redmi Note 8 Pro. This firmware contains a preloader which was compiled with the download code.

Since the preloader does not need to setup platform security it allows us to unbrick without an authorized account.

Unfortunately, the MIUI bootloader do not run on the factory preloader - only the factory bootloader does, which works just fine with A9 kernels.

Furthermore, the A10 kernel source released by Xiaomi does not work with the factory bootloader/preloader, which was the reason I worked on a new kernel source based on Android 9 (A9) with several Android 10 (A10) drivers to work nicely with the A10 blobs.

In short, the CFW enables you to use the new builds without worrying about bricks while running newer proprietary vendor software.

[SIZE="+1"]What's special about the new builds?[/SIZE]

New builds, tagged "[CFW]", come with their own vendor images. These builds are unified for all variants of the Redmi Note 8 Pro and have pretty much all issues fixed at this point. They ship with the new modified A10 kernel I mentioned earlier.

NOTE: While the builds are unified, the CFW is not. Please flash the correct version of CFW, for your variant

While flashing the wrong CFW is not catastrophic, it may lead to issues such as poor reception.

[SIZE="+1"]What really is inside this CFW?[/SIZE]

The CFW contains firmware files from the latest A9 and latest A10 firmware image. Along with this, the CFW also installs the factory preloader and bootloader (LK) to make sure you're safe when modifying your device.

[SIZE="+1"]How do I install the CFW and builds?[/SIZE]

CFW is a recovery-flashable package. You WILL HAVE TO downgrade to MIUI A9 to flash this since there are no recoveries which work nicely with MIUI A10.

Even though the CFW does install factory preloader and LK, I do highly recommend flashing preloader and LK from fastboot first and then the CFW.

Once you are sure you are running the CFW, simply flash a CFW compatible build. You may also need to update your recovery after installing CFW. See next post for full step-by-step instructions.

[SIZE="+1"]Recoveries? How do those work with CFW?[/SIZE]

Since recovery images also contain their own kernel, there are also CFW compatible recovery images. After installing a CFW, reboot to fastboot and flash any CFW enabled recovery image.

Trying to run a non-CFW recovery on CFW will make it reboot to system or recovery itself after a few seconds of entering recovery. Should you find yourself in a situation like this: as soon as recovery loads, hit [reboot] > [bootloader]. If you cannot do this, flash the new recovery image from SP Flash tools (or wait for your device to drain it's battery out )

See next post for full step-by-step instructions.

[SIZE="+1"]Do I need to flash the CFW everytime?[/SIZE]

Nope. If you flashed CFW once, you're good. Just make sure the ROM you're flashing does not install any firmware images. Ask your ROM developer before installing a zip.

ALL MIUI ZIPS CONTAIN FIRMWARE IMAGES. DO NOT FLASH ON TOP OF CFW

[SIZE="+1"]I'm on CFW and rocking a custom ROM. How do I go back to MIUI?[/SIZE]

Flash a full MIUI Fastboot ROM, or use SP Flash tools to install the flash all MIUI partitions. Again, do not flash a recovery package for switching to MIUI.

See next post for full step-by-step instructions.

[SIZE="+1"]What would happen if I install a non-CFW build on CFW?[/SIZE]

Again, nothing catastrophic. It'll make the device reboot itself a few seconds into the bootanimation. All current non-CFW builds run the A9 kernel code. The new kernel is based on the A9 kernel code as well; some drivers just don't like the new firmware images included in the CFW So, save yourself the trouble and check what you're installing. CFW supported builds are listed in the next post.

[SIZE="+1"]Where can I download the CFW?[/SIZE]

Please see the next post, below.

While the whole CFW thing may seem a bit overwhelming to some, remember, it's something to protect your device in the long run! Take out a few minutes and please read through this post properly.