Skip to content

Latest commit

 

History

History
80 lines (51 loc) · 1.7 KB

compile-waydroid-lineage-os-based-images.md

File metadata and controls

80 lines (51 loc) · 1.7 KB

Compile Waydroid - Lineage OS based images

Getting started

To get started with Android/LineageOS, you'll need to get familiar with Repo and Version Control with Git.

Initializing

To initialize your local repository using the LineageOS trees, use a command like this:

repo init -u git://github.com/LineageOS/android.git -b lineage-17.1

Then we grab the Waydroid local_manifests

wget -O - https://raw.githubusercontent.com/waydroid/android_vendor_waydroid/lineage-17.1/manifest_scripts/generate-manifest.sh | bash

Syncing

Then to sync up:

repo sync

Then we setup the local build environment:

. build/envsetup.sh

Patching

After that is complete, we apply the Waydroid patches:

apply-waydroid-patches

How to build

Please see the LineageOS Wiki for building environment setup.

Waydroid AOSP Lunch Options:

lineage_waydroid_arm-userdebug
lineage_waydroid_arm64-userdebug
lineage_waydroid_x86-userdebug
lineage_waydroid_x86_64-userdebug

Waydroid Build Commands:

. build/envsetup.sh
lunch lineage_waydroid_arm64-userdebug
make systemimage -j$(nproc --all)
make vendorimage -j$(nproc --all)

Troubleshooting

Local Manifest:

To manually regenerate the local_manifests, we also have added a function to do so

waydroid-generate-manifest

After doing that you will want to resync (this will wipe out any local changes, so make sure you save your work to a different branch)

Patch Conflicts:

See Manual Patch Resolution