Warning: installing or modifying this software can brick your head unit. Recovery may require professional service or replacement, at your expense. Provided AS IS; use at your own risk, subject to applicable law. Read the risk and liability disclaimer.
Your own applications on the iDrive screen.
Sent from your phone, approved on the car, rolled back if they fail.
The application runtime for BMW head units. It runs signed third-party applications on the car's own screen, launched from the iDrive menu, and gives them the iDrive controller, USB gamepads, the car's audio, car data and the network through a versioned bridge. It supervises them, starts them with the car, and rolls an update back when the new version fails. Applications are written with the SDK and added from a paired phone or the desktop installer; every install is confirmed by the driver on the car.
Supported head units: BMW NBT Evo (iDrive 6, QNX 6.5 on ARMv7). Support for the earlier NBT may come later.
Part of NBTFoundry: mobile-app (phone app) · installer (desktop installer) · sdk (application SDK) · nf-doom (example application)
Not affiliated with or endorsed by BMW AG or BlackBerry Limited. BMW, iDrive and NBT are trademarks of BMW AG; QNX is a trademark of BlackBerry Limited.
- Applications on the car's screen. An "App Manager" entry in iDrive opens the manager's own screen (LVGL); applications start from it and get the panel, the iDrive controller and the car's audio, then hand them back.
- Install from a phone. Pair a phone once (six digits, confirmed on the car); then send packages, update or uninstall applications and change their settings from the NBT Manager app. The car verifies every package and asks the driver.
- Signed and recoverable. Packages and manager releases are RSA-3072 signed;
updates run a health check and roll back to the known-good version when it
fails. Every write goes through one path policy under
/var/opt/nbt-manager. - An application bridge. Applications get a small, versioned interface to the car: bring to front, a status line in the menu, live settings, MOST messages under a signed policy, the decoded iDrive controller, a wired USB gamepad, the car's control units (values, fault codes, clearing them parked) and a background service that keeps running when the application leaves the screen (docs/app-bridge.md).
- Input capture. While the manager or an application is shown, iDrive does not act on the controller (docs/input-capture.md).
- Start with the car. Each application's settings offer to start it about 25 s after the head unit boots, without opening the manager; repeated failed starts pause that until it is started by hand.
- Diagnostics. A per-application log and a debug log, readable from the phone, and a Settings → Status page with a live gamepad test.
- Tools. Settings → Tools restarts the head unit, and enables SSH, telnet and qconn as root until the next restart — the same access an SSH unlock gives, without writing anything (docs/system-tools.md).
- Themes. BMW (iDrive 6's black page and red selection), MINI (a blue
bar) and Supra (an orange-red glow line), each after photographs of that
make's screen. Automatic follows the car's make; Settings →
Theme chooses one. The palettes are in
src/gui/theme.cpp; a paired phone reads the theme shown (GET /v1/theme) and follows it. - Languages. English, French, German, Italian, Spanish, Chinese
(Simplified) and Japanese. Automatic follows iDrive's language, English
for any other; Settings → Language chooses one. Texts are in
src/gui/text/and the fonts insrc/gui/fonts/(PROTOCOL.md, "Manager GUI controller").
Screens come from the GUI simulator, framed as the head unit's 1440×540 panel;
make simulator && python3 tools/capture_ui.py renders them again.
flowchart TB
subgraph HU["Head unit (QNX 6.5)"]
PLUGIN["iDrive plugin<br/>libNbtManager.so<br/>menu entry · focus hold"]
LAUNCHER["Launcher<br/>slot verification · supervision · setup"]
GUI["Manager GUI<br/>LVGL · approvals · gamepad owner"]
WORKER["Worker<br/>packages · transactions · phone API"]
DOOR["Door<br/>boot-time listener"]
HOST["Application host<br/>bridge channels"]
APP["Application"]
SHIM["Capture shim<br/>in iDrive"]
end
PHONE["Phone app"] -->|"signed HTTP (Wi-Fi Direct)"| WORKER
PHONE --> DOOR
INSTALLER["Desktop / phone installer"] -->|"SSH"| LAUNCHER
PLUGIN -->|"--open"| LAUNCHER
LAUNCHER --> GUI
LAUNCHER --> WORKER
WORKER --> HOST --> APP
GUI -->|"control record"| SHIM
| Component | Source | Role |
|---|---|---|
| iDrive plugin | plugin/ |
The menu entry, iDrive's focus hold, the 60 s shim check, the debug log of the capture shim |
| Launcher | apps/manager/launcher.cpp, src/launcher/ |
Verifies the active slot, starts and supervises the worker and GUI, installs and updates the manager |
| Worker | apps/managerd/, src/worker/ |
Package verification, installs, updates, uninstalls, settings, the paired-phone API |
| GUI | src/gui/ |
The manager's screen, local approvals, pairing, the USB gamepad |
| Application host | src/process/ |
Starts an application with its bridge channels, log and limits |
| Capture shim | src/capture/ |
Keeps the controller from iDrive while the manager is shown |
| Self test | apps/selftest/, src/worker/self_test*.cpp, src/gui/selftest_*.cpp |
Settings › Maintenance › Self test: bundled test applications in three forms (docs/self-test.md) |
Host requirements: a C++11 compiler, a C99 compiler for LVGL, OpenSSL development
libraries, Python 3 and the openssl command. LVGL 9.6 is a submodule:
git submodule update --init
nice make -j"$(nproc)" test # host tools and all host testsThe tests generate temporary signing keys. Optional QR tests use segno,
zxing-cpp and Pillow when installed; socket tests are skipped where local sockets
are not allowed. Sanitizers and fuzzing:
NBT_TEST_ASAN=1 ASAN_OPTIONS=detect_leaks=0 nice make -j"$(nproc)" BUILD_DIR=build/asan \
CFLAGS='-O1 -g -fsanitize=address,undefined -fno-omit-frame-pointer -fno-pie' \
CXXFLAGS='-O1 -g -fsanitize=address,undefined -fno-omit-frame-pointer -fno-pie' \
LDFLAGS='-fsanitize=address,undefined -no-pie' test
make fuzz FUZZ_SECONDS=5Instrumented builds omit the child data limit so ASan can reserve its shadow
mapping; ordinary builds keep and verify the 256 MiB limit. make pre-commit
runs the format, line-limit, C++ rule and static-initializer checks.
Simulator. make run-simulator (SCALE=3 to enlarge) opens an X11 preview
of the manager's GUI: the real GUI controller and LVGL renderer against a
simulated worker with two applications. Up/Down to move, Enter to select (hold it
on an application for its settings), Backspace or Escape to go back, M for MENU,
U to simulate a phone's pairing request or upload, Q to quit. It installs nothing
and opens no network session. NBT_LANGUAGE=fr (or auto, en, de, it,
es, zh, ja) sets the language and NBT_SIM_CAR_LANGUAGE=13 iDrive's;
python3 tools/capture_ui.py --languages --out <dir> renders the main screens
in every language. NBT_THEME=mini (or auto, bmw, supra) sets the theme
and NBT_SIM_CAR_MAKE=supra the car's make.
Texts and fonts. The GUI's texts are src/gui/text/<code>.txt, English
defining the keys; python3 tools/gui_text.py turns them into
src/gui/text_tables.cpp, and the fonts hold only the Chinese and Japanese
characters they use (src/gui/fonts/README.md, tools/make_fonts.py).
tests/test_gui_text.py fails when either is out of date.
Head unit. Source the QNX 6.5 SDP environment and point at local copies of the head unit's Screen and framework libraries:
make qnx qnx-plugin qnx-capture qnx-check \
QNX_SCREEN_LIBDIR=/path/to/screen/lib RHMI_LIBDIR=/path/to/framework/libThis builds the worker, launcher, GUI, the iDrive plugin and its resources
(build/NbtManager/) and the capture shim. qnx-check verifies the binaries'
dynamic dependencies and that every imported C++ symbol exists in QNX 6.5's
libstdc++ (it uses $QNX_TARGET's copy), and builds the kits' test
application (make test-apps). Shipped binaries are stripped; the unstripped
links stay in build/qnx-unstripped/.
Release. A manager release is signed with the manager key:
make release \
QNX_SCREEN_LIBDIR=… RHMI_LIBDIR=… \
MANAGER_VERSION=v1 MANAGER_SEQUENCE=1 MANAGER_COMPAT=your-target-id \
MANAGER_SIGNING_KEY=/secure/manager-private.pem \
MANAGER_PUBLIC_KEY=/secure/manager-public.pem \
APPS_PUBLIC_KEY=/secure/apps-public.pem
make installer-release # the desktop installer with dist/manager.nbtr embeddeddist/manager.nbtr is the release; installer-release builds
NBTFoundry/installer (NBT_INSTALLER_DIR, default ../installer). Increase the
sequence for every release. BUILD_DIR holds intermediate output (make clean
removes it) and DIST_DIR (default dist) the files ready to ship.
Test kit. make kit builds a Windows test kit from a clean commit
(docs/install-flow.md): the installer with the
release and a test application embedded, the phone app, test packages for the
phone and the in-car procedure. Signing keys for test kits are created on first
use in ~/.local/share/nbt-manager/keys (NBT_KEYS_DIR).
An application is one signed executable for one compatibility target; the destination comes from its application id under the path policy, never from the package.
python3 tools/package.py --app test --compat demo-1 --version v1 --sequence 1 \
--key apps-private.pem --output test-v1.nbt build/test-app/test-v1
build/nbt-verify test-v1.nbt apps-public.pem test demo-1--setting 'background|Background color|blue|blue,red,green,black' declares a
setting; --bridge, --bridge-uses and --bridge-optional declare bridge
capabilities (PROTOCOL.md), --bridge-files the files an
application accepts (docs/files-bridge.md), and --property 'Upstream|1.9.117'
and --text '<line>' information the phone app shows before an install
(PROTOCOL.md, "Package information"). Sequences must increase; an older
signed release needs the explicit recovery operation. Applications built with
NBTFoundry/sdk get the lifecycle contract, bridge channels, display and audio.
The kits' test application (apps/test) is built on NBTFoundry/sdk without
the QNX SDP (make test-apps, the SDK at NBT_SDK_DIR, default ../sdk) in two
forms: test, an ordinary QNX program, and test-runner, a module run by the
release's nbt-runner. Each shows "Hello world" on its configured background,
publishes a status label and exits on BACK. The self test's applications
(apps/selftest, make selftest-apps; make selftest-host for the desktop) ship
inside each release (docs/self-test.md). An application is uninstalled from its
settings in the manager (hold its name), or from a paired phone with confirmation
on the car; its executable, keys, state and data are removed, never following a
link.
- Two keys. The manager key signs manager releases only. One apps key signs every NBTFoundry application package; its public half is compiled into the manager, so a manager release's signature covers it. Private keys stay on the signing workstation.
- Developer keys. A developer adds their own RSA-3072 key from a paired phone and the driver confirms it on the car (up to eight). Their applications then install and update like ours; each application stays bound to the key that signed its first package (PROTOCOL.md).
- Local approval. Installs, updates, uninstalls and pairing are approved on the car, bound to the verified package digest; no HTTP route approves anything. Paired phones sign every request with a P-256 key kept in the phone's Keystore (docs/phone-access.md).
- Path policy. Everything lives under
/var/opt/nbt-manager; the policy checks the root's ownership and device, private parent directories, file types and link counts, and journal records never supply paths. QNX 6.5 lacks the directory-relative calls needed to close every race against a hostile process of the same user, so other processes of that user are trusted. - Applications' files. Files the user brings for an application (capability
files) are the one thing outside it:/mnt/share/nbt-manageron the hard disk, too large for the 492 MB/varpartition, under the same ownership, device and link checks, bounded by each package's signed policy (docs/files-bridge.md). - Health checks and rollback. A new application or manager version must show readiness and 10 seconds of heartbeats; otherwise the previous one is restored. The launcher supervises the worker and GUI with bounded restarts and persisted restart counts; a failing manager candidate returns to the known-good slot.
- Network. Local HTTP on the car's Wi-Fi Direct group is unencrypted, which is
why packages are signed and approvals are local. While a session listens, the
worker adds one packet-filter rule for its port through
/dev/pf(labelnbt-manager; the door's isnbt-door) and removes it afterwards;/etc/pf.confis never written. - Debug log. While
/var/opt/nbt-manager/manager/debug.logexists (128 KiB, one rotated copy) the GUI, worker and plugin log screens, input, sessions and installs; never signatures, nonces, Wi-Fi passphrases or package contents.
| Document | Contents |
|---|---|
| PROTOCOL.md | Control channel, application contract, settings, paired-phone HTTP protocol |
| docs/app-bridge.md | The application bridge: capabilities, versioning, life of an application |
| docs/bridge-design.md | Designs beyond bridge 1.4: car data, focus hold, autostart, favourite entry |
| docs/most-bridge.md | MOST messages for applications, under a signed policy |
| docs/gamepad-bridge.md | Wired USB gamepads |
| docs/controller-input.md | The iDrive controller and iDrive's focus hold |
| docs/input-capture.md | The capture shim inside iDrive |
| docs/hmi-restart.md | iDrive's start and how the shim is loaded and kept |
| docs/system-tools.md | Settings → Tools: restarting the head unit, enabling SSH |
| docs/install-flow.md | Installing and updating the manager; the launcher; recovery |
| docs/manager-release.md | Release format, slots and updates |
| docs/phone-access.md | Pairing and signed phone requests |
| docs/android-auto-wifi.md | Sharing the car's Wi-Fi with wireless Android Auto |
| docs/head-unit-interfaces.md | MOST, the PluginApp framework and car data in the firmware |
| docs/most-params.md | Reviewed MOST parameter layouts |
| docs/car-inventory.md | Copying the head unit's files for study |
| docs/car-diagnostics.md | Dumps, the watchdog, storage and tools on the head unit |
| docs/bench-checklist.md | Ordered validation on a bench unit |
| docs/in-car-procedure.md | The in-car test procedure for a test kit |
| plugin/README.md | The iDrive plugin: launch contract and ABI |
Copyright (c) 2026 Fabien Poussin. Original code, tests, build scripts and documentation are licensed under MPL-2.0; see LICENSE.
Original NBTFoundry logos, artwork and screenshots are under MPL-2.0, including copies in other NBTFoundry repositories. Third-party code, fonts, game data and their notices retain their own terms. Copyright permission for artwork does not grant trademark rights or imply endorsement by BMW AG or id Software.
See legal/README.md for third-party license notices.






