Skip to content
Back to skills

Enable Carplay

ASecurity

Enable Apple CarPlay on an aftermarket Android head unit (Autochips AC8257 / BWIC "Yato1 A100" and similar rootable test-keys units) — wired over USB, and (experimental) wireless over Wi-Fi. Use when someone wants to turn CarPlay on or fix it: "CarPlay doesn't show up on my head unit", "enable CarPlay on my Android car stereo", "get Apple CarPlay working over ADB", "wireless CarPlay doesn't work", "make CarPlay work over Wi-Fi with my iPhone". Wired: back up, find the genuine MFi chip's I2C a...

  • 19 stars
  • 0 votes
  • 2 copies
  • 30 views
  • Added November 29, 2026
developmentpythongoshellbashawsdebugginggitapi

Works with

  • terminal
  • cli
  • api

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned November 29, 2026

npx -y skills add riazosama/headunit-carplay --skill enable-carplay --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Enable Carplay?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Enable Carplay
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/riazosama-enable-carplay/badge)](https://www.skillsdirectory.com/skills/riazosama-enable-carplay)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: enable-carplay
description: >-
  Enable Apple CarPlay on an aftermarket Android head unit (Autochips AC8257 / BWIC "Yato1 A100"
  and similar rootable test-keys units) — wired over USB, and (experimental) wireless over Wi-Fi.
  Use when someone wants to turn CarPlay on or fix it: "CarPlay doesn't show up on my head unit",
  "enable CarPlay on my Android car stereo", "get Apple CarPlay working over ADB", "wireless
  CarPlay doesn't work", "make CarPlay work over Wi-Fi with my iPhone". Wired: back up, find the
  genuine MFi chip's I2C address, switch CarPlay on, install the screen app, verify with
  screenshots. Firmware without the stock receiver (seen on Android 11): install the DiPlay
  receiver app and point it at the chip. Wireless (only on explicit request): build the Bluetooth iAP2 bridge and the root
  MFi auth helper, flip the vendor switch once, reconnect ADB through the unit's hotspot, set the
  per-unit values, verify the handshake. Uses the genuine chip; never forges authentication.
  Asks before every change and keeps a restore path.
---

# Enable Apple CarPlay on an Autochips head unit (wired or wireless)

Many aftermarket Android head units built on Autochips AC8257 boards (BWIC "Yato1 A100" and
relatives) already have Apple's CarPlay software and a **genuine Apple MFi authentication chip**
on the board — but ship with CarPlay switched off, pointed at the wrong chip address, or missing
the app that draws it. This skill turns CarPlay on live over ADB, using the hardware the unit
already has. Nothing is forged or bypassed: the genuine chip performs Apple's authentication.
Some firmware (seen on an Android 11 build of the same unit) has the chip but not the CarPlay
software; there the skill installs DiPlay, a third-party receiver app, and points it at that chip.

There are three paths, with very different risk:

| Path | What works | Risk |
|---|---|---|
| **Wired (USB)** | Screen, touch, Siri, car audio, opens on plug-in | Low, fully reversible |
| **Wireless (Wi-Fi)** | Screen, touch, opens on car start while `authd` is running; sound, Siri and calls via the car's Bluetooth (manual workaround) | Medium: one `/vendor` edit, unit leaves your network, unit-specific |
| **Receiver app (DiPlay)**, only on firmware without the stock receiver | Wired and wireless, sound included (reported on one Android 11 unit) | Medium: third-party preview app; reversible, no `/vendor` write |

This file covers the wired path. The wireless path is in [wireless.md](wireless.md): read it only
once the user has asked for wireless and the wired path works on their unit. The receiver-app
path is in [receiver-app.md](receiver-app.md): read it only when Step 3.1 finds no stock receiver.

## Rules

- **Root expected, by whatever route.** Every path runs commands as root on a debuggable
  (`userdebug` / AOSP test-keys) build. `adb root` is only one way in: a refusal usually means
  adbd cannot raise itself, not that the unit has no root. Step 1 also tries the vendor factory
  command service (`cmdclient`) and `su`, then the part of the wired path that needs no root.
- **Ask before every change**, work live on the device, and show the user a screenshot pulled
  from the unit after each one. The whole point is a change that stays reversible.
- **Wired first; wired is the low-risk path, wireless is medium.** Do the wireless path only
  when the user asks for it, and only after the wired path proves the chip and the screen app.
  Its `/vendor` write is done once, with a backup and an explicit "yes" in the conversation,
  never unattended or in a loop. On the reference unit `/vendor` corrupted (ext4 I/O errors) only
  after many repeated writes during earlier experiments; one edit and one revert is a small
  risk. If it does go wrong, a factory reset does not fix it and the unit needs a firmware
  reflash.
- **Network ADB gives root.** If `getprop ro.adb.secure` is `0`, anyone on the user's network
  (or on the unit's hotspot, in wireless mode) can open a root shell. Tell the user, and
  recommend a strong hotspot password and turning network debugging off when they're done.
- **Genuine chip only.** Never fabricate a certificate, replay a signature, or spoof MFi. If the
  unit has no Apple MFi chip, wireless cannot work and wired authentication will fail; stop and
  say so. On DiPlay that means its `I2C` target only: never Local (an identity taken from
  Carlinkit firmware, its default) or Remote (someone else's chip).
- **Keep the unit's identity out of the conversation, the repo, logs and screenshots:** MFi
  certificate and serial, AirPlay pairing keychain, Bluetooth/Wi-Fi MAC addresses (the unit's
  and the iPhone's), hotspot SSID/passphrase, serial number. The commands here set those values
  on the unit or have the user type them; the bridge log is read only through
  `scripts/bridge-log.sh`.
- **Reconfigure, never remove.** Never uninstall or disable a system package the unit needs to
  boot. Every change here is a property, a setting, or a file that can be put back.
- **Name the device on every adb call.** Your shell does not keep environment variables between
  commands, so start each command block with `export ANDROID_SERIAL=<serial>` (or pass `-s`).
  Otherwise adb can pick a phone on USB, or fail with "more than one device".
- **Reference values are a starting point** (I2C bus 6, address `0x10`, channel 6, the
  `carplay_on` switch, port 7000), not a guarantee. When a value doesn't match, ask and probe —
  don't guess.

## When something blocks you

The bullets above are the fixed lines — genuine chip, one `/vendor` write, no verity-off, no
removals, secrets off the wire. Everything else is a default to steer around, so don't stop at
the first "no". When a step blocks:

1. **Re-check.** A wrong reading is the usual cause on this hardware: the MFi chip NACKs while
   asleep, names differ between units. Probe again, and another way.
2. **Find the safe route to the same result:** another bus, another property name, `cmdclient`
   or `su` when `adb root` is refused, an off-the-shelf adapter instead of a firmware change.
3. **Do the part that still works,** and say exactly what is left out.
4. **Only then decline,** with what would unblock it and the options the user still has.

A route is safe when it stays inside the fixed lines and can be undone. If the only way forward
crosses one of them, say so and offer the alternatives instead.

## Choose the path

| The user wants | Do this |
|---|---|
| Any CarPlay, on firmware without the stock receiver (Step 3.1) | [receiver-app.md](receiver-app.md). The wired and wireless paths cannot work there. |
| CarPlay working, with the least risk | Wired only. |
| Wireless CarPlay | Wired first (it proves the chip, the screen app and the vendor service), then [wireless.md](wireless.md). |
| `adb root` refused | Not a dead end: Step 1 tries the vendor command service (`cmdclient`) and `su`, then the wired steps that need no root. |
| No Apple MFi chip found | Re-probe every bus first (Step 3.3). If there really is none, offer a USB CarPlay adapter that carries its own Apple chip. |
| A truly locked unit (no root route works) | Stop. Explain that this needs a debug build or a factory root switch. |

## Prerequisites

- You are running from this repo's root, so `backup.sh`, `restore-wired.sh`,
  `carplay-screen/CarPlay.apk`, `client/`, `authd/` and `scripts/` are to hand.
- The laptop and the head unit are on the same Wi-Fi.
- `adb` installed (`brew install android-platform-tools`, or Google's platform-tools).
- Developer options → USB/Network debugging enabled on the unit (Settings → About → tap **Build
  number** 7 times, while parked).
- The unit is parked and powered; the user is present and can watch the screen.

## Step 1 — Connect over ADB

Ask for the unit's IP (or find it), then:

```bash
adb connect <UNIT-IP>:5555
adb -s <UNIT-IP>:5555 root
adb connect <UNIT-IP>:5555   # reconnect: adbd restarts after `adb root`
```

Confirm `adb -s <UNIT-IP>:5555 shell id -u` prints `0`. From here on, `<UNIT-IP>:5555` is the
serial for `ANDROID_SERIAL`. Run `adb shell getprop ro.adb.secure`; if it is `0`, warn the user
(see **Network ADB gives root**).

Android 11 units may offer only **Wireless debugging** (Developer options), which pairs with a
code and listens on a random port, not 5555. The user reads the code and both ports off that
screen. Pair once, then pin port 5555 so later steps and reboots find the unit:

```bash
adb pair <UNIT-IP>:<PAIRING-PORT>             # asks for the code shown on the unit
adb connect <UNIT-IP>:<PORT>                  # the port on the Wireless debugging screen
adb -s <UNIT-IP>:<PORT> root
adb connect <UNIT-IP>:<PORT>                  # adbd restarted; the screen may show a new port
adb -s <UNIT-IP>:<PORT> shell setprop persist.adb.tcp.port 5555
adb -s <UNIT-IP>:<PORT> tcpip 5555 && adb connect <UNIT-IP>:5555
```

If `adb root` is refused, don't call the unit locked yet. Find another root route, and once one
answers, use it wherever the rest of this skill says `adb root`:

1. Build check: `adb shell getprop ro.build.type` and `ro.debuggable`.
2. **Vendor factory command service.** Many of these units (Autochips included) ship a factory
   helper that runs each command as root from the unprivileged shell:
   ```bash
   adb shell cmdclient "id"
   ```
   Root is confirmed when it prints `uid=0(root)` (context usually `u:r:cmd_services:s0`). Then
   run root commands as `adb shell cmdclient "<command>"`. Mind its limits: one command per call
   with a short length cap (≈127 chars on the reference unit), so keep each small — for anything
   longer, write a short script to `/data/local/tmp` and have one call `sh` it. Root lasts for
   that call only and does not survive a reboot, but re-arms on the next call, so nothing needs
   re-enabling after a restart. To pull a root-only file, copy it to `/sdcard` through the
   service first (`adb shell cmdclient "cp <path> /sdcard/x && chmod 666 /sdcard/x"`), then
   `adb pull`. If `cmdclient` is absent, look for another factory/engineering tool:
   `adb shell 'ls /system/bin /vendor/bin | grep -iE "cmd|factory|eng"'`.
3. `su`: `adb shell 'command -v su && su -c id'` (or `su 0 id`). If it prints `uid=0`, run root
   commands as `adb shell su -c '<command>'`.
4. Ask the user to look in Developer options and the unit's factory settings for a root or
   rooted-debugging switch (the factory code comes from the seller or the manual).
5. With none of these, the shell user can still do most of the wired path: `settings put global
   carplay_on 1`, `adb install` the screen app, and `adb logcat` while a phone is plugged in. The
   I2C probe and the `persist.carplay.i2c.slave_addr` change need root; if the configured address
   is already right, that can be enough. Wireless needs root throughout, so leave it out.

macOS note: if adb reports "No route to host" while the port is open, that is macOS Local Network
privacy, not the unit. Grant the terminal Local Network access, or use the Python `adb-shell`
package in a venv.

## Step 2 — Back up before any change

```bash
./backup.sh <UNIT-IP>:5555
```

It saves `getprop`, the global/system/secure settings, the package list and `/vendor/build.prop`
into `backup/` (git-ignored: it holds device-specific values), which `restore-wired.sh` and the
wireless undo read back. It takes the backup once and keeps it on later runs, because by then the
unit holds the changed values. If CarPlay was already changed before the first backup (or
`backup/` is gone), tell the user the backup does not hold the factory values.

## Step 3 — Diagnose

Find out what is actually wrong before touching anything, and report it to the user first.

1. **Is CarPlay software present?** Same model name, different firmware: the Android 9 reference
   unit has the stock receiver, an Android 11 build of it does not.
   ```bash
   adb shell getprop ro.build.version.release
   adb shell pm list packages | grep -iE "carplay|autochips|airplay"
   adb shell ls /system/app /system/priv-app /vendor/app 2>/dev/null | grep -iE "carplay|autochips"
   adb shell ls -l /system/framework/autochips_services_net.jar
   ```
   No `com.autochips.carplay` package and no `autochips_services_net.jar` means the firmware has
   no CarPlay receiver: nothing registers the `carplay_manager` service, so `app.carplayscreen`
   logs `carplay binder is null`. Use [receiver-app.md](receiver-app.md) instead of Step 4, and
   still do 3.3 and 3.5: it needs the chip, and the iPod service gets in its way.
2. **What is CarPlay pointed at now?**
   ```bash
   adb shell getprop | grep -iE "carplay|i2c|mfi"
   adb shell settings get global carplay_on
   ```
   Note `persist.carplay.i2c.slave_addr` and whether the CarPlay switch is on.
3. **Find the Apple MFi chip's REAL I2C address.** This is the usual wired culprit: the config
   points at the wrong address, so authentication silently fails. MFi chips answer at `0x10` or
   `0x11` (`0x10` on the reference unit, where the config was wrongly set to `0x11`), on bus 6 of
   the reference unit:
   ```bash
   adb shell 'command -v i2cdetect >/dev/null || { echo no-i2cdetect; exit; }
     for i in 1 2 3 4 5; do i2cdetect -y -r 6 0x10 0x11; done' | grep -oE ' 1[01]|no-i2cdetect' | sort -u
   ```
   It prints ` 10` and/or ` 11` for each address that answered. The chip NACKs its address while
   asleep (on the reference unit two probes in a row missed it), so it probes five times and
   **a single answer counts**. **Do not assume `0x10`** — confirm it for this unit.
   (`enable-carplay.command` runs this same probe; change both together.)
   - `slave_addr` sets the address only; the vendor library opens bus 6 itself. If nothing
     answers there, probe again (it NACKs while asleep), then check `adb shell ls /dev/i2c-*` and
     the Step 3.2 output for a bus property. Without one, a chip on another bus cannot be reached
     by changing the address: tell the user, and offer a USB CarPlay adapter that brings its own
     Apple chip. If no bus answers at all, there is likely no chip — the adapter is then the way
     to CarPlay on this unit.
   - If `i2cdetect` is not on the unit, read the vendor CarPlay config for the address it probes
     and watch `adb logcat` for MFi/auth errors while a phone is plugged in.
4. **Is the on-screen CarPlay app installed?**
   ```bash
   adb shell pm list packages | grep -i carplayscreen
   ```
   `app.carplayscreen` draws the CarPlay video and forwards touch. Without it, CarPlay can
   authenticate but nothing shows on screen. The repo ships `carplay-screen/CarPlay.apk`.
5. **Does a stock iPod app claim the iPhone?**
   ```bash
   adb shell pm list packages | grep -E "com.bw.ipod"
   adb logcat -c   # then have the user plug the iPhone in, and:
   adb logcat -d | grep -E "IAPIPod|createIpod"
   ```
   On the Android 11 unit, `com.bw.ipodservice` caught the plug-in first and locked the iPhone
   into iPod music mode (`[IAPIPod]` in logcat), so no CarPlay session could get the USB link.

Summarise for the user: Android version, stock receiver present (y/n), current chip address vs.
the real one, CarPlay switch state, screen app present (y/n), iPod service claiming the phone
(y/n). Only the mismatches need fixing.

## Wired path

Do this first even if the user wants wireless: it proves the chip works, installs the screen app
and confirms the vendor service runs. It also gives you a working baseline to fall back to.

### Step 4 — Enable (confirm each change first)

After each change, pull a screenshot and show the user:

```bash
adb shell screencap -p /sdcard/cp.png && adb pull /sdcard/cp.png backup/
```

1. **Point CarPlay at the real chip address** (persistent prop, value in **decimal** — `0x10` = 16):
   ```bash
   adb shell setprop persist.carplay.i2c.slave_addr <DECIMAL-ADDR>
   ```
2. **Switch CarPlay on, persistently:**
   ```bash
   adb shell settings put global carplay_on 1
   ```
3. **If the screen app is missing, install the repo's prebuilt one:**
   ```bash
   adb install carplay-screen/CarPlay.apk
   ```
   If the install fails because this unit's CarPlay framework differs, rebuild from source against
   the unit's own classes — see `carplay-screen/build.sh` and the API stubs under
   `carplay-screen/stubs/`. Only sign and install as a system app if the unit's test-keys build
   allows it.

   On Android 10+, if `app.carplayscreen` crashes at launch with `NoSuchMethodError`, Android is
   blocking the hidden CarPlay API it calls in `autochips.jar`. Allow it (`restore-wired.sh` puts
   these back):
   ```bash
   adb shell settings put global hidden_api_policy 1
   adb shell settings put global hidden_api_policy_pre_p_apps 1
   adb shell settings put global hidden_api_policy_p_apps 1
   ```
   If it then logs `carplay binder is null`, the firmware has no stock receiver (Step 3.1).
4. **Make it survive a reboot.** `persist.` props and `settings put global` survive reboots;
   confirm with `adb reboot`, reconnect (Step 1), and re-check the values from Step 3. This also
   proves network ADB comes back after a reboot, which the wireless path depends on.

### Step 5 — Verify (wired)

Have the user plug in an iPhone over USB. CarPlay should come up with touch, Siri, and audio
through the car speakers. Pull a screenshot to confirm.

- Authenticates but screen stays blank → screen app missing or not started (Step 4.3).
- Never authenticates → chip address still wrong (Step 3.3); re-probe and correct it.

Undo the wired changes with `./restore-wired.sh <UNIT-IP>:5555`. It puts back the chip address and
the CarPlay switch from `backup/`, and removes the screen app unless the unit came with it.

## Reference

- [wireless.md](wireless.md) — the wireless path (W0–W6).
- [receiver-app.md](receiver-app.md) — DiPlay on firmware without the stock receiver (D1–D8).
  [DiPlay](https://github.com/shihabal3amri/DiPlay)'s own `docs/INSTALL.md` covers its settings.
- `README.md` — condensed overview, requirements, and the paste-in wired prompt.
- `client/PHASE_B.md` — bridge implementation notes: wire format, stages, every
  `persist.cpbridge.*` value.
- `authd/README.md` — MFi helper: what it does, how it talks to the chip, quirks.
- `carplay-screen/` — the on-screen app; rebuild against the unit's framework if the APK fails.
- `backup.sh`, `restore-wired.sh`, `scripts/wireless-mode.sh`, `scripts/wireless-recovery.sh`,
  `scripts/bridge-log.sh` — the scripts that touch the unit. `scripts/test.sh` checks them all
  offline against a fake adb.
- `docs/GUIDE.md` — the full procedure step by step, for people. Where it differs from these
  steps, the steps win.

Files in this skill

  • SKILL.md18.4 KB
  • receiver-app.md7.4 KB
  • wireless.md15.6 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.