Android is currently leading the mobile OS marketplace position portion at some 88%. The bulk of the residual of the portion is owned past times Apple’s iOS. Android beingness an opened upwards source operating system, allows developers to tweak the OS in addition to ready a novel custom operating system. People telephone telephone them Custom ROMs. These custom ROMs are famous inward communities some the globe. With the availability of Custom ROMs, users tin forthwith larn the latest in addition to greats of Android that Google has to offering fifty-fifty sometimes earlier the OEMs force out an update for a item device. This also helps to revive an unsupported device to run the Custom version of Android that the OEM never pushed or developed. One such pop Custom ROM is LineageOS.
LineageOS
LineageOS was formerly called equally CynogenMod OS. Version sixteen of LineageOS is the latest unloose in addition to is based on Android ix Pie from Google. Many devices are currently supported past times it. The primary argue that people tend to install LineageOS is because it provides a Stock Android sense without whatsoever custom skin. This is liked in addition to admired past times a lot of people. This is the argue many Power users on Samsung or Xiaomi devices go-ahead to install LineagoOS only to larn rid of the custom pare similar Samsung Experience in addition to MIUI respectively. I tin confirm that because I receive got a custom operating arrangement on my Xiaomi phone.
Anyway, allow dig into the primary affair here.
Build LineageOS 16.0 on Windows 10 using Windows Subsystem for Linux
First of all, nosotros volition banking concern agree out the arrangement requirements for this task.
System Requirements
You should at to the lowest degree receive got sixteen Gigabytes of RAM on your computer. It should live on running Windows 10 (64-bit only). And for storage, it is recommended for you lot to receive got 256 Gigabytes or to a greater extent than infinite costless where having an SSD is preferred.
Some things to receive got attention of
As mentioned past times the master developer, hither are the primary things that you lot demand to pop off on inward hear piece carrying out this task.
- Do NOT add/edit your Linux files from Windows. The files will most probable live on broken inward bash.
Instead, add/edit the files from within the Linux subsystem- Using mnt to download the source code to other drives in addition to and thence attempting to follow this guide volition in all probability trial inward failures. Download the source to folders solely within the subsystem
Building LineageOS 16
The next steps should live on taken ane past times ane to larn this employment working.
- Installing in addition to setting upwards Ubuntu nether Windows Subsystem for Linux.
- Getting the required files for the BASH shell.
- Creating a directory to shop all the files from the Github repository.
- Initializing the LineageOS repository.
- Syncing the resources.
- Running the script.
- Preparing device specific code.
- Adding the projection manifest.
- Syncing the resources again.
- Start the ready for the created files.
First of all, showtime past times downloading WSL & Ubuntu 18.04 LTS from the Microsoft Store in addition to setting it up.
Now, allow us larn the latest required files for our BASH shell.
For that, come inward the next ascendancy inward the shell,
sudo apt update && sudo apt full-upgrade -y && sudo apt install -y bc build-essential ccache gyre 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 m4 openjdk-8-jdk pngcrush repo rsync schedtool squashfs-tools xsltproc aught zlib1g-dev
It volition receive got some fourth dimension to download the required files. So until then, you lot tin only sit down dorsum in addition to relax.
You should forthwith practice a custom directory to shop all the downloaded files from the LineageOS Github repository.
For that, come inward this command,
mkdir -p /android/lineage && cd android/lineage
Let us showtime working amongst the Github repository for LineageOS.
For that, come inward this command,
repo init -u https://github.com/LineageOS/android.git -b lineage-16.0
Finally, sync the repository.
repo sync
There is an optional withal recommended measuring that you lot tin receive got to speed upwards the process. You tin read to a greater extent than almost it here.
Then you lot demand to run the script file to ready to ready the project.
For that, come inward this command,
source build/envsetup.sh
Then ready the code for a specific device. To practice that, you lot demand to know the codename of that device. You tin search the cyberspace past times entering <YOUR DEVICE MARKETING NAME> Codename on whatsoever search engines.
The ascendancy for preparing the device-specific code is,
breakfast your device codename
Now, you lot demand to add together a trace to the manifest file. You tin expect for it in addition to if it does non exists, practice a manifest file named roomservice.xml inside this path: .repo/local_manifests/.
The trace that you lot demand to add together is,
<project name="TheMuppets/proprietary_vendor_your device brand" path="vendor/your device brand" remote="github" />
Sync amongst the repository again. Use this command,
repo sync
We are forthwith done amongst the tiresome part, Just starting the ready is left.
To showtime the build, come inward the next code,
brunch your device codename
In illustration you lot want to ready a newer ready of LineageOS, you lot demand to only sync the repository, run the script in addition to and thence straight showtime the build.
It volition salve you lot a lot of fourth dimension in addition to Internet Data.
You tin read to a greater extent than almost this employment in addition to edifice LineageOS 15.1 based on Google’s Android Oreo 8.1 here on XDA Developers.
Source: https://www.thewindowsclub.com/
comment 0 Comments
more_vert