Skip to content
Robert edited this page Mar 1, 2020 · 9 revisions

Instructions to compile current code using ubuntu 16.04 with WSL (windows Subsystem for Linux)

Install Ubuntu 16.04 as per https://docs.microsoft.com/en-us/windows/wsl/install-win10

Run the following commands

cd ~
sudo apt-get update
sudo apt-get install -y git zip libsdl2-2.0-0 libsdl2-ttf-2.0-0 libportaudio2 libpng12-0 gstreamer1.0-plugins-base-apps gstreamer1.0-plugins-bad gstreamer1.0-libav gstreamer1.0-alsa
git clone --recurse-submodules https://github.com/gartnera/headunit.git
cd ~/headunit/mazda 
sudo make clean release

If you encounter Errors were encountered while processing: blueman during apt-get install then use method from this link: https://askubuntu.com/questions/837817/installing-ubuntu-mate-desktop-on-16-04-blueman-configure-issues Commenting out invoke-rc.d dbus reload was what did the trick for me.

To open current Ubuntu WSL location in file explorer use command explorer.exe .

You will find a zip file named something like AndroidAuto_v1.05-52-g54b38d6.zip. Copy it over to location of your choice, unzip and copy contents of installer folder to USB stick and plug it into your car.

It should install automatically, restart navigation(nav button+mute) and follow the prompts if it doesn't. It may not inform about installation success. Just give it 10-15 minutes and manually reboot CMI (nav btn + mute for 10s).

Instructions to run wireless android auto on Mazda 3 with current headunit code

Start hotspot on mobile

Start head unit server on android auto in your mobile

Turn on wifi on your Mazda and connect it to the phone's hotspot

Android auto should start automatically