How to Build Lineage OS 16 on Windows 10 via WSL using AOSP Android Pie Source

Alright, so it looks like that you are someone who wants to Build Lineage OS 16 on Windows 10 via WSL for your Android Device. Well, just in case you were wondering whether you can or not. The answer is sure you can. Since the Android is an Open Source Project by Google, the Source Code for the same is publically available as the AOSP (Android Open Source Project) Android Source Code. Just in case you don’t already know, the Lineage OS 16 is based on the latest version of Android, the Android 9.0 Pie.

Talking about the Lineage OS, it is one of the most popular Custom ROMs out there. This is primarily due to the features, customization, and tweaks it offers. There are a lot of devices which are officially supported by the Lineage OS. For everyone else, you can always try porting or even better Build Lineage OS 16 on Windows 10 via WSL using AOSP Android Pie Source. Sounds interesting? Wanna know How to build Lineage OS 16 on Windows 10? Well, let us guide you, but before we do, let us take a look at What’s new on Android 9 Pie, should we?

Android 9.0 Pie

he Google has started rolling out the next major version of Android for the supported Google Pixel devices. After the Android 8.0 Oreo, this is the 9th iteration of Android from Google. With Android Pie, Google has revamped many UI changes which include the notification panel, Settings, Quick Toggles and more. The main highlighted features of Android Pie are notification panel, indoor WiFi positioning, support for iPhone X-style notches, Material Design 2, Dark Mode, Enhanced Auto-fill, Dual Camera API, Neural network API implementation and many more.

Well, let us now take a quick look at some of the most important features of Android 9 Pie. Should we?

Android 9.0 Pie Features

Watch The Video on What’s on Android 9.0 Pie

Here are some of the main features of the Android 9 Pie:

  • Gestures: With this release of Android, the Google removed the original home button with a pill that supports gestures. For instance, the users can slide up to show recent apps or slide right to quickly switch between apps.
  • New Recent Apps menu: With the earlier versions of Android, there used to be a stacked card list of Recent Apps. This is now replaced with a horizontal card list.
  • New User Interface: The Android 9 Pie has an all-new user interface which is even more minimal. Google has used the Color Sche,e which they call it as Material Design 2 with this version of Android.
  • Dashboard: Also known as Digital Wellbeing is One of our personal favorite features of the Android 9 Pie is the addition of a Dashboard. Now, the dashboard is that feature which would help you track your overall usage. Users can track the app(s) usage, sleep and more. The objective here is to prevent distractions and focus on productive things.
  • Slices: With earlier versions of Android, when we search for an app on Android, the app icon itself comes up. But with this version of Android, Google is going to show you information that’s embedded within apps.

Enough about the features of Android 9 Pie or the Lineage OS 16. Now, let us take a look at the guide.

Build Lineage OS 16 on Windows 10 via WSL using AOSP Android Pie Source

Now, before we get straight to the intruction, let us take a look at some of the pre-requisites. Should we?


  • A Windows 10 (64 bit) PC or laptop.
  • Your PC should have at least 256GB or bigger storage disk. SSD is recommended due to faster speeds.
  • You should have at least 16 GB of RAM installed on your machine.
  • Active Internet Connection.

Once you have the above pre-requisites, you are all set to Build Lineage OS 16 using Windows 10.

[su_note note_color=”#fffef6″ text_color=”#000000″]A quick Disclaimer: Please don’t follow this guide if you don’t have an idea of what you are doing as you might end up messing up with your device. The GetDroidTips will not be responsible for any damage that may be caused to your device.[/su_note]

How to Build Lineage OS 16 on Windows 10 via WSL using AOSP Android Pie Source

In order to Build Lineage OS 16 on Windows 10 via WSL using AOSP Android Pie Source, you need to follow these steps carefully:

  • First of all, make sure that you have the above pre-requisites.
  • Now, Open Microsoft Store on your Windows 10 PC and search for Ubuntu 18.04 app.
  • Install the Ubuntu 18.04 on your system.
  • Once the app has been installed successfully, just open it up and set it up.
  • Now, it’s time to update and install the required packages. To do this, enter the following command and hit the enter key.

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

  • Now, you need to make a directory for the source code. Enter the following code to do so:
mkdir -p ~/android/lineage && cd android/lineage
  • It’s time to initialize the LineageOS source repository. Enter the following code to do so:
repo init -u -b lineage-16.0
  • Now, you need to sync the source:
repo sync
  • Run the setup by entering:
source build/
  • Now to Prepare the device-specific code enter:
breakfast <your device codename>
  • You need to add the following code to your .repo/local_manifests/roomservice.xml. You can create this file if you don’t find one.
<project name="TheMuppets/proprietary_vendor_your device brand" path="vendor/your device brand" remote="github" />
  • Now, you need to sync the sources again. To do so enter:
repo sync
  • It’s time to make a 64-bit bison. Enter the following command to do so:
make bison
  • Now, to use this bison to build, enter the following command:


  • Finally, start the build and brunch your device codename.

Wait till the process has been completed. Once the process has been completed, you would get a Lineage OS 16 build for your device. So that’s it guys, this was our take on Build Lineage OS 16 on Windows 10 via WSL using AOSP Android Pie Source. We hope that you found this guide helpful. Just in case, if you have stuck somewhere between the steps or have any questions related to the topic. Then feel free to leave them in the comments section down below.

Check out this topic on How to build a Custom ROM and Kernel Modification.

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.