Vela

App developers

Bring your Android app to Vela

Choose one thing a viewer already loves doing in your app. A workout timer could let someone pick a circuit, advance to the next exercise with OK and return Home at the end. Use that single journey to decide what you can reuse and what needs a television-specific implementation.

For TV owners

A port is an edition made for Vela by the developer who maintains the app. It can keep familiar content, rules and routines while giving a physical remote a clear path through the screen. App availability, purchases and sign-in depend on the publisher. An Android phone download or an Android store purchase does not automatically supply a Vela edition.

Vela’s development catalogue supports separately packaged native applications. Consumer distribution needs release signing, a production catalogue and the publisher’s agreement. If an app you love would make a good television experience, send its maker this guide. Get involved.

Run the Android source assessment

Download the standalone Android source assessment 1.0. It needs Python 3 on Linux or a compatible POSIX environment. The download contains the assessment and its command-line entry point. You can inspect both with a ZIP reader. No Vela account, SDK checkout, Android emulator, API key or third-party Python package is required for this step.

curl -fSLO https://velaos.polymathlabs.xyz/downloads/vela-android-assess-1.0.pyz
python3 vela-android-assess-1.0.pyz --version
python3 vela-android-assess-1.0.pyz /path/to/your/android-project
python3 vela-android-assess-1.0.pyz /path/to/your/android-project --format json > android-assessment.json

Verify the file with sha256sum vela-android-assess-1.0.pyz on Linux. Its SHA-256 is e601446661d2eb605aa481d98e57b107ac333bdbc91a02f0501bf648ed13db0a. If you already have a Vela development checkout, ./tools/vela migrate /path/to/your/android-project --format json runs the same assessment.

The command reads local project files. It does not execute Gradle tasks, upload source or generate a working port. The text output pairs a representative source location with a migration action. The JSON schema is vela.android-source-assessment/1. Its target field describes the evidence found in the manifest, such as a declared TV launcher. A project with only phone or tablet evidence can still become a Vela application.

Start with the scanned-file and manifest counts, then read the warnings. The analysis is a bounded source inventory. Build variants, generated code, reflection and transitive dependencies need review by someone who knows the application. An empty findings list is insufficient to establish compatibility.

Interval Coach on two televisions

Interval Coach lets someone choose one to three rounds, follow a short sequence of exercises and pause for a breather. Its 67-line Kotlin Circuit owns the exercises, round count, pause state and progression. Android TV and Vela share the same compiled model. Each has a small interface that accepts remote presses and draws the result.

Interval Coach paused during the first round in the Android TV emulator

Android TV runs an Activity that handles D-pad events and renders the title and instructions. D8 includes the model in the Android APK.

Interval Coach paused at the same exercise inside the Vela OS guest

Vela’s adapter feeds the same presses to the model and presents each result through its native card SDK. TeaVM compiles the model and adapter to C ahead of time. A native linker produces a Linux executable. With its manifest, the Vela development package is 401,310 bytes.

Both packages were installed and exercised in x86-64 KVM guests, one running Android TV 16 (API 36), the other running Vela OS 0.0.1. Eight remote-driven states matched through setup, exercise, pause, resume and completion. Home returned control to each system. The captures above show the same pause in each guest at its own display resolution. This example establishes a source-port path for a small offline application. Apps that use Android services, protected media or graphics stacks require their own investigation.

Try the assessment on the sample

Download the Interval Coach source archive for evaluation. It contains the Android and Vela adapters, shared Kotlin model, build definitions and the sample’s accompanying notes. You can inspect and assess the project with Python alone. Building either edition requires its toolchain and SDK.

curl -fSLO https://velaos.polymathlabs.xyz/downloads/interval-coach-source.zip
python3 -m zipfile -e interval-coach-source.zip .
python3 vela-android-assess-1.0.pyz interval-coach --format json > my-assessment.json
curl -fSLO https://velaos.polymathlabs.xyz/downloads/interval-coach-assessment.json
cmp my-assessment.json interval-coach-assessment.json

Open the assessment from the published archive and look for the TV launcher in android/app/src/main/AndroidManifest.xml, remote handling in CoachActivity.java and the reusable model in Circuit.kt. Follow each finding back to its relative path and line. The Android Activity and Vela card use different presentation code. Release file checksums.

Build the sample with the public SDK

Follow the release quickstart to install the SDK and boot the x86-64 emulator. Keep using the terminal where the quickstart set VELA_SDK_ROOT and added the tools to PATH. On Linux, the Vela edition of Interval Coach also needs JDK 21, Maven 3, a C compiler and static libc. The first build resolves the pinned Kotlin and TeaVM dependencies from Maven Central. Get the SDK and emulator.

From the directory that contains the extracted interval-coach folder, run the following.

cd interval-coach
sh ./build-vela
vela-sdk install vela/target/interval-coach.vapp
vela-sdk launch xyz.polymathlabs.interval

With the running emulator’s bin/vela on PATH, use Left to choose one round, OK to start and Left to pause. Home closes the session and returns to the shell. The same compiled Kotlin model supplies the exercise sequence for the Android and Vela editions. Android’s Activity and Vela’s card adapter each handle their own remote and rendering.

Decide what travels

Part of the app Starting decision Check on a TV
Pure app rules, calculations and content models Extract logic that builds independently. C and C++ can target Linux. Review Kotlin common code for JVM and Android dependencies. Feed both builds the same action sequence and compare the resulting state.
Activity, Fragment, Android Views or Compose screens Describe one TV screen and its focus order. Implement its presentation against the Vela SDK. D-pad and OK reach every action. Back and Home give control to the shell.
Android intents, lifecycle and background services Map foreground entry, process exit and the moment state must be saved. Leave the app during an action and deliberately launch it again.
Networking, secure storage, Play billing, protected video and Cast Identify every platform or commercial dependency separately. Record what you can deliver with the available Vela contract. Verify real authentication, entitlement and playback with the provider before claiming support.
Android TV launcher banner or leanback declaration Treat it as evidence that a television interface already exists. Inspect the actual focus behaviour as well. Test with a remote and compare the visible selection at living-room distance.

The initial third-party SDK provides a foreground native card process and the display.card.v1 capability. It gives a port a working display, input and application lifecycle. Authors of apps needing GPU surfaces, commerce, third-party media playback or durable application storage should document those dependencies. Runtime contract · Package boundaries.

Build a first vertical slice

  1. Put the portable model in its own module. Exercise its state changes outside Android. Keep the existing Android app and its tests runnable.
  2. Keep Android UI, account APIs and services in their Android adapter. Give the Vela adapter explicit inputs. The card SDK supplies Up, Down, Left, Right and OK. The shell handles system navigation.
  3. Build the Vela executable for the target Linux architecture and create its own manifest. Give it a stable package ID. Package your existing static ELF with vela-sdk package MANIFEST EXECUTABLE OUTPUT.vapp.
  4. Boot the matching Vela development image. Install and launch the package through the development interface. Drive the journey with the virtual remote and retain a framebuffer capture, observed state and any remaining dependency gaps. Build a small runnable card · Use the TV simulator.

Android packages cannot be installed on Vela. The source assessment identifies reusable work. The developer still designs the adapter and the user experience, clears rights and validates the release. Track your port in the developer workspace.