Home Android How To Build LineageOS 16.0 on Windows 10 using WSL

How To Build LineageOS 16.0 on Windows 10 using WSL


In this world of tweaks and custom ROM’s, there is always someone’s desire to build there own custom ROM. Building a custom ROM is trickier and you should know how to code. But, who said building a ROM with already available Kernel is difficult?

In this article, we are gonna build a Build LineageOS 16.0 on Windows 10 for your Android device. Since it is open source, the ROM’s are readily available. LineageOS 16 is based on Android 9 i.e., Android Pie.

Before we get started there is something you should know, you should have at least a medium specs machine available with you. Follow this method as it is and you will have a new fresh copy of LineageOS 16 for your Android device.

Before we start let’s understand what LineageOS is.

What is LineageOS?

LineageOS is a free and open-source operating system for set-top boxes, smartphones and tablet computers, based on the Android mobile platform.

It is the successor to the custom ROM CyanogenMod, from which it was forked in December 2016 when Cyanogen Inc. announced it was discontinuing development and shut down the infrastructure behind the project. Since Cyanogen Inc. retained the rights to the Cyanogen name, the project rebranded its fork as LineageOS.

So what is LineageOS 16?

LineageOS 16 is one of the custom ROMs available out there to provide Android Pie experience. But, LineageOS 16 is officially available only for some of the devices since it is the latest one. Worry not, here we are gonna guide you on how you can build your own custom LineageOS 16 for your Android device.

Now you may be thinking how is it possible? Well, it is possible. You just need a good configuration Windows 10 machine, a good internet connection with lots of data limit and a good amount of time.

Note:- Before you start with this procedure, you should know how to install custom ROM on your device as well as other things like recovery and backup process.

Since the installation of custom ROM’s is not officially allowed, it also bricks your smartphone’s warranty. Additionally, if any of the steps goes wrong, your smartphone can brick permanently.

How To Build LineageOS 16.0 on Windows 10 using WSL

There are some prerequisites to be maintained before you start with the process.

Reminder: This process is time taking as well as needs a good amount of internet data. Make sure you have a good amount of data left.

Note: If any type of problem takes place then you will only be responsible for it. TechnicalUstad.com will not entertain any of the complaints.


  1. Latest 64-bit Windows 10.
  2. More than 256GB of storage. We recommend the use of SSD.
  3. Minimum 8GB of RAM but 16GB is at least required.
  4. Active internet connection with a good amount of downloading data left.

Getting Started

You will need to use the Windows Subsystem for Linux (WSL) on your Windows 10 to go ahead with the process. And for that, you should have developer mode enabled on your PC.

How to enable Developer Mode

Press Windows Key + I on your keyboard. The Settings App will open up.

Click on Update & Security.

Build LineageOS 16.0 on Windows 10

Select the option For developers from the left panel.

In Use developer features section select Developer mode.

Build LineageOS 16.0 on Windows 10

As soon as developer mode is selected, your machine will download developer mode packages and install them. As soon as the installation is done, restart your PC.

Now you need to turn on the Windows Subsystem for Linux feature on your Windows 10.
How to enable the Windows Subsystem for Linux Feature

Press Windows Key + R. The Run window will open up.

Type control and hit enter.

Run Control The Control Panel will open up.

Click on Programs and Features.

Program and Features Control

From the left panel, select the option Turn Windows Features on or off. A new window of Windows Features will open up.

Windows Features

Scroll down and check the box named as Windows Subsystem for Linux.

Click on OK.Windows Subsystem for Linux

After the selection is done, some changes will be done by the system and a prompt will open up to restart your machine. Restart and follow the procedure given below.

How to Create LineageOS 16 in WSL

1. Open Windows Store and search for Ubuntu 18.04 and install it on your PC. Open the Ubuntu 18.04 App as soon as it installs.
It will initialize the ubuntu and install the required files. This will take some time. Set up your username and password after the initialization process.

2.Enter the following command:

sudo apt update && sudo apt full-upgrade -y && sudo apt install -y bc build-essential ccache curl g++-multilib gcc-multilib git gnupg gperf imagemagick lib32ncurses5-dev lib32readline-dev lib32z1-dev liblz4-tool libncurses5-dev libsdl1.2-dev libssl-dev libwxgtk3.0-dev libxml2 libxml2-utils lzop openjdk-8-jdk pngcrush repo rsync schedtool squashfs-tools xsltproc zip zlib1g-dev

3. Execute the following commands one by one. We recommend you a good nap, a food break, and some coffee while these commands get executed.

mkdir -p ~/android/lineage && cd android/lineage
repo init -u https://github.com/LineageOS/android.git -b lineage-16.0
repo sync
source build/envsetup.sh
breakfast <your device codename>
<project name="TheMuppets/proprietary_vendor_your device brand" path="vendor/your device brand" remote="github" />
repo sync
make bison

As soon as the above steps are done, you are good to go and install your own created LineageOS 16 for your own android device. Just migrate to the location where you performed the procedure and you will licate the files.

Hope you had a good time between the process.


Please enter your comment!
Please enter your name here