Skip to content
sdv-everywarePublic

About

SDV EveryWare: Android SDV on bare metal as a platform for embedded devices. Service bundles, product configuration, design tools and docs.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

146 Commits

Folders and files

Repository files navigation

The SDV EveryWare smart home panel: climate, weather, rooms, camera and news on one screen

SDV EveryWare

Google's SDV Media on every embedded device, with and without a screen.
Not a new OS: Google's AAOS SDV taken out of the car, a smart home's services on. Android without Java. A delightfully fast boot. A Figma design as the screen. Services and UI in Rust. Updatable for years.

Why · What you get · How it works · Targets · The project · Get started · Documentation


Why

Every house, shop and factory is filling up with embedded devices: thermostats, intercoms, kitchen panels, charging stations, vending machines, and the hubs and sensors behind them that have no screen at all. Today each of them runs one of two things. A full Android, 1.6 GB on this very board, which takes some time to boot and brings an app store the device never uses. Or a home grown Linux with a web view, which nobody updates after the first year.

Google built a third option for cars. SDV Media is the Android of the software defined vehicle: the Linux kernel, init, SELinux, verified boot and APEX updates of Android, but no Java framework, no app store, no SurfaceFlinger. In its place a handful of small native agents, written in Rust, that run services and connect them, and harry, a renderer in Rust that draws a Figma design straight to the display at a stable frame rate. It exists so that an instrument cluster boots in seconds and keeps drawing even when the rest of the car has a bad day. The safety monitoring that watches a cluster's telltales stays off here: a wall panel is not a cluster, and harry without it is a very good renderer.

SDV comes in two flavours: SDV Media for a device with a screen, SDV Core, the same services without graphics, for one without. The panel uses SDV Media; a hub or a sensor would use SDV Core.

In the car SDV Media runs as a virtual machine under a hypervisor, next to the Android of the infotainment screen. Here it runs on bare metal: the only system on the board, straight on the kernel and the hardware, nothing between it and the display.

Nothing in it is specific to cars. SDV EveryWare takes it out of the car and puts it on the wall. It writes no operating system: SDV Media comes from AOSP as it is, harry with the commits a touch panel needs, and this project adds what a house needs on top of it. A device product for the board, the service bundles (weather, news, Wi-Fi, Matter), a UI library, the tools from Figma to the screen, and the documentation.

What you get

Building blocks: design on top, the harry app and the service bundles, the SDV agents, A/B updates with rollback, the Android core and the hardware; the Java framework and Android apps are not on the device; designers, the internet, the devices in the house and other SDV devices and an update server around it

Everything in the middle column up to the SDV agents is AOSP as Google ships it. There is no Java framework and there are no apps: the SDV agents run your service bundles, and one harry app draws the Figma design. EveryWare is the UI library, the apps, the bundles, the design tools and the device product.

A device that is ready when you are
Bare metal, no hypervisor: the SDV agents are running 5.3 seconds after the kernel starts. The system image is 577 MB instead of 1.6 GB, and 45 processes share 670 MB of RAM with the panel drawn.

The design is the screen
Designers work in Figma with the EveryWare UI library: components by role (button, slider, tile), drawn once and used by every app. The app binds to layer names and drives the same file on the device: no hand coded layouts, no "the build looks different from the mock".

Services, not apps
Weather, news, Wi-Fi, Matter: each a small Rust process in its own APEX and SELinux domain, started and restarted by the system, talking to the screen and to each other by name.

Speaks the house's language
Extendable bundles, one per protocol (Matter through rs-matter, ...), so the panel controls the lights and the thermostat you already own. SDV devices join the mesh.

Android's security and updates, without Android's size
SELinux, verified boot, a DICE identity per device, access lists checked on every call. A/B system updates and staged APEX updates with automatic rollback, the path Android itself takes. Not finished: SELinux is still permissive, the identity comes from test files, our own APEXes are not marked updatable yet (6. Security, 10. Updating the system).

Built in the open, on the public AOSP tree
Everything builds at the release tag android-17.0.0_r1 with the repositories of this organisation. No private forks of the platform, no binary blobs of ours.

The screens

The same UI library, three apps, captured on the reference board (1920 x 1080 over HDMI, touch):

tv-app: a greeting, the date and a row of device tiles on a purple gradient hub-app: the camera, the climate control and a grid of room tiles
tv-app, a smart TV home screen hub-app, the rooms of the house

The panel's design in Figma
An earlier design of the panel in Figma. The screen at the top of this page is smarthome-app; its camera tile is a picture from the design until the camera stream exists (#44).

How it works

  1. Design. A designer draws the panel in Figma, or our tools write the file directly. Every element the app needs to drive has a name. The design is exported as a .dcf, the document format of DesignCompose.
  2. Screen. harry, the high availability renderer of AOSP's display safety, loads the .dcf and draws it to the display. The app is a Rust state machine: it reacts to touch and to data, and changes the design's named elements. It never lays out a pixel.
  3. Services. The functions of the house are service bundles: small Rust processes, one APEX each, declared in a catalog (vsidl). They publish topics (the weather, the news), offer RPC (set the light), and the SDV agents find, start, connect and restart them.
  4. The world. Bundles reach the internet over TLS and the devices of the house through extendable bundles, one per protocol (Matter, ...), and other SDV devices over the SDV mesh, where every device proves its identity (DICE) and every call is checked against an access list. The screen never talks to the network.

The concepts, one idea per page with a diagram, are in docs/concepts.

Targets

SDV EveryWare is not a product for one board, nor only for boards with a screen. The device layer is one small repository per target (the kernel modules, the display if there is one, the network, the product makefile); everything above it is the same.

Target Role State
Qualcomm Robotics RB3 (DB845c) the reference board: every change is measured here first boots, draws, touch, bundles and panel running
Cuttlefish (the Android emulator) development without hardware, continuous builds boots, draws, touch, live bundles and panel running (device-cf)
Raspberry Pi the cheap board on the wall work in progress, issue #46

The project

SDV EveryWare is a set of repositories in this organisation, checked out into the public AOSP tree by the local manifest in manifest. The manifest and the two forks in the tree (Google's harry, Linaro's board support) carry a branch per AOSP release (everyware-17.0.0_r1); our own repositories live on main.

Repository Path in the tree What it holds
everyware (this one) vendor/sdv-everyware/everyware the service bundles, their catalog and policies, the product additions, the design tools, the documentation
ui-lib vendor/sdv-everyware/ui-lib the UI library: components by role, their behaviour, the Library as a Figma file and as a .dcf
perf-overlay vendor/sdv-everyware/perf-overlay the performance overlay: frames a second, CPU time and memory on top of a harry app's screen, a module an app plugs in
template-app, smarthome-app, tv-app, hub-app, pairs-app packages/services/display_safety/utils/<name> the apps on harry; template-app is the template of a new app (ui-lib's new-app.sh copies it); smarthome-app is the smart home panel
super-harry packages/services/display_safety the same harry as AOSP, only faster, touchier and friendlier with Wayland
device-rb3 device/rb3/sdv_media_db845c the product of the reference board: SDV Media's core, the display, the network, the bundles. A new target is a repository like this one
device-cf device/cf-everyware/sdv_media_everyware_cf the product for the Cuttlefish emulator (sdv_media_everyware_cf): the same bundles and panel in a VM without hardware
dragonboard device/linaro/dragonboard Linaro's support for the reference board, with one policy change
dnsproxyd vendor/sdv-everyware/dnsproxyd name resolution for a device without netd
third_party-rust, third_party-chrony vendor/sdv-everyware/third_party/{rust,chrony} the Rust crates the tree lacks (rs-matter, tokio-openssl), chrony
automotive-design-compose (host tools only) our fork of DesignCompose: the importer behind the design tools

In this repository

Folder What
catalog/ everyware.vsidl: every bundle, what it publishes, subscribes to and offers; the protos; the generated descriptors
bundles/ the service bundles, one APEX each: weather, news, calendar, wifi, matter, and dashboard, the bridge between the bundles and the screen
libs/ what the bundles share: https (TLS on BoringSSL), bundle-store (a bundle's own files: what it keeps for its next start, such as the settings and the articles the news have read, and private ones such as the calendar's grant, mode 0600)
power/ the platform's Power HAL: the apps tell it of a touch and of the time their frames take, and it gives their threads CPU speed while they need it; everyware.mk installs it, its SELinux rules are in power/sepolicy
product/ everyware.mk and the SELinux contexts of the bundles: what a device product adds to carry them
design/figma/ the kiwi tools: a Figma file written and read without Figma, the roundtrip, fig2json
tools/ dcf (a .dcf from Figma or from a .fig, the node by node comparison), matter-generator (a virtual Matter device on the laptop), boot-time (power on to the first frame, measured), fbgrab (dumps the active DRM framebuffer to raw RGBA for boards without SurfaceFlinger)
scripts/ the design path (fetch-dcf.sh, fig-to-dcf.sh), the target (deploy-bundle.sh, run-smarthome.sh, calendar-client.sh), the process (feature.sh, the git hooks)
skills/ step by step instructions for an agent: a service bundle, a Figma design, the review of a branch (the UI library and the apps have theirs in ui-lib/skills)
pages/ static web pages: oauth/, the relay page of the calendar link, and its test
docs/ the concepts, the solution, the decisions and the status

Get started

You need a Linux machine with the AOSP build requirements and about 400 GB of disk. The tree is the same for every target; pick one target block below.

# the public AOSP tree at the release tag, plus the project's repositories; the sync also
# links AGENTS.md and CLAUDE.md, the guide for coding agents, to the tree's top
repo init -u https://android.googlesource.com/platform/manifest -b android-17.0.0_r1
git clone -b everyware-17.0.0_r1 https://github.com/sdv-everyware/manifest .repo/local_manifests
repo sync -c -j8

# option A: Cuttlefish emulator (no board needed; needs cuttlefish-base and cuttlefish-user)
source device/cf-everyware/sdv_media_everyware_cf/tools/env.sh
m
device/cf-everyware/sdv_media_everyware_cf/tools/run.sh start

# option B: the reference board (Qualcomm RB3): Linaro's prebuilt vendor package, once
device/linaro/dragonboard/fetch-vendor-package.sh
source device/rb3/sdv_media_db845c/tools/env.sh
m

Adding a feature, from a tap on the screen to the device: Getting started. Flashing the reference board and what runs on it: the README of device-rb3. Writing your first app on the UI library: vendor/sdv-everyware/ui-lib/scripts/new-app.sh <name> copies template-app, or a coding agent does it with the new-app skill.

Status and roadmap

Built from AOSP android-17.0.0_r1; both the reference board (RB3) and the Cuttlefish emulator boot the image, harry draws with touch, the service bundles and smart home panel run, and the design path works without Figma. The A/B update path is in the image and running; our APEXes are not updatable on their own yet and the image is signed with test keys. Details in docs/project/status.md and 10. Updating the system.

What comes next is tracked as issues, each with the problem it solves and the alternatives considered: the Raspberry Pi as a target, the experimental browser's root image, SELinux enforcing, device discovery, and standalone APEX updates.

Learn more

Contributing

Changes go through a branch and a review in every repository of the project; AGENTS.md has the rules and scripts/feature.sh does the mechanical part.

Licence

Apache-2.0 (LICENSE). The code of Google's and Linaro's repositories we fork keeps its own notices.

About

SDV EveryWare: Android SDV on bare metal as a platform for embedded devices. Service bundles, product configuration, design tools and docs.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages