Android · Car head unit · 2026
Selawi Dash
Agentic engineering
I plan each project in a long conversation with an AI assistant, which writes up what we settle as a brief. Claude Code builds from that brief while I test, change scope and steer. How I work.
What I owned
- The idea, the feature set and what to leave out
- The plan: a long brainstorm with an AI assistant, turned into a written brief
- Agreeing the architecture, stack and rules in the brainstorm
- Reshaping scope as it came together: features added, changed and cut
- Testing on real devices and in daily use
What the agent did
- Building from the brief, phase by phase
- Writing the code, the tests and the documentation
- Fixing what testing turned up
Selawi Dash turns the touchscreen of a BYD Seal 05 into a single live dashboard. A 3D model of the car drives down an animated road and turns with the real car, surrounded by speed and trip stats, the song playing on the driver's phone, live weather, incoming calls and quick controls. Android Auto and Google Maps already run on the instrument cluster, so the centre screen was free for something better.
I use it every day in my own car, and other BYD owners install it from a public download page. The first working version ran in the car within five days.
1. Measure the car before designing for it
BYD's firmware blocks a lot of standard Android: no real Play Services, no notification access, no speech engine, and no car data for apps. Designing against the APIs you'd normally assume would be there would have meant discovering all of that the expensive way. So the first milestone was a probe app, not a dashboard: that measured what actually works on the head unit. Its report produced a decision table and an in-car test checklist, and the real app was designed from those results.
The probe also set the scope. With no Play Services or speech engine, and maps already on the cluster, the in-app map and the voice assistant were cut. The app only displays, and does it well.
2. Speed, braking and turns from GPS alone
The car doesn't share speed, pedals or indicators with apps, so all of it is derived from GPS fixes every 200 ms, five times the usual rate. The accelerometer was the first candidate, but road testing showed its gravity filter settled too fast and steady braking read as "accelerating". It was replaced with a least-squares speed trend over 2.6 seconds with hysteresis, which decides reliably whether the car is braking or accelerating.
The faster fix rate needed matching changes elsewhere: turn rate is measured over a window of at least 0.9 seconds with millisecond timing, and turn signals are inferred from a turn of 7° a second held for 1.5 seconds. All of this was validated on the road, which is the only place this kind of maths can really be judged.
3. Now playing on a locked-down head unit
The usual way to read the current song is through notification access, which BYD blocks. The app connects to the car's Bluetooth MediaBrowser instead, which carries the phone's player even through Android Auto, and falls back to media keys and broadcasts. Cover art comes from the iTunes Search API and Spotify oEmbed because the car doesn't provide it.
A 3D engine on a size budget
The 3D car uses Google Filament, whose shaders won't compile on an emulator's software GPU. Rather than keep fighting the emulator, visual verification moved to 22 Paparazzi screenshot tests (day, night, braking, on a call, rain and snow, smaller screens, colour variants) plus testing in the car itself.
The release also had to fit Cloudflare Pages' 25 MiB file limit. The full 3D engine stayed, and everything else was shrunk: R8 with resource shrinking, arm64 only, and compressed native libraries. That brought it to about 17.8 MB, and dropping 32-bit native code alone saved about 6 MB. A CI step fails the build if it grows past the limit.
Where it stands
There's no backend, no database and no API keys. It uses only keyless public APIs, and the APK is served straight from Cloudflare Pages. It runs daily on a Seal 05 DM-i and has been verified on a second, smaller BYD model, where the next round of work is performance tuning.
Stack. Kotlin, Jetpack Compose, Filament, DataStore, Paparazzi, GitHub Actions, Cloudflare Pages.
Questions about this project? Email me.