How to build LineageOS on Windows 10 using Windows Subsystem for Linux

Android is at present main the cell OS market share at round 88%. The majority of the remainder of the share is owned by Apple’s iOS. Android being an open supply working system, permits builders to tweak the OS and build a brand new customized working system. People name them Custom ROMsThese customized ROMs are well-known in communities across the globe. With the supply of Custom ROMs, customers can now get the latest and greats of Android that Google has to supply even generally earlier than the OEMs push out an replace for a selected system. This additionally helps to revive an unsupported system to run the Custom model of Android that the OEM by no means pushed or developed. One such widespread Custom ROM is LineageOS.

LineageOS

how to build lineageos on windows 10 using windows subsystem for linux - How to build LineageOS on Windows 10 using Windows Subsystem for Linux

LineageOS was previously known as as CynogenMod OS. Version 16 of LineageOS is the latest launch and is predicated on Android 9 Pie from Google. Many gadgets are at present supported by it. The predominant motive that folks have a tendency to set up LineageOS is as a result of it gives a Stock Android expertise with none customized pores and skin. This is favored and admired by lots of people. This is the explanation many Power customers on Samsung or Xiaomi gadgets go-ahead to set up LineagoOS simply to do away with the customized pores and skin like Samsung Experience and MIUI respectively. I can verify that as a result of I’ve a customized working system on my Xiaomi telephone.

Anyway, let dig into the principle factor right here.

Build LineageOS 16.Zero on Windows 10 using Windows Subsystem for Linux

First of all, we’ll take a look at the system necessities for this job.

System Requirements

You ought to at the very least have 16 Gigabytes of RAM on your laptop. It must be operating Windows 10 (64-bit solely). And for storage, it is suggested for you to have 256 Gigabytes or extra space free the place having an SSD is most well-liked.

Some issues to deal with

As talked about by the unique developer, listed below are the principle issues that you simply want to have in mind whereas finishing up this job.

  • Do NOT add/edit your Linux information from Windows. The information will almost certainly be damaged in bash.
    Instead, add/edit the information from inside the Linux subsystem
  • Using mnt to obtain the supply code to different drives after which making an attempt to comply with this information will most likely lead to failures. Download the supply to folders solely inside the subsystem

Building LineageOS 16

The following steps must be taken one after the other to get this job working.

  1. Installing and establishing Ubuntu beneath Windows Subsystem for Linux.
  2. Getting the required information for the BASH shell.
  3. Creating a listing to retailer all of the information from the Github repository.
  4. Initializing the LineageOS repository.
  5. Syncing the sources.
  6. Running the script.
  7. Preparing system particular code.
  8. Adding the challenge manifest.
  9. Syncing the sources once more.
  10. Start the build for the created information.

First of all, begin by from the Microsoft Store and setting it up.

Now, allow us to get the latest required information for our BASH shell.

For that, enter the next command within the shell,

sudo apt replace && sudo apt full-upgrade -y && sudo apt set up -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.Zero-dev libxml2 libxml2-utils lzop m4 openjdk-Eight-jdk pngcrush repo rsync schedtool squashfs-tools xsltproc zip zlib1g-dev

how to build lineageos on windows 10 using windows subsystem for linux - How to build LineageOS on Windows 10 using Windows Subsystem for Linux

It will take a while to obtain the required information. So till then, you possibly can simply sit again and chill out.

You ought to now create a customized listing to retailer all of the downloaded information from the LineageOS Github repository.

For that, enter this command,

mkdir -p ~/android/lineage && cd android/lineage

Let us begin working with the Github repository for LineageOS.

For that, enter this command,

repo init -u https://github.com/LineageOS/android.git -b lineage-16.Zero

Finally, sync the repository.

repo sync

1540651558 889 how to build lineageos on windows 10 using windows subsystem for linux - How to build LineageOS on Windows 10 using Windows Subsystem for Linux

There is an elective but really helpful step you could take to pace up the method. You can learn extra about it right here.

Then you want to run the script file to put together to build the challenge.

For that, enter this command,

supply build/envsetup.sh

Then put together the code for a particular system. To try this, you want to know the codename of that system. You can search the web by getting into Codename on any search engines like google.

The command for getting ready the device-specific code is,

breakfast your system codename

Now, you want to add a line to the manifest file. You can look for it and if it doesn’t exists, create a manifest file named roomservice.xml inside this path: .repo/local_manifests/.

The line that you simply want to add is,

Sync with the repository once more. Use this command,

1540651558 889 how to build lineageos on windows 10 using windows subsystem for linux - How to build LineageOS on Windows 10 using Windows Subsystem for Linux

repo sync

We are actually finished with the tedious half, Just beginning the build is left.

To begin the build, enter the next code,

brunch your system codename

In case you would like to build a more recent build of LineageOS, you want to simply sync the repository, run the script after which immediately begin the build.
It will prevent a number of time and Internet Data.

You can learn extra about this job and constructing LineageOS 15.1 based mostly on Google’s Android Oreo Eight.1 right here on XDA Developers.

Leave a Comment