The VAnGo (Vanadium-Android-Go) android app allows running arbitrary Vanadium Go code in the android application.
Modify the vangoFuncs map to include your custom Go function, keyed by a unique string key.
Build the Vanadium android-lib library and publish it to maven local.
cd $JIRI_ROOT/release/java jiri goext distclean ./gradlew :lib:clean :android-lib:clean :lib:publishToMavenLocal :android-lib:publishToMavenLocal
In Android Studio, where you have opened the VAnGo application, run “Build >> Clean project” to remove any locally cached versions of the Vanadium android-lib.
In Android Studio, run the application. It will display a text field. Inputting your unique string key into the field and hitting “Run” will run your custom Go code.
madb
Set the ANDROID_HOME
environment variable
Build, run and read logs
madb start madb exec logcat *:S vlog:*