Home > ROMs > Custom ROMs

How to Install LineageOS 18.1 Android 11 on any Device

In this guide, we will show you the steps to install the latest LineageOS 18.1 based on Android 11 for all the supported devices. When you step into custom development, you are blessed with a plethora of intriguing things to try out. There’s just one requirement that you need to check-mark- an unlocked bootloader.

Once you do so, you will be in a position to welcome a plentitude of customizations onto your device. These include the likes of flashing a custom recovery such as TWRP or OrangeFox, getting access to the system partition via Magisk, and flashing tons of mods such as Substratum Themes, Magisk Modules, Xposed Framework, and the likes.

Along the same lines, you could also flash a customized build of the Android OS that offers a bunch of additional features and a few extra years of OS upgrade. Yes, you guessed it right, we are talking about Custom ROMs! And in this guide, we will make you aware of the instructions to install the LineageOS 18.1 based on Android 11 onto your device. So without further ado, let’s get started.

What is LineageOS?

LineageOS is among the most popular custom ROMs for tech enthusiasts. Earlier known as CyanogenMod, this ROM has always managed to maintain a rich equilibrium when it comes to device-stability and feature sets. While you wouldn’t be getting a plethora of features baked into your device, but they have made sure to ship in all the required ones.

Along with that, there are a few LineageOS exclusive features that you might come across as well. Not to mention the fact that many other custom ROMs have sources directly based on the Lineage itself. So it proves to be a breeding ground for the tech community. Another thing that we love about this ROM is the fact that it offers OS upgrades even years after the OEM stops the official updates.

Even the Samsung Galaxy S4, whose last major update was Android 5.0.1 Lollipop has been blessed with Android 11 courtesy of this ROM! So with this, you would have got a perfect idea about this ROM and the goodies that it has to offer. Let’s now check out the installation instructions to install the latest LineageOS 18.1 based on Android 11 onto your device.

How to Install LineageOS 18.1 Android 11 on any Device

install lineageos 18.1 android 11

Before we begin with the instructions, there are a few things to be kept in mind. First and foremost, “no two devices are created equally”. So there would be some devices that might follow a slightly different pattern than what the convention has to say.  While we would try our best to list out all such exceptions, but owing to the hundreds of devices running the LineageOS, it’s not possible to include all the exceptions for all the devices.

With that said, the below instructions will still be able to cover most of the devices and most of our readers shouldn’t have any issues such as well. However, if you wish to be double sure, you may also have a go through of your device’s page at XDA Developers. Keeping all these points in mind, let’s get started with the steps to install the LineageOS 18.1 based on Android 11 onto your device.  Droidwin and its members wouldn’t be held responsible in case of a thermonuclear war, your alarm doesn’t wake you up, or if anything happens to your device and data by performing the below steps.

Take a Complete Device Backup

Before going any step further, you will have to take a complete device backup of all the data on your device. This is because to avoid any encryption issues, we will be wiping the data partition, hence data is a must (Nandroid Backup via TWRP is recommended).

Download Official LineageOS 18.1 Android 11

Get hold of your device ROM from the below table. Do keep in mind that these are only the official builds. If your device is not part of this list, then it might be supporting the unofficial builds as of now. You may get them from the device section of XDA. The flashing instructions are the same for both the official and unofficial versions unless stated otherwise.

Official LineageOS 18.1: Download Repository

Download GApps [Optional]

LineageOS doesn’t ship with Google Apps, Services, and Frameworks. So if you wish to have Google Apps installed on your device, you would need to flash the GApps via TWRP.Download GApps (Google Apps) for Android 11 (as for LineageOS, it is recommended to go ahead with MindTheGApps). Do keep in mind that it is completely optional and if you wish to live a De-Googled Life, then it’s better to stay away from GApps.

Download Magisk [Optional]

If you wish to root your device after installing LineageOS 18.1 based on Android 11, then you would have to download Magisk ZIP as well. With the latest update v22, Magisk ZIP, and Magisk Manager are now part of Magisk App. Earlier builds still have a separate Magisk Installer ZIP file, you may download any one of your choices, from here: Download Magisk All Versions. Again, rooting is also optional, you may skip it.

We wouldn’t be transferring any file (ROM, Magisk, GApps) before the installation of TWRP as we would have to wipe the data partition from TWRP. All the files would be transferred only after the wipe has taken place, right from TWRP itself.

Install Android SDK

install adb platform tools windows

You will have to install the Android SDK Platform Tools on your PC. This is the official ADB and Fastboot binary provided by Google and is the only recommended one. So download it and then extract it to any convenient location on your PC. Doing so will give you the platform-tools folder, which will be used throughout this guide.

Enable USB Debugging and OEM Unlocking

Next up, you will also have to enable USB Debugging and OEM Unlocking on your device. The former will make your device recognizable by the PC in ADB mode. This will then allow you to boot your device to Fastboot Mode. On the other hand, OEM Unlocking is required to carry out the bootloader unlocking process.


So head over to Settings > About Phone > Tap on Build Number 7 times [MIUI Number in Xiaomi/Mi/Redmi/Poco] > Go back to Settings > System > Advanced > Developer Options > Enable USB Debugging and OEM Unlocking.

Unlock the Device’s Bootloader

Installing LineageOS 18.1 based on Android 11 requires you to have the bootloader unlocked, and the same is the case with LineageOS as well. But do keep in mind that doing so will wipe off all the data on your device and could make the warranty null and void. If that’s well and good, then please refer to our guide to Unlock Bootloader on Any Android Device

Install TWRP Recovery on Android

Flashing a custom ROM requires you to have a custom recovery installed as well. So head over to our detailed tutorial on How to Install TWRP Recovery on Android. Here are the instructions in short:

install twrp flash lineageos 18.1 android 11

Boot your device to TWRP

  1. Connect your device to the PC via USB cable. Make sure USB Debugging is enabled.
  2. Then head over to the platform-tools folder, type in CMD in the address bar, and hit Enter. This will launch the Command Prompt.
  3. Type in the following command in the CMD window to boot your device to TWRP
    adb reboot recovery

Wipe Partitions

You will now have to wipe various device partitions to make room for LineageOS 18.1 based on Android 11. We will also be wiping data partition to remove encryption. This will erase all the data from your device, so take a backup beforehand.

  1. From TWRP, go to Wipe and select System, Data, Cache/Dalvik, and Vendor.
  2. Then perform a right swipe to wipe them.
  3. After that, again go to Wipe. This time select Format Data.
  4. Type in YES and press the checkmark situated at the bottom right.

Transfer Files to Device

Next up, you will need to transfer the LineageOS 18.1 ZIP file to your device. Likewise, if you are planning to flash Magisk and GApps, then those files need to be transferred as well. For that, you may refer to our comprehensive guide on 3 Methods to Transfer or Install Files via TWRP Recovery. In short, you may use the Mount feature of TWRP, the ADB Sideload feature under Advanced, or use a USB OTG/Pendrive.

Install LineageOS 18.1 Android 11 via TWRP

  1. Go to Install, navigate to the LineageOS 18.1 ZIP file based on Android 11, select it and perform a right swipe to install it.
    install lineageos 18.1 android 11 twrp
  2. After this, go to Reboot and select Recovery. Your device will reboot to TWRP.
  3. [Optional] Now go to Install, select GApps ZIP file and perform a right swipe to flash it.
  4. [Optional] Go to Install, select the Magisk ZIP file and perform a right swipe to install it as well.
  5. That’s it. You may now reboot the device to OS. Go to Reboot and select System.

So this was all from this guide on how to install the latest LineageOS 18.1 based on Android 11. If you have any queries concerning the aforementioned steps, do let us know in the comments. We will get back to you with a solution at the earliest.