Building CalyxOS's microG fork
CalyxOS includes microG 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.
git fetch --tags
echo 'mapbox.key=apikey' > local.properties
In our builds we fail if there is no Mapbox API key to avoid shipping a build without it, as that will break Maps inside apps.
For development, you can simply put in a dummy value like the one above.
./gradlew --no-daemon build
We use the variant with mapbox and with nearby.
You can copy
prebuilts/calyx/microg/GmsCore/GmsCore.apk for it to be included in the OS build.