How to Install LineageOS 24 on Any Supported Android Device

LineageOS official logo
Add Quickfever on Google: Preferred Source Google Discover

Installing LineageOS is slightly similar to how we install any custom ROM. But worry not! Here is the detailed step-by-step guide to installing LineageOS 24 (and previous releases) on your device, along with all the essential tools and resources to help you through the process.

LineageOS was born to continue what CyanogenMod began. When Cyanogen Inc. pulled support from the open-source CyanogenMod project, the developers continued their work under a new banner: LineageOS (line-age, pretty simple). Today, the LineageOS infrastructure powers official builds for hundreds of devices, bringing clean software and long-term support to hardware abandoned by OEMs.

Helpful resources: LineageOS Supported Devices and Download Links, Best Custom Android ROMs, and How to Build LineageOS on Windows 10 and 11.

Advertisement

Prerequisites Before Installing LineageOS

We have divided the installation process into clear stages. Before touching recovery menus, ensure you have these prerequisites ready:

  1. An Unlocked Bootloader: Flashing custom software requires an unlocked bootloader. On Google Pixel and Motorola phones, this is done using fastboot. On Xiaomi, Redmi, and POCO devices, you must use the official Mi Unlock tool (follow our Xiaomi bootloader unlocking guide).
  2. Custom Recovery: You need a custom recovery environment to flash the ROM package. Official Lineage Recovery is strongly recommended for direct OTA updates, though TWRP Recovery remains supported on many devices.
  3. Platform Tools (ADB & Fastboot): Installed on your Windows, Mac, or Linux computer.
  4. Complete Data Backup: Installing LineageOS from stock firmware requires a complete data wipe (Format Data). Back up your photos, messages, and important files to a PC or cloud storage before proceeding.

Step 1: Check and Unlock Your Bootloader

First, check whether your phone’s bootloader is already unlocked. Boot your phone into Fastboot mode (usually by holding Power + Volume Down while the phone is off) and connect it to your computer via USB.

Opening command prompt or terminal window in Windows

Open a Command Prompt, PowerShell, or Terminal window inside your Platform Tools (ADB and fastboot) folder. Run the following command to verify your device connection:

fastboot devices

If your device appears in the list, run the unlock command (for Pixel, Motorola, and general fastboot devices):

fastboot flashing unlock

(On older devices, the command is fastboot oem unlock). Follow the on-screen prompt on your phone’s screen using the volume buttons to confirm the unlock.

Step 2: Install Custom Recovery (Lineage Recovery or TWRP)

Next, download the recovery image matching your exact device model from the official LineageOS download portal (or from TWRP.me).

Place the downloaded recovery image (e.g. recovery.img or boot.img) into your Platform Tools folder and flash it via fastboot:

  • For devices with a dedicated recovery partition: fastboot flash recovery recovery.img
  • For modern A/B and Virtual A/B devices where recovery lives inside the boot image: fastboot flash boot boot.img (or fastboot flash vendor_boot vendor_boot.img as specified on your device wiki).
Running fastboot devices command in command prompt

Once flashed, reboot directly into recovery mode using the volume rocker on your phone (select “Recovery mode” and press Power), or run fastboot reboot recovery.

Step 3: Format Data (Clean Wipe)

Moving from manufacturer firmware to LineageOS requires wiping user encryption keys. Skipping this step leads to bootloops.

TWRP Recovery main menu showing install and wipe buttons
  • In Lineage Recovery: Select Factory Reset > Format data / factory reset and confirm.
  • In TWRP: Tap Wipe > Format Data, type yes, and confirm.

Step 4: Flash LineageOS 24 (and MindTheGapps)

Now you are ready to flash the LineageOS 24 ROM package. The cleanest and most reliable method is ADB Sideload, which eliminates the need to manually store large ZIP files on your phone storage.

Method A: Flashing via ADB Sideload (Recommended)

  1. In recovery, select Apply Update > Apply from ADB (or in TWRP, go to Advanced > ADB Sideload and swipe to start).
  2. On your PC terminal, run: adb sideload lineage-24.0-package.zip (replace with your actual file name).
  3. Wait for the process to complete. ADB will show progress up to around 47% and finish with step 2/2.
Selecting LineageOS flashable zip file in recovery

Flashing Google Apps (MindTheGapps)

LineageOS is completely de-Googled by design. If you need Google Play Store, Gmail, and Play Services, you must flash GApps immediately after flashing the ROM, before booting into system:

  1. Download the matching MindTheGapps package (the official GApps provider recommended by LineageOS) for your Android version and CPU architecture (ARM64).
  2. Without rebooting to system, return to Apply from ADB (or Advanced > ADB Sideload).
  3. Run: adb sideload MindTheGapps-package.zip. If prompted about signature verification in Lineage Recovery, click Yes to proceed.
Adding GApps zip file in TWRP before flashing

Step 5: Reboot into LineageOS

Once LineageOS and your optional GApps package are flashed, select Reboot system now from the main recovery menu.

LineageOS welcome and initial setup screen

The first boot usually takes 3 to 5 minutes while the operating system sets up partitions and builds caches. Once greeted by the LineageOS setup screen, complete your setup to enjoy a clean, fast Android experience.

If you want root access and advanced modules, you can install Magisk afterward and check out our list of the best Magisk modules.


Compiling LineageOS from Source (Advanced Users)

If your device does not have an official build, you can compile LineageOS directly from the source code. While the process is resource-intensive and requires familiarity with Linux, it gives you complete customization control:

  1. Environment: A 64-bit Linux distribution (such as Ubuntu 24.04 or 22.04 LTS), or Windows 10/11 running WSL2 (Ubuntu). Check our guide on building LineageOS on Windows via WSL2.
  2. Hardware Specs: At least 16GB RAM (32GB recommended) and 250GB to 300GB of fast SSD storage.
  3. Device Trees: You need your device tree, vendor blobs, and kernel repositories, which can be found on GitHub or XDA Forums.
LineageOS source repository and device tree on GitHub

Ending words: Installing LineageOS takes a little preparation, but replacing bloated manufacturer skins with a responsive, privacy-respecting Android operating system is well worth the effort. If you run into issues or have questions about device recovery, leave a comment below or join our community discussions.

17 comments
  1. Device Samsung Galaxy Tab Pro 10.1 wifi
    installed TWRP and have just tried to install lineage-14.1-20170720-nightly-n1awifi-signed.zip from download.lineageos.org/n1awifi[/url
    all seems ok – says it’s patching the system image, then get
    E:unknown command [log]
    E:unknown command [log]
    detected filesystem ext4 for /dev/block/platform/dw_mmc.0/by-name/SYSTEM
    script succeeded: result was [1.000000]
    updating partition details…
    …done

    then when reboot option selected the message says no OS installed.

    so all I have now is TWRP Recovery

    1. @jimi do this, from Twrp – wipe > format data > type yes and slide. Again wipe > advanced wipe > select all (expect storage or sd if you like) and slide then go back select reboot > power off.

      Now boot into Twrp again and flash the lineage zip, it should work without errors.

    1. Hello, please match your phones codename with the lineage OS build, actually higher RAM variant doesn’t need a separate build.

  2. I’ve flashed the lineage zip and rebooted cause I’m so scared of this xD
    It’s still booting, but it seems to work. When it finishes i’ll flash Gapps instead.
    Ty for everything (it just finished booting and i see lineageOS logo, I’m excited xDD)

    Yo! Installing Gapps actually, everything seems to work OK.
    I’ve noticed that Gapps installation is much longer than LineageOS one, but everything is going well.
    I have flashed mini Gapps, if anyone is interested.
    It finished flashing, I’m rebooting now, everything works good.
    Today i’ve unlocked bootloader, flashed root, twrp, lineage and gapps, and it’s been the hardest day of my fkn life xDDD.

      1. Hello, as the official lineage OS builds are released, I’ll suggest you to download the latest version for your device and try again.

  3. @Arnold: The official LineageOS is looking to set up their infrastructure so they can serve official LinageOS builds for various devices. However, you can still look up for your device.

Leave a Reply

Your email address will not be published. Required fields are marked *

Google lets you pick your sources now

If this helped, add quickfever.com to your preferred sources. Our articles will show up higher when you search about tech. One click. Free. And it helps us more than you think.

Add to my Google sources