- Windows 10 (64-bit) installed on a drive (SSD recommended) with enough free space for builds (>150GB recommended)
- 16GB RAM or more
- Experimental: If you wish to build on a disk (SSD recommended) separate from your Windows installation, please refer to the following: https://github.com/DDoSolitary/LxRunOffline or check out these posts by @psyafter, @klami94 and @Hanabishi Recca. https://forum.xda-developers.com/sho...&postcount=432. https://forum.xda-developers.com/sho...&postcount=445. https://forum.xda-developers.com/sho...&postcount=493.
Do NOT use mnt, it will likely result in failures.
- Open Microsoft Store
- Search for the Ubuntu 18.04 app
- Install the app
- Open the app and follow the first-time setup steps
- Update packages and install the following: Code:
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 m4 openjdk-8-jdk pngcrush repo rsync schedtool squashfs-tools xsltproc zip zlib1g-dev
- Make a directory for the source code (and go to it): Code:
mkdir -p ~/android/lineage && cd android/lineage
- Initialize the LineageOS source repository: Code:
repo init -u https://github.com/LineageOS/android.git -b lineage-16.0
- Sync the sources: Code:
repo sync
- (Optional; Recommended) https://wiki.lineageos.org/devices/k...speed-up-build
- Run Code:
source build/envsetup.sh
- Prepare the device-specific code: Code:
breakfast your device codename
- Add the following to .repo/local_manifests/roomservice.xml: Code:
<project name="TheMuppets/proprietary_vendor_your device brand" path="vendor/your device brand" remote="github" />
- Sync the sources again: Code:
repo sync
- Start the build: Code:
brunch your device codename
For future builds, you need to repeat steps 13 -> 10 -> 14 at the root of the tree
For those still insterested in building 15.1 (ignore the repopick step): https://web.archive.org/web/20180617...-15-1-t3750175 (do not report any errors if you sync this branch, I will ignore them since I do not have the means to maintain more than one branch on wsl)