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:
1
repo init -u git://github.com/LineageOS/android.git -b lineage-17.1
Copied!
Then we grab the Waydroid local_manifests
1
wget -O - https://raw.githubusercontent.com/waydroid/android_vendor_waydroid/lineage-17.1/manifest_scripts/generate-manifest.sh | bash
Copied!

Syncing

Then to sync up:
1
repo sync
Copied!
Then we setup the local build environment:
1
. build/envsetup.sh
Copied!

Patching

After that is complete, we apply the Waydroid patches:
1
apply-waydroid-patches
Copied!

How to build

Please see the LineageOS Wiki for building environment setup.

Waydroid AOSP Lunch Options:

1
lineage_waydroid_arm-userdebug
2
lineage_waydroid_arm64-userdebug
3
lineage_waydroid_x86-userdebug
4
lineage_waydroid_x86_64-userdebug
Copied!

Waydroid Build Commands:

1
. build/envsetup.sh
2
lunch lineage_waydroid_arm64-userdebug
3
make systemimage -j$(nproc --all)
4
make vendorimage -j$(nproc --all)
Copied!

Troubleshooting

Local Manifest:

To manually regenerate the local_manifests, we also have added a function to do so
1
waydroid-generate-manifest
Copied!
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:

Last modified 14d ago