Reverting to MIUI

So you found an unfixable issue, found no use in a Custom ROM, or are trying to troubleshoot a problem and you want to start from scratch to fix possible issues. This guide will help you do just that!

Prerequisites

Steps

And congrats! You are now ready to lock the bootloader by going to Options>Advanced Options>Developer options (when enabled by clicking MIUI version in About phone numerous times) and locking it by toggling OEM Unlocking to off.