Requirements
https://source.android.com/setup/build/requirements#hardware-requirements
https://docs.microsoft.com/en-us/windows/wsl/install-win10#install-the-windows-subsystem-for-linux
https://docs.microsoft.com/en-us/windows/wsl/install-win10#update-to-wsl-2
You may want to expand the default virtual disk size:
https://docs.microsoft.com/en-us/wi...-the-size-of-your-wsl-2-virtual-hardware-disk
Setting up a Windows Subsystem for Linux (WSL 2.0) build environment
For future builds, you need to repeat steps 13 -> 10 -> 14 at the root of the tree
https://source.android.com/setup/build/requirements#hardware-requirements
https://docs.microsoft.com/en-us/windows/wsl/install-win10#install-the-windows-subsystem-for-linux
https://docs.microsoft.com/en-us/windows/wsl/install-win10#update-to-wsl-2
You may want to expand the default virtual disk size:
https://docs.microsoft.com/en-us/wi...-the-size-of-your-wsl-2-virtual-hardware-disk
Setting up a Windows Subsystem for Linux (WSL 2.0) build environment
- Open Microsoft Store
- Search for and install the Ubuntu app
- Open the app and follow the first-time setup steps
- Update packages and install the following (if building lineage-17.1, please refer to their documentation for other versions):
Code:
sudo apt update && sudo apt full-upgrade -y && sudo apt install -y build-essential ccache libncurses5 libssl-dev m4 unzip zip
- 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-17.1
- Sync the sources:
Code:
repo sync
- (Optional; Recommended) https://wiki.lineageos.org/devices/klte/build#turn-on-caching-to-speed-up-build
- Run
Code:
source build/envsetup.sh
- Prepare the device-specific code:
Code:
breakfast [I]your device codename[/I]
- Add the following to .repo/local_manifests/roomservice.xml:
Code:
<project name="TheMuppets/proprietary_vendor_[I]your device brand[/I]" path="vendor/[I]your device brand[/I]" remote="github" />
- Sync the sources again:
Code:
repo sync
- Start the build:
Code:
brunch [I]your device codename[/I]
For future builds, you need to repeat steps 13 -> 10 -> 14 at the root of the tree
Last edited: