You can find the build process in build-android.yml. To summarize:
# Install dependencies
yarn
# Build cljs
yarn release-app
# Copy files
cp -r static public/
rm -rvf public/static/js/publishing
rm -rvf public/static/js/*.js.map || true
rm -rvf public/static/*.*
rm -rvf public/static/ios
rm -rvf android/app/src/main/assets/public || true
# Sync public to Android Project
yarn cap sync android
Now build the Android app. Make sure you have Android SDK installed and use Java 17.
cd android
./gradlew clean
# assembleDebug will build a debug APK
./gradlew app:assembleDebug
You will find the APK at logseq/android/app/build/outputs/apk/debug/app-debug.apk