Skip to content
Projects

Lanye-z/MHI2Q-CarPlay-MMI-Mirror

View on GitHub

About

Mirror the MHI2Q MMI center display to the Virtual Cockpit.

Other Projects

How these counts are measured

Measured star growth

in 24h
0
in 7 days
0
in 15 days
+4
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README_EN.md

Original

MIB2 Toolbox — MMI Mirror V2.4.1

English | 简体中文

This project is designed for the Audi MHI2Q platform. It mirrors the MMI center display in real time to the map area of the Virtual Cockpit, with installation, start/stop control, updates, diagnostics, and uninstall/recovery integrated into the Green Engineering Menu / Toolbox.

[!NOTE] Sister project: CarPlay AltScreen
If you want to display the native CarPlay secondary display / AltScreen navigation view instead of mirroring the MMI center display, see:
MHI2Q-CarPlay-AltScreen 5fbd618e0dce8e95eb87c703956df850

[!WARNING] ⚠️ A note before you start

During the earlier testing phase, some people repackaged and resold test builds of this project without permission. Seeing freely shared test work used for profit was one of the main reasons public development was stopped.

The version published here is the most complete build retained from that testing period and has been validated in a real vehicle. This update is being released because the previously public build had become significantly outdated; it does not mean that long-term development has resumed.

Our main development focus has now moved to AltScreen, whose core development is already largely complete. Unless a major bug affecting normal use is found, this project will no longer receive regular development or feature updates. CarLife support may be considered in the future, but there is no commitment.

This project is free and open source. Reselling it is prohibited.

You are welcome to learn from it, study it, and discuss it, but please do not repackage free work and sell it for profit.

[!IMPORTANT] This project modifies system files on the head unit. Keep the SD card inserted and maintain stable power during installation, update, or uninstall operations.
After installation or update, you must reboot the head unit / HMI before judging the result.

Do not perform installation, update, uninstall, or troubleshooting operations while driving.


1fcb77abdb31026899b34a0c393d8056131ec8d28840b205975e61d9b2784842

https://github.com/user-attachments/assets/54a7e453-c473-428b-8cbe-08c460c59622

Current features:

  • Mirrors the MMI center display to the Virtual Cockpit map area in real time.
  • Supports Classic / Sport cluster layouts.
  • Supports Full / Small map-area changes.
  • Dynamically adjusts the mirror display region according to the current cluster state.
  • Supports source Crop, Scale, Offset, and natural edge clipping.
  • Retains the ~3-second startup logo while making the runtime watermark fully transparent; all original mirror/layout logic remains unchanged.
  • Supports manual start / stop.
  • Supports AutoStart: when CarPlay starts and becomes available, MMI Mirror starts automatically.
  • Supports direct in-place updates from older versions.
  • Supports diagnostics and complete uninstall.

Build note: This binary differs from the vehicle-verified V2.4.1 only in the embedded runtime watermark image data, which was replaced with fully transparent alpha. The startup logo and executable code are unchanged. This patched binary has not yet been vehicle retested; keep the original backup and verify before daily use.

Current native binary:

mmi-mirror-display
SHA256:
27dc33941146e2b3775569b8aefc7b344dd1815c390b43eb24d0349d6ddf7135

You can also verify the package using:

Toolbox/apps/mmi-mirror/V2.4.1-SHA256SUMS

Download and SD card preparation

Download the ZIP of the main branch and extract it.

Complete Toolbox installation media

If the SD card is intended for a first-time Toolbox installation, or if you want the original MIB2 High Toolbox functions that load resources from the SD card to remain usable, keep the complete Toolbox support structure instead of copying only Toolbox/:

SD CARD
├── metainfo2.txt
├── Toolbox/
├── Custom/
├── Modifications/
├── FAQ.md
├── Tools/          # PC-side helper tools; not required by the head unit runtime
└── Research/       # research/reference material; not required by the head unit runtime

The main paths referenced directly by on-unit Toolbox scripts are:

Toolbox/
Custom/
Modifications/
metainfo2.txt

Custom/ provides the SD-card folders and default resources used by GreenMenu, FEC, LSD, language, skin, splash-screen, VNC and related functions. Modifications/ contains payloads referenced by some original Toolbox menu actions. The earlier V2.4.1 install-only package removed these directories, which could leave a menu and script present while the resource it tries to install is missing from the SD card.

Toolbox already installed; MMI Mirror update only

If MQBCoding Toolbox is already installed and working on the head unit, the minimum media for updating this project's MMI Mirror can still be:

metainfo2.txt
Toolbox/

With this minimal media, however, other original Toolbox functions that depend on Custom/ or Modifications/ will not have their complete SD-card resources.

Do not keep the repository folder as an extra parent directory. For example, this is incorrect:

SD CARD
└── MHI2Q-CarPlay-MMI-Mirror-main
    ├── metainfo2.txt
    ├── Toolbox/
    ├── Custom/
    └── Modifications/

[!NOTE] On a head unit that has never had MIB2 High Toolbox installed, first-time deployment through Software Update / SWDL also depends on how that firmware validates metainfo signatures, variants, and regions. The current Toolbox/, metainfo2.txt, and core first-install scripts match the jilleb/mib2-toolbox upstream. If the process fails before Toolbox is installed with a signature error, variant conflict, release-info error, or Error 137, that is not caused by the missing Custom/ directory. Some firmware versions require an upstream first-install method matched to that unit; this repository does not bundle a supposedly universal donor package for every firmware and region.


Installation and usage

1. Install / update Toolbox

  • Preparing a complete Toolbox SD card for first-time use: keep metainfo2.txt, Toolbox/, Custom/, and Modifications/; using the complete repository root layout is recommended.
  • Toolbox is already installed and you only need to update MMI Mirror: metainfo2.txt and Toolbox/ are sufficient for this project's menus, scripts, and runtime files. Keep Custom/ and Modifications/ as well if you want the other original Toolbox install functions to remain fully usable from the same SD card.

Use the normal MIB2 High Toolbox installation / update procedure so that the head unit loads the new GEM menus, scripts, and runtime files.

After the Toolbox update is complete, it is recommended to:

Exit Green Engineering Menu
        ↓
Enter Green Engineering Menu again

This ensures that the new MMI Mirror menu is reloaded.


2. Install MMI Mirror

Go to:

Main
  ↓
MQBCoding
  ↓
Customization
  ↓
MMI Mirror

Main menu entries:

Menu item Function
Install/Update MMI Mirror First-time installation or in-place update
Start MMI Mirror Manually start MMI Mirror
Stop MMI Mirror Stop the current MMI Mirror session
AutoStart ON - start after MMI boot Enable automatic start: MMI Mirror starts after CarPlay becomes active
AutoStart OFF - manual start only Disable future automatic start
Copy MMI Mirror diagnostics to SD-card Copy diagnostic logs to the SD card
Clear temporary MMI Mirror logs Clear temporary runtime logs
Restore/Uninstall MMI Mirror Uninstall MMI Mirror and restore the pre-install state

Keep the SD card inserted and select:

Install/Update MMI Mirror

The installer will:

Check installation files on the SD card
        ↓
Stop any currently running older MMI Mirror session
        ↓
Create a new staged runtime
        ↓
Copy and verify the new binary / scripts / config
        ↓
Keep the old runtime temporarily as rollback
        ↓
Switch to the new runtime
        ↓
Run the binary loader self-test
        ↓
Run the launcher shell self-test
        ↓
Complete installation

If an error occurs during the update, the installer will try to restore the previous runtime instead of leaving a simple partial-overwrite state.

Installation log:

Backup/<VERSION>/MMIMirror/install_mmi_mirror.log

where <VERSION> is the current firmware version of the head unit.


3. After installation

After a successful installation, you must reboot the head unit / HMI.

Recommended flow:

Install/Update MMI Mirror
        ↓
Confirm installation succeeded
        ↓
Reboot head unit / HMI
        ↓
Wait for the system to fully boot
        ↓
Open the MMI Mirror menu again
        ↓
Start MMI Mirror
        ↓
Confirm the cluster mirror is working normally

Do not judge the result by starting MMI Mirror immediately after installation but before rebooting. The files on disk may already have been replaced while old processes or runtime state are still active in memory.


Reinstallation / version upgrade

Can an older MMI Mirror installation be upgraded directly?

Yes.

Under normal conditions, you do not need to uninstall the previous version first.

Simply use the new SD card package and run:

Install/Update MMI Mirror

The installer detects an existing installation at:

/mnt/app/root/mmi-mirror

If an existing installation or running MMI Mirror session is found, the installer first stops the old session and then switches to the new version using staged runtime + rollback handling instead of overwriting files one by one inside the live runtime directory.

Recommended upgrade procedure

If AutoStart is currently enabled, first run:

AutoStart OFF - manual start only

Then:

Prepare the new SD card package
        ↓
Install/Update MMI Mirror
        ↓
Confirm the installation log reports success
        ↓
Reboot head unit / HMI
        ↓
Manually Start MMI Mirror
        ↓
Confirm mirror and layout behavior are normal
        ↓
Re-enable AutoStart if desired

What is required for an upgrade?

You only need the new package:

metainfo2.txt
Toolbox/

Make sure the following files and directories all come from the same release package:

Toolbox/apps/mmi-mirror/mmi-mirror-display
Toolbox/apps/mmi-mirror/scripts/
Toolbox/apps/mmi-mirror/config.local
Toolbox/scripts/
Toolbox/GEM/

Do not upgrade by copying only a new mmi-mirror-display binary into an old package.

The V2.4.1 native binary, startup scripts, layout configuration, GEM menu, installer, and uninstaller are designed to work together and should be updated as one complete package.

What happens to config.local?

The current package includes:

Toolbox/apps/mmi-mirror/config.local

Therefore, Install/Update will prefer the configuration included on the SD card.

If you manually changed Crop / Scale / Offset values in an older version, back up the old config.local first and review those values again after upgrading.


Manual start and stop

Start

Go to:

Main > MQBCoding > Customization > MMI Mirror

Select:

Start MMI Mirror

MMI Mirror will begin capturing the center MMI display and output it to the Virtual Cockpit map area.

Stop

Select:

Stop MMI Mirror

This ends the current MMI Mirror session but does not uninstall the program.

You can start it again later with Start MMI Mirror.


AutoStart

After confirming that manual start works correctly, select:

AutoStart ON - start after MMI boot

This enables automatic start mode.

AutoStart does not immediately start the mirror just because the head unit has booted. After the required MMI runtime environment is ready, it waits for CarPlay to start and become available. MMI Mirror is started automatically only after CarPlay is detected as active.

Once AutoStart is enabled, the SD card does not need to remain inserted during normal daily use.

To disable it:

AutoStart OFF - manual start only

AutoStart OFF disables future CarPlay-triggered automatic starts.

If MMI Mirror is already running, it will not stop the current session automatically. To stop the current session, also run:

Stop MMI Mirror

Before updating or uninstalling

If AutoStart is enabled, it is recommended to disable AutoStart before performing an update or uninstall.

After the operation and reboot, test the system manually first, then re-enable AutoStart if needed.


Logs and troubleshooting

If you encounter:

  • MMI Mirror fails to start
  • MMI Mirror exits after starting
  • Black screen in the cluster
  • Incorrect mirror position
  • Sport / Classic layout switching issues
  • Full / Small display-region issues
  • Update or uninstall failure

Go to:

Main > MQBCoding > Customization > MMI Mirror

Select:

Copy MMI Mirror diagnostics to SD-card

Diagnostic data will be stored at:

Backup/<VERSION>/MMIMirror/RuntimeLogs/<TIMESTAMP>/

Installation log:

Backup/<VERSION>/MMIMirror/install_mmi_mirror.log

If you want to reproduce an issue with a cleaner temporary log state, use:

Clear temporary MMI Mirror logs

This clears disposable temporary logs only. It does not stop or uninstall MMI Mirror.


Uninstall / recovery

If AutoStart has been enabled, it is recommended to disable it first:

AutoStart OFF - manual start only

If MMI Mirror is currently running, you may stop it first:

Stop MMI Mirror

Then select:

Restore/Uninstall MMI Mirror

The uninstall script removes the current MMI Mirror runtime and restores relevant files according to the state recorded during installation.

During uninstall:

  • Do not remove the SD card.
  • Do not interrupt power to the head unit.
  • Do not force reboot midway through the process.

After uninstall completes, you must reboot the head unit / HMI.

Recommended flow:

AutoStart OFF
        ↓
Stop MMI Mirror
        ↓
Restore/Uninstall MMI Mirror
        ↓
Confirm uninstall succeeded
        ↓
Reboot head unit / HMI
        ↓
Confirm the stock display works normally

If uninstall reports an error, first preserve:

Backup/<VERSION>/MMIMirror/

including its logs and backup files. Do not repeatedly run cleanup operations or manually delete files on the head unit.


SD card backups

Installation, update, and uninstall scripts create:

Backup/<VERSION>/MMIMirror/

This directory may contain:

  • Installation logs
  • State information required for uninstall / recovery
  • Diagnostic logs
  • Runtime state snapshots
  • Required recovery files

Do not casually delete the Backup directory.

Keep it at least until installation, update, or uninstall has completed successfully and the head unit has been rebooted and verified to be working normally.


Branches

Current recommended version:

main
└── V2.4.1
    └── Vehicle validated

Older backup:

V2.2
└── Complete historical backup of the previous main branch

Open-source notice

This is a free and open-source project.

Free and open source. Reselling is prohibited.


Acknowledgements

Thanks to the following projects and authors for their foundational work and references:

Upstream files and components remain subject to their original licenses and copyright notices.

Explore related projects

Loading…