Installing Lineage OS is somewhat similar to how we used to Install CyanogenMod ROM’s. But worry not! here is the detailed guide on how you can install Lineage OS ROM on your device and resources to help you through the process.
The new Lineage OS is born, to take place of CyanogenMod. Read the shutdown news here and here. The news is cyanogen is pulling their support from the open source project known as CyanogenMod. The developers will continue what they started, stated here. To remember the new name here is a trick — line-age, pretty simple. The lineage OS team is looking for infrastructure to host official builds and updates, and they may announce a news in the next week about the same. If you’re still wanted to make a ROM from the Lineage source check the below section. The source code is moved from github/cyanogenmod to github/lineage, as the older won’t be updated.
Lineage OS Download Links are here (Also after this section links are available)
Table of Contents,
How to install Lineage OS with TWRP
For ease, we’ve divided the process into some segments, but before that here are details of what you need.
- A Phone with unlocked bootloader – to install a custom recovery or root.
- A custom recovery is required to flash Lineage OS zip file, such as “TWRP” recovery.
1. Unlocking Boot-loader
First, check whether your phone’s bootloader is locked or not. To do that download the Adb & fastboot file for Windows / Mac / Linux, extract the file and do the following. Some phone like, OpenPlus or Redmi note 4 comes with locked bootloader while some come unlocked, so it depends on which device you have.
Note: if you have a Xiaomi Phone use this guide instead to unlock bootloader.
Download the fastboot zip on your computer, extract it and open the folder and then press Shift button + Right-mouse click and select Open command prompt window here (If you see Powershell, use this trick).
In command prompt type the following command to check whether the bootloader is locked or not.
fastboot unlock oem
If it shows that the bootloader is not locked, follow the next section. And if it shows that it’s locked, visit XDA forums and check the procedure to unlock bootloader according to your device name.
2. Installing Custom Recovery (TWRP)
Get twrp recovery from here according to your device. Here is a guide you can use to install twrp recovery on your phone, the Twrp or other recovery is required on your device before you can use it to flash custom ROMs and other zip files such as Gapps and firmware.
Repeat the same process to open the command prompt windows form the Adb and Fastboot folder and type the following commands.
#1. Fastboot devices : TO check phone is connected fine with PC (phone should be in Fastboot mode).
#2. fastboot flash recovery twrp.img : To flash the TWRP recovery, the TWRP .img file should be in the same folder.
#3. fastboot reboot : Reboot your phone, optional.
3. Flashing Lineage OS and OpenGapps
The other thing is you’ll require is OpenGapps. Note that if you’re flashing the lineage os 14.1 built you need Opengapps for Android 7.1 and depending on your phone processor architecture. Most of the phone run on arm processors but don’t forget to double check for your phone. Well, you can pick any variant. For convenience, copy both files inside the root directory of your phone’s internal storage as well as on SD card.
Now boot your smartphone into TWRP recovery mode. by pressing the Power up+down + Volume down button. It’s a bit tricky. You need to press all 3 button, press vol up+down first hold it for seconds and then press power up button. (we’re using TWRP for the guide).
TIP: Save all the ZIP files on your computer.
To install lineage OS, open the TWRP menu, Select the “Wipe > Flash” option to delete the files of the older ROM.
Tip: If you now connect your phone to computer, you can copy files to your internal storage. So even if you do a full data wipe of the phone, you can connect it to computer while TWRP is on, and copy the ROM file and Gapps package.
Now go back and choose “Install” > First select the Lineage OS zip then the OpenGapps build (Optional, but enables Google services on the device).
Once you have selected the appropriate flashable files, it’s time to slide the bottom bar to start installing Lineage OS on your android smartphone.
It will take few minutes, also the first boot will take longer but after that, you’ll fall in love with the Lineage OS.
Hope that helps and if you are stuck anywhere feel free to shout in the comment section. If you’re doing it for the first time, the process might eat up a few hours from the day. But along with a completely new Android custom ROM you get brand new features that perhaps you won’t get in stock phone ROM, so yes it’s worth installing on your Android phone.
How to Compile ROM from the Source
1. You will need an Ubuntu 12+, You can use any Linux distro make sure that is the latest. You can also setup the Virtualbox and install Ubuntu on a Windows machine.
Windows Users: Setup Ubuntu in Virtualbox Instructions
2. You need to know the location of your device, vendor, and kernel repos. This can be found fairly easily in the forum for your phone. Also, take note of your phone’s codename.
For example, the Redmi note 3 is the “Kenzo” and its repos can be found here
Still, need to download an OLD CyanogenMod build?
Visit the https://www.androidfilehost.com/ website and search using your device name. As some developers fetch and build ROM for a smaller community who own the same device.