Files
dusklight/platforms/android
2026-08-05 07:54:31 -06:00
..
2026-08-05 07:54:31 -06:00
2026-04-10 03:53:57 -07:00
2026-05-10 00:51:34 -06:00
2026-04-10 03:53:57 -07:00
2026-08-05 07:54:31 -06:00
2026-05-11 22:06:58 -06:00

Android Shell

This directory contains Dusklight's Android shell built on top of Borealis.

Prerequisites

  • Android SDK installed (ANDROID_HOME)
  • Android NDK version used by CMake presets (ANDROID_NDK_VERSION)
  • JDK 17+

Example:

export ANDROID_HOME="$HOME/Android/Sdk"
export ANDROID_NDK_VERSION="29.0.14206865"
export JAVA_HOME="/usr/lib/jvm/java-17-openjdk"

Build Native Libraries

cmake --preset android-arm64
cmake --build --preset android-arm64

This build produces build/android-arm64/libmain.so

Build APK

cd platforms/android
./gradlew :app:assembleDebug

Output APK:

  • app/build/outputs/apk/debug/app-arm64-v8a-debug.apk

Aurora needs a hardware-backed graphics adapter. If an AVD has GPU acceleration disabled, launch it with -gpu host.

Launch With Runtime Args (adb)

You can pass command-line args through the activity intent:

adb shell am start -n dev.twilitrealm.dusk/.DuskActivity \
  --es borealis_args "--backend vulkan"

Supported extras:

  • borealis_args: single shell-like argument string
  • borealis_argv: string-array argv

The legacy dusk_args and dusk_argv names remain accepted during the shell transition.