This article explains how to install a custom ROM on a rooted Android device using the popular TWRP recovery. Before you begin, you’ll need a rooted device with an unlocked bootloader. Without both, you won’t get very far and you risk damaging your device.
How to Install Custom ROM with TWRP for Android! [Android Root 101 #3]
Back up everything before you begin. This process will erase your text messages, contacts, settings, and just about everything else. The files on your device should remain, but it’s a good idea to back them up anyway.
Android ROMs are flashed using a system recovery program. The most popular recovery program right now is TWRP, an excellent option with a simple interface and touchscreen support. Before you proceed, install TWRP on your device.
Now that you have TWRP installed, it’s time to start looking for a ROM. If you’re stuck on which one to pick, LineageOS is a great place to start. Head over to the LineageOS download page in your desktop or Android browser.