Building CalyxOS's F-Droid fork
CalyxOS includes F-Droid by default. However, since it is an Android app built using the gradle build system, which the AOSP build system does not support, we build it separately and include a prebuilt APK for the OS build.
cd ~/calyxos/android12L cd external/fdroid/fdroidclient git fetch --tags export JAVA_OPTS="-Xmx2048m"
For development, you can simply put in a dummy value like the one above.
./gradlew --no-daemon build
We use the full variant.
You can copy
prebuilts/calyx/fdroid/F-Droid.apk for it to be included in the OS build.