Android Auto Headunit App - Beta - 2004 to 2016 Mazda 3 Forum and Mazdaspeed 3 Forums
User Tag List

 291Likes
Reply
 
LinkBack Thread Tools Display Modes
post #1 of 1148 (permalink) Old 02-11-2016, 11:39 PM Thread Starter
spadival
Senior Member
Points: 10,331, Level: 67
Points: 10,331, Level: 67 Points: 10,331, Level: 67 Points: 10,331, Level: 67
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2015
Posts: 289
Thanks: 52
Thanked 192 Times in 50 Posts
Mentioned: 52 Post(s)
Tagged: 0 Thread(s)
       
Unofficial Mazda Connect Android Auto Headunit App

This is highly experimental - Use at your own risk and no warranties provided.


UPDATE - I will no longer be able to support this app as I am selling my Mazda. However, @agartner and others should be able to continue the good work that they have been doing.

Please use the chatroom for discussions/support: https://gitter.im/gartnera/headunit





Unofficial port of Android Auto Headunit App to Mazda Connect CMU. The app makes extensive use of jni functions that were originally developed by Mike Reid as part of his Android app.

If you are happy with the result, please donate to Mike Reid (mikereidis AT gmail.com).

CREDITS: Mike Reid, Konsulko, A Gartner, @Siutsch
--------------



INSTALL
----------

Only use with CMU Firmware Version >= V55 . Do not use with V31/33! I suggest that you read through the Index thread to understand what exactly are you doing and for any troubleshooting.


Download the latest zip file from Github Release page AND FOLLOW THE INSTRUCTIONS NOTED ON THE RELEASE PAGE.



VIDEO
-------
https://youtu.be/sJZKQGGUl0w

https://youtu.be/ypxSDt2I_bo



--------

Version 0.8 Change log
----------------------------------
1. Performance improvements via sequential operation and removal of mutex locks - provided by @agartner
2. Changed Video sink to mfw_isink - supposed to be faster and also now opera status (volume) bar can be overlayed if required - need some javascript expertise to make it a floating bar.


Version 0.7 Change log
----------------------------------
1. USB Audio is enabled - to actually use this, you need a separate USB thumb drive in one of the slots, as this is the only way for you to be able to select USB audio in the CMU. Please do not try to use MTP option on your android phone, as it is not going to work.. Also, you need at least one mp3 or any music file in the USB thumb drive (I used http://www.xamuel.com/blank-mp3-files/point1sec.mp3)

2. Since there was a severe case of audio stuttering once for me, I have included an option to disable USB audio and switch back to AUX. You can do this by placing a file called hu_disable_audio_out in the SD CARD (which, of course, means you now need an SD card ). I haven't actually tested this out as USB Audio worked fine at all times except that one instance.

3. Nexus fix provided by @agartner

4. Debug version of the app - to be run from ssh only - download from here . Copy to /data_persist/dev/bin, chmod 755 and run after executing the following command:

Code:
export LD_LIBRARY_PATH=/data_persist/dev/androidauto/custlib:/jci/lib:/jci/opera/3rdpartylibs/freetype:/usr/lib/imx-mm/audio-codec:/usr/lib/imx-mm/parser:/data_persist/dev/lib:


Version 0.6 Change log
----------------------------------
1. Voice control should not cause app to quit
2. More VIDs added, including a possible fix for Nexus phones with VID 0x18D1


Version 0.5 Change log
----------------------------------
1. Voice control enabled
2. More VIDs added, including a possible fix for Nexus phones with VID 0x18D1
3. Graceful kill when reverse gear engaged - App will restart when reverse gear is disengaged. However, reverse camera is still dark (because same V4L device?) as app isn't killed fast enough.


Version 0.4 Change log
----------------------------------
1. Performance improvement to the gstreamer pipeline - testing shows no issues with Nav now. However, need some feedback to check if it is the same for everyone.
2. Removed auto switch to Bluetooth as it causes problems with the UI. Need to switch manually now.
3. Added a bunch of other Vendor id to Android USB Device VID list
4. Removed aaserver and switched to websocketd.
5. New gstreamer plugin h264parse compiled and added.
6. UI now has USB/Gstreamer debug message window


Version 0.3 Change log
----------------------------------
1. Night Mode - Simple logic for now - 6AM to 6PM is day .. Night afterwards
2. First attempt at making libssl/libusb calls thread safe (Voice control will crash otherwise ocassionally).
3. Increased USB send timeouts for better screen refresh.
4. Added LG's Vendor id to Android USB Device VID list


Version 0.2 Change log
----------------------------------
1. Code sync with Mikereidis/Master
2. aaserver - microhttpd server to launch and pass status back to UI - no more messy sh, watch and other hoops.
3. UI integration using Herko ter Horst's method.
4. Exit AA using on screen menu (last screen with speedo icon)

Last edited by spadival; 05-26-2016 at 05:13 PM. Reason: Version 0.82
spadival is offline  
The Following 46 Users Say Thank You to spadival For This Useful Post:
3rdman (02-22-2016), Alexander31 (02-12-2016), anderml1955 (02-12-2016), asdtfdr (02-15-2016), blabla1a (03-10-2016), charlygordon (03-01-2016), coolman (03-03-2016), Cubexg (02-27-2016), deadeyye (03-24-2016), deathbysushi (02-23-2016), drean179 (04-19-2016), fitisgo (02-12-2016), huecobros (02-12-2016), liu885 (02-23-2016), mabadse (02-13-2016), mascara (03-08-2016), Mazda3NY (03-04-2016), mcmguti (04-22-2016), MechaBouncer (02-12-2016), memo (08-30-2016), mid (03-18-2016), mottomi (05-19-2016), mzd (03-18-2016), mzd3-k (02-22-2016), petous (04-03-2016), polskar (02-12-2016), praded2007 (04-26-2016), qbord (02-12-2016), Rcin2008 (04-02-2016), rdriggett (02-22-2016), rmaqui (02-24-2016), rockdivus (04-29-2017), rtah7321 (03-28-2016), serezhka (03-06-2016), Siutsch (02-12-2016), t3chn0m4nc3r (04-06-2016), thesid (03-19-2016), tireironmike (02-24-2016), tomo60 (03-14-2016), trookam (02-12-2016), USCTrojan4JC (03-11-2016), vax (02-24-2016), wizuriel (02-14-2016), xbat (02-12-2016), xenosap1en (03-29-2016), zzoomzoom (02-13-2016)
Sponsored Links
Advertisement
 
post #2 of 1148 (permalink) Old 02-12-2016, 02:14 AM
kostya
Junior Member
Points: 863, Level: 15
Points: 863, Level: 15 Points: 863, Level: 15 Points: 863, Level: 15
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2016
Posts: 4
Thanks: 2
Thanked 0 Times in 0 Posts
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
 
Video PLS!
kostya is offline  
post #3 of 1148 (permalink) Old 02-12-2016, 02:31 AM
ugotrottola
Member
Points: 1,092, Level: 17
Points: 1,092, Level: 17 Points: 1,092, Level: 17 Points: 1,092, Level: 17
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2016
Posts: 45
Thanks: 1
Thanked 6 Times in 6 Posts
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
 
Hi, you have done a great job !!!
I'm just starting to test different tweaks and my goal is to understand how they work and make the best modding on my infotratment.

I will be really glad to prepare an USB installer and test the app.

Can you give me some more information on it ?
1. Does the androidauto.js work as i download or i need to receive the working version from you ?
2. the data_persist folder, should be copied directly in the root of the CMU ?

Thanks if you would like to answer me.

Another question :
Wich software development tool you use to prepare the tweak ?
ugotrottola is offline  
Sponsored Links
Advertisement
 
post #4 of 1148 (permalink) Old 02-12-2016, 02:35 AM
Siutsch
Senior Member
Points: 19,412, Level: 88
Points: 19,412, Level: 88 Points: 19,412, Level: 88 Points: 19,412, Level: 88
Activity: 5%
Activity: 5% Activity: 5% Activity: 5%
 
Join Date: Aug 2015
Location: Northern Germany
Posts: 714
Thanks: 195
Thanked 486 Times in 162 Posts
Mentioned: 93 Post(s)
Tagged: 1 Thread(s)
               
Quote:
Originally Posted by spadival View Post

Appreciate if someone can make a USB install.
I will put it in new AIO V1.37.

If I got new Speedometer 4.0 from Diginix, I will upload new version.
spadival, anderml1955 and feng0917 like this.
Siutsch is offline  
The Following 3 Users Say Thank You to Siutsch For This Useful Post:
anderml1955 (02-12-2016), spadival (02-12-2016), wizuriel (02-14-2016)
post #5 of 1148 (permalink) Old 02-12-2016, 02:40 AM
trookam
Member
Points: 8,590, Level: 62
Points: 8,590, Level: 62 Points: 8,590, Level: 62 Points: 8,590, Level: 62
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2015
Posts: 58
Thanks: 9
Thanked 78 Times in 15 Posts
Mentioned: 6 Post(s)
Tagged: 0 Thread(s)
   
Quote:
Originally Posted by spadival View Post
This is highly experimental - Use at your own risk and no warranties provided.

INSTALL
------------

Written with assumption that speedometer app is already installed - i.e. watchdog is disabled, opera.ini has User JavaScript=1 and Allow File XMLHttpRequest=1

1. Download from https://github.com/spadival/headunit...dautoV0.10.zip (click on Raw button)

2. Unzip - the content should end up under /data_persist/dev/androidauto and /data_persist/dev/bin/ on the CMU

3. Copy /data_persist/dev/androidauto/androidauto.js to /jci/opera/opera_dir/userjs/

4. Add the following lines to /jci/scripts/stage_wifi.sh

Code:
# Android Auto action watch
watch -n 1 /data_persist/dev/androidauto/huaction.sh &
5. Run the following commands

Code:
chmod 755 /jci/scripts/stage_wifi.sh
chmod 755 /data_persist/dev/bin/headunit
chmod 755 /data_persist/dev/bin/nc
chmod 755 /data_persist/dev/androidauto/huaction.sh
chmod 666 /data_persist/dev/androidauto/headunit*
Appreciate if someone can make a USB install.

OPERATIONS
-------------------

1. Install Android Auto app on your phone
2. Connect the phone to USB and pair the phone bluetooth with the CMU
3. Click on the AA icon under Applications Menu on the CMU
3. A black screen with credits should open up first and input will automatically switch over to Bluetooth Audio
4. Android Auto will then start. If it does not, pull out the USB and start over again (or check the installation.)
5. Only way to stop AA now is to disconnect the USB cable.

WHAT DOES NOT WORK / TO-DO
------------------------------------------------
1. Voice Control
2. Touch drag / multi touch
3. Google Maps night mode
4. Occasional crashes (Hopefully fixed in this version)
5. A better way to stop the app (using the AA onscreen menu item)

androidauto.js is obfuscated to prevent people ripping off and selling the app. If you PM me, I will send a clean version if you are one of the recognized developers and want to improve on it.

If you are happy, please donate to Mike Ried (mikereidis AT gmail.com)

Great job man!!!! can you share some example video?? i can help you making a usb intall script.
spadival likes this.
trookam is offline  
The Following 4 Users Say Thank You to trookam For This Useful Post:
jam2463 (04-09-2016), marcorex (04-30-2017), something fishy (04-27-2016), spadival (02-12-2016)
post #6 of 1148 (permalink) Old 02-12-2016, 06:50 AM
tarekkkkk
Geek
Points: 2,823, Level: 32
Points: 2,823, Level: 32 Points: 2,823, Level: 32 Points: 2,823, Level: 32
Activity: 6%
Activity: 6% Activity: 6% Activity: 6%
 
tarekkkkk's Avatar
 
Join Date: Nov 2015
Location: Lebanon
Posts: 167
Thanks: 58
Thanked 26 Times in 23 Posts
Mentioned: 2 Post(s)
Tagged: 0 Thread(s)
 
Why is it necessary to plugin the usb to make it work?
tarekkkkk is offline  
The Following 2 Users Say Thank You to tarekkkkk For This Useful Post:
Alexander31 (02-12-2016)
post #7 of 1148 (permalink) Old 02-12-2016, 09:31 AM Thread Starter
spadival
Senior Member
Points: 10,331, Level: 67
Points: 10,331, Level: 67 Points: 10,331, Level: 67 Points: 10,331, Level: 67
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2015
Posts: 289
Thanks: 52
Thanked 192 Times in 50 Posts
Mentioned: 52 Post(s)
Tagged: 0 Thread(s)
       
Quote:
Originally Posted by ugotrottola View Post
Hi, you have done a great job !!!
I'm just starting to test different tweaks and my goal is to understand how they work and make the best modding on my infotratment.

I will be really glad to prepare an USB installer and test the app.

Can you give me some more information on it ?
1. Does the androidauto.js work as i download or i need to receive the working version from you ?
2. the data_persist folder, should be copied directly in the root of the CMU ?

Thanks if you would like to answer me.

Another question :
Wich software development tool you use to prepare the tweak ?
1. Works as is.
2. Yes. The folder structure /data_persist/dev/bin is already present in the CMU. Advantage is it's already mounted read/write and included in $PATH

I use ltib .. Refer to http://mazda3revolution.com/forums/2...ml#post1570169 for details.
spadival is offline  
post #8 of 1148 (permalink) Old 02-12-2016, 10:22 AM Thread Starter
spadival
Senior Member
Points: 10,331, Level: 67
Points: 10,331, Level: 67 Points: 10,331, Level: 67 Points: 10,331, Level: 67
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2015
Posts: 289
Thanks: 52
Thanked 192 Times in 50 Posts
Mentioned: 52 Post(s)
Tagged: 0 Thread(s)
       
Quote:
Originally Posted by Siutsch View Post
I will put it in new AIO V1.37.

If I got new Speedometer 4.0 from Diginix, I will upload new version.
Quote:
Originally Posted by trookam View Post
Great job man!!!! can you share some example video?? i can help you making a usb intall script.
Thanks both. Appreciate it. Siutsch can create AIO and trookam, you can create a standalone version.


Quote:
Originally Posted by tarekkkkk View Post
Why is it necessary to plugin the usb to make it work?
That's how Android Auto works.

Last edited by spadival; 02-12-2016 at 12:54 PM.
spadival is offline  
post #9 of 1148 (permalink) Old 02-12-2016, 01:21 PM
trookam
Member
Points: 8,590, Level: 62
Points: 8,590, Level: 62 Points: 8,590, Level: 62 Points: 8,590, Level: 62
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2015
Posts: 58
Thanks: 9
Thanked 78 Times in 15 Posts
Mentioned: 6 Post(s)
Tagged: 0 Thread(s)
   
Quote:
Originally Posted by spadival View Post
Thanks both. Appreciate it. Siutsch can create AIO and trookam, you can create a standalone version.




That's how Android Auto works.
I'll try to test android auto tomorrow, then i'll make a script

Thx
trookam is offline  
The Following 4 Users Say Thank You to trookam For This Useful Post:
epadillac (02-12-2016), goosefrappa (02-19-2016), mabadse (02-13-2016), windwalker (02-12-2016)
post #10 of 1148 (permalink) Old 02-12-2016, 02:13 PM
polskar
Junior Member
Points: 2,533, Level: 30
Points: 2,533, Level: 30 Points: 2,533, Level: 30 Points: 2,533, Level: 30
Activity: 7%
Activity: 7% Activity: 7% Activity: 7%
 
Join Date: Feb 2014
Location: Saskatchewan, Canada
Posts: 23
Thanks: 19
Thanked 1 Time in 1 Post
Mentioned: 2 Post(s)
Tagged: 0 Thread(s)
 
This is amazing! You're fulfilling the number 1 request that users have been asking for!

Let me show my gratitude by throwing up a donation link!!

Edit: If you have poor reading comprehension like me... see below:
Quote:
Originally Posted by spadival View Post
If you are happy, please donate to Mike Ried (mikereidis AT gmail.com)
xbat likes this.

Last edited by polskar; 02-12-2016 at 04:26 PM.
polskar is offline  
The Following User Says Thank You to polskar For This Useful Post:
DaniFantom (04-16-2016)
Sponsored Links
Advertisement
 
Reply

Tags
android , app , auto , beta , headunit

Quick Reply
Message:
Options

Register Now



In order to be able to post messages on the 2004 to 2016 Mazda 3 Forum and Mazdaspeed 3 Forums forums, you must first register.
Please enter your desired user name, your email address and other required details in the form below.

User Name:
Password
Please enter a password for your user account. Note that passwords are case-sensitive.

Password:


Confirm Password:
Email Address
Please enter a valid email address for yourself.

Email Address:
OR

Log-in









Human Verification

In order to verify that you are a human and not a spam bot, please enter the answer into the following box below based on the instructions contained in the graphic.



Thread Tools
Show Printable Version Show Printable Version
Email this Page Email this Page
Display Modes
Linear Mode Linear Mode



Posting Rules  
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

 
For the best viewing experience please update your browser to Google Chrome