Skip to content

About

Android Auto (NBT-AAD) as an NBT Manager application

Topics

Resources

Stars

4 stars

Watchers

0 watching

Forks

Repository files navigation

NBTFoundry

Android Auto for NBT Manager

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.

NBT-AAD, native Android Auto for BMW NBT Evo (iDrive 6) and the Toyota GR Supra, as an application of NBT Manager: installed and updated from the phone, signed, health-checked and rolled back like every other application, with its settings in the manager.

NBT-AAD is by nanaisu and its contributors. This repository pins it as a submodule from NBTFoundry's fork: NBT-AAD v1.9.125 with six changes kept on our fork (seams S1, S6 to S10): its files under NBT_DATA_DIR, its MOST client over NBT Manager's most socket, its picture through the SDK's video decoder, the iDrive controller as the manager decodes it, its voice prompts through the manager's mixer and the car's microphone from the manager. The touch screen comes from the manager too, relayed by the adapter to the daemon's own touch forwarder. It adds an adapter, an SDK application that starts NBT-AAD's daemon and stands for it on the manager's bridge, and gives the daemon the SDK's audio library for its native audio.

Part of NBTFoundry: manager · sdk · mobile-app · installer · toolchains

Not affiliated with or endorsed by BMW AG, BlackBerry Limited, Toyota, Google or NBT-AAD's authors. QNX is a trademark of BlackBerry Limited; Android Auto is a trademark of Google LLC.

What it adds to NBT-AAD

  • Installed and updated from the phone: signed packages, a health check after each update, and a rollback when a version does not start.
  • Native audio through NBT Manager's mixer: Android Auto's sound plays with every other application's at once, on the source NBT Manager's Native audio setting picks. On Media source the volume goes down to 0 like the radio's (the default input stops at 25), and iDrive does not switch to its Media screen when Android Auto's sound starts.
  • Android Auto's picture through the SDK's video decoder: an input of its own on the head unit's decoder, so CarPlay's is never taken over, and a lost frame waits for the next keyframe instead of showing a damaged picture. The Video decoder setting switches back to NBT-AAD's own.
  • The phone app beside Android Auto: it reuses Android Auto's car Wi-Fi, so managing the car never drops Android Auto's connection (confirmed over Wi-Fi Direct).
  • Settings, logs and crash reports in the phone app. One Connection setting picks how the phone connects: wifi-direct (the car's Wi-Fi Direct group, the default), wifi-hotspot (the CarPlay hotspot, cars with the CarPlay licence) or usb (beta).
  • A page in the phone app (Car › Android Auto › Phone page): the connection, the Connection setting, the NBT-AAD version, and Restart Android Auto.

Status

A test build, not for use while driving. With NBT Manager's bridge 1.6 the adapter does what NBT-AAD's own iDrive plugin did: it holds iDrive's focus under Android Auto, steps aside for the reverse camera, park assist, camera views and screens the car opens, keeps Android Auto during calls, feeds the daemon its car data and has the manager open its port in the packet filter; see docs/upstream-interface.md. The package declares bridge 1.16 (the touch screen, the iDrive controller and the microphone through the manager) and carries what the phone app shows before an install (the NBT-AAD version, the project, its licence and notice), so it needs NBT Manager 0.21.3 or later. The car test is docs/car-test.md. The adapter refuses to start while another install's daemon runs.

flowchart LR
  MGR["NBT Manager<br/>(host)"] <-->|"bridge: ready · heartbeat<br/>status · show · stop<br/>hold · car data · net · phone page"| AD["adapter<br/>nbt-android-auto"]
  AD -->|"spawn · settings as NBT_* · flags<br/>MOST socket"| AAD["NBT-AAD daemon<br/>(v1.9.125 + S1, S6 to S10)"]
  AD <-->|"UDP 52790: ping · show · quit<br/>car words · hide<br/>/dev/shmem records"| AAD
  AAD -->|"native audio<br/>(nbt-asound.so)<br/>voice prompts"| MIX["NBT Manager's<br/>audio mixer"]
  AAD <-->|"MOST records<br/>(NBT_MOST_FD)<br/>controller states<br/>microphone"| MGR
  MGR -->|"touch frames<br/>(NBT_TOUCH_FD)"| AD
  AD -->|"touch messages<br/>(loopback UDP)"| AAD
Loading

Build and test

Linux host: gcc, Python 3, and the sibling checkouts ../sdk and ../manager.

git submodule update --init
make test           # protocol check against the pin, unit tests, the adapter with a fake daemon
make test-asan      # the same under AddressSanitizer/UBSan
make test-upstream  # NBT-AAD's own host tests, at the pin

Head unit (QNX 6.5 ARMv7), without the QNX SDP: the NBT toolchain's QNX target builds both programs (the SDK's docs/native-apps.md):

make -C ../sdk toolchain   # once
make qnx qnx-check
make vm-test               # QNX 6.5 SP1 under QEMU (the SDK's VM; needs the SP1 tools locally)
make package APP_KEY=<key> APP_VERSION=<x.y.z> APP_SEQ=<n>

qnx builds the adapter on the SDK, and the daemon from NBT-AAD's sources as its Makefile lists them, linked against the car's own libraries (libsocket, libssl, libcrypto, libscreen, libusbdi, liba2i_client) by name; then appends the daemon to the adapter: build/nbt-android-auto-qnx is the package's one executable.

Releases

.github/workflows/ci.yml runs the protocol check, the tests, the same under ASan/UBSan, NBT-AAD's own tests and the head-unit build on every push and pull request. A vX.Y.Z tag runs .github/workflows/release.yml: NBT Manager's application release workflow builds the package with the NBT toolchain (no QNX SDP, no private image), signs it with the apps key after approval (the release environment, secret APPS_SIGNING_KEY, tags v* only) and publishes android-auto-X.Y.Z.nbt. The tag is this repository's own version (the sequence is X·10⁶ + Y·10³ + Z); each release names the NBT-AAD commit it carries. release/sdk.ref is the SDK commit that both the release and ci.yml build against: SDK 0.6.0. A local test package takes APP_VERSION and APP_SEQ.

Settings

src/settings.def is the one table: the manager's choices, and the NBT_* variable or flag file each gives the daemon. make package-args writes release/package.args from it; make test fails when either is stale or names something the pinned daemon does not have.

Moving the pin

git -C third_party/nbt-aad fetch origin && git -C third_party/nbt-aad checkout <tag or seam branch>
make test test-upstream && make qnx-check vm-test
make notice         # when NBT-AAD's notices changed

Changes NBT-AAD needs stay on branches of our fork, NBTFoundry/Supra-iDrive6-Android-Auto, rebased onto each NBT-AAD release the pin moves to.

License

Copyright (c) 2026 Fabien Poussin. This repository's original code, tests, build scripts and documentation are licensed under MPL-2.0; see LICENSE.

NBT-AAD is licensed under the PolyForm Noncommercial License 1.0.0 (LICENSES/PolyForm-Noncommercial-1.0.0.txt). The package contains it, so the package is for noncommercial use only and carries its Required Notice:

Required Notice: Copyright (c) 2026 nanaisu - NBT-AAD (https://github.com/Sq00ky/Supra-iDrive6-Android-Auto)

See legal/README.md for all notices.

About

Android Auto (NBT-AAD) as an NBT Manager application

Topics

Resources

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages