Skip to content

About

The OpenXPlay relay: Android app and Linux relay that receive CarPlay from the iPhone and pass it to the head unit. · OpenXPlay 中继:接收 iPhone 的 CarPlay 并转给车机的 Android 应用与 Linux 中继。

Resources

Stars

23 stars

Watchers

0 watching

Forks

Repository files navigation

English · 简体中文

OpenXPlay Relay

The relay of OpenXPlay: it connects to the iPhone as a CarPlay receiver and passes the session on to the head unit through OpenXPlay-Stream outputs, using the head unit’s browser or a connection option such as MyLink or MyLife. Nothing is installed on the head unit.

The relay runs on two platforms:

  • Android app. It runs on a phone and uses OpenXPlay-DiPlay as its CarPlay receiver and the Kotlin Stream outputs.
  • Linux relay. It runs on small Linux devices such as the UFI003 USB Wi-Fi dongle. The CarPlay receiver is written in Rust, and the Rust Stream outputs run as a separate oxp-relay process. Device support files live in OpenXPlay-Hardware.

Both platforms serve the same web admin page on port 6975, for Wi-Fi setup, iPhone pairing, outputs and MyLink pairing.

Download

Setup: openxplay.org/quick-start.

Layout

Directory Language Contents
android/ Kotlin (Gradle) The Android app (app/) and its build logic (buildSrc/)
rust/ Rust (Cargo) The Linux relay: direlay-linux (the openxplay-relay binary), carplay-iap2 and carplay-airplay (CarPlay protocol crates), vendor/ (patched dependencies), packaging/ (systemd unit and installer), scripts/
admin-web/ TypeScript (Vite) The admin page shared by both platforms

Build and test

The Android build includes DiPlay and Stream as Gradle composite builds. By default it expects them checked out next to this repository (../OpenXPlay-DiPlay, ../OpenXPlay-Stream); pass -Pdiplay.dir=PATH or -Pstream.dir=PATH (pointing at Stream's kotlin/ directory) to use other locations.

Part Requirements Commands
Admin page Node.js 20.19+ or 22.12+ cd admin-web && npm ci && npm test && npm run build
Android app JDK 17, Android SDK; the admin page and Stream's kotlin/web-receiver/dist built first cd android && ./gradlew testDebugUnitTest assembleDebug
Linux relay Rust stable cd rust && cargo test
Linux relay for aarch64 rustup target add aarch64-unknown-linux-musl, llvm-tools, clang rust/scripts/build-aarch64.sh

Every build uses the Stream and DiPlay commits in stream.lock and diplay.lock; the Android build warns when your checkout is another commit or has uncommitted changes (-Prelay.strictSources=true makes that an error). To move a lock, push the new commit to that repository's main, then run scripts/sources.sh bump stream (or diplay) and commit the lock file.

Contributing

Contributions are accepted under the OpenXPlay Contributor License Agreement. Accept it once by replying on a pull request to any OpenXPlay repository; the CLA check then passes in all of them.

License

This project is licensed under the GNU Affero General Public License v3.0 (AGPLv3), version 3 only.

Additional terms under AGPLv3 Section 7 apply to the material contributed by this project. Modified versions must preserve the attribution notice Powered by OpenXPlay. in the appropriate legal notices and in any prominent about, legal, footer, or attribution location presented by the user interface, together with a visible link to the original project: https://github.com/OpenXPlay/OpenXPlay-Relay. See NOTICE.

The CarPlay protocol crates rust/carplay-iap2 and rust/carplay-airplay, and a few files in rust/direlay-linux/src/network/, are derived from DiPlay and xcertplay. They remain under the GNU General Public License v3.0 only, and GPLv3 Section 13 permits combining them with this AGPLv3 project. Builds also include OpenXPlay-Stream (AGPLv3), so the relay offers its source to everyone who uses it over a network, including through the head-unit browser.

If your organization's policies do not permit the use of AGPLv3-licensed software, or if you wish to avoid the open-source obligations of AGPLv3, please contact us at: support@openxplay.org. Exemptions cover the code OpenXPlay owns; the parts derived from DiPlay and xcertplay stay under GPLv3.

This repository and its builds contain no Apple accessory (MFi) identity; a working setup needs one supplied by the user.

MyLink and MyLife are OpenXPlay’s own connection methods. Some features happen to work with the built-in CarLink and CarLife connectivity features on some head units. Compatibility is partial, and the experience falls well short of native support on Android phones. OpenXPlay is an independent project. It has no affiliation with the manufacturers or organizations behind these features and has received no endorsement or certification from them. Names such as CarLink and CarLife belong to their respective rights holders.

Trademark notice. Apple, iPhone, CarPlay, AirPlay, Siri, TestFlight, Apple Music, Bonjour, Mac, Safari, and Xcode are trademarks of Apple Inc., registered in the U.S. and other countries and regions. App Store is a registered service mark of Apple Inc. iOS is a trademark or registered trademark of Cisco. Android and Google are trademarks of Google LLC. CarLink, CarLife, Tesla, DLNA, Bluetooth, Wi-Fi, WeChat, WeChat Pay, Telegram, NetEase Cloud Music, Amap, NIO, Leapmotor, Honda, Roewe, XPeng, MG, GWM, Geely, Mazda, Zeekr, and any other vehicle brands, model names, app names, and third-party marks mentioned here are trademarks or registered trademarks of their respective owners. OpenXPlay is an independent project. It has no affiliation with these companies or organizations and has received no endorsement, sponsorship, or certification from them. These names are used solely to describe compatibility.

About

The OpenXPlay relay: Android app and Linux relay that receive CarPlay from the iPhone and pass it to the head unit. · OpenXPlay 中继:接收 iPhone 的 CarPlay 并转给车机的 Android 应用与 Linux 中继。

Resources

Stars

23 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages