Compile Waydroid - Using Android-Generic Project
Last updated
Was this helpful?
Last updated
Was this helpful?
For those not aware, , which is best known for bringing PC targets to AOSP based ROMs, also supports Waydroid targets too.
This documentation will go over how to use AG for compiling Waydroid.
To get started with Android/Lineage OS, you'll need to get familiar with , and
To initialize your local repository using the Lineage OS trees, use a command like this:
Then we grab the Android-Generic and Waydroid bits:
Then we can sync up:
And setup the local build environment:
The legacy method is driven by a simple bash script found in vendor/ag/legacy-scripts/waydroid-build/waydroid_build.sh
So to compile Waydroid for x86_64, making clean, and package it in a .zip. You would use this command:
We now want to use AG for the following portions. So in the terminal, type:
You should now see a menu like this:
We can skip the first 2 steps (01-generate-manifest-gui & 02-sync-project), and continue to the
Click on it and hit OK.
The build options are mostly the same as native PC builds, so we can explore them a little.
This will let you select the target device for compiling
This will allow you to select the variant type (user, userdebug, eng). Userdebug is the most common for testing.
Select Apps Type:
!!WARNING - NOT ALL ARCH TARGETS ARE FULLY SUPPORTED YET!! This will let you compile Waydroid with various app types included (FOSS, GMS, EMU-Gapps, OpenGapps & Vanilla)
Waydroid by default includes one type of custom Desktop Mode UI, and that is Boringdroid. This will let you select an alternative option to package along side.
Select Extra Options:
Make Clean before build - Self explanatory, it runs 'make clean' before compiling
Generate Package .zip - Generated a package .zip after compile if complete (requires 7zz & simg2img to be installed)
Just runs 'make clean', nothing fancy
This will launch the compile with all the selected portions from above. If it requires any missing information, the terminal or popup window will let you know.
This will start to apply all the waydroid patches on top of Lineage OS. If there are any conflicts, please refer to the doc. Otherwise, you can continue to the next step.
From here, things are pretty much 1:1 for AG's PC build instructions, so you can refer to the for further instructions