gartnera / headunit

Headunit for Android Auto
GNU Affero General Public License v3.0
339 stars 89 forks source link

Incompatible with V59.00.330 EU N #25

Closed petrepopescu21 closed 6 years ago

petrepopescu21 commented 7 years ago

I have a 2017 Mazda 6 with CMU version 59.00.330 EU N

I tried installing v0.94b

I followed the install steps on the releases page and it went well until the restart part. The CMU restarted fine, although AA did not show up in the applications list.

camilok14 commented 7 years ago

Same problem here on Mazda 3 2017 with Version 59.00.330 4A N

dherby commented 7 years ago

Same issue with 59.00.441 NA N :(

lmagder commented 7 years ago

Since the app doesn't show up at all I bet it's something wrong with the registration in 59 and maybe not the headunit part. Maybe the DriveChartDetails app it replaces is gone? I'm not sure since I have v56.

The code is here: https://github.com/lmagder/headunit/blob/master/mazda/installer/config/androidauto/jci/opera/opera_dir/userjs/additionalApps.js

gartnera includes this in the release packages but it's not in the main repo. I checked into my repo just for reference.

Does anyone have a filesystem dump of 59 they can examine and post the systemApp.js from it?

manuelnelson commented 7 years ago

I'm a bit of noob, how can I get a filesystem dump? I have the same problem and would be willing to help out best i can.

lmagder commented 7 years ago

you could try this tool: http://mazda3revolution.com/forums/2014-2016-mazda-3-skyactiv-audio-electronics/57714-infotainment-project-457.html#post1581386

not sure if it works on 59 though. Essentially you can edit the tweaks.sh file to do whatever you want, like with this package it just copies the entire filesytem to the usb using shell commands, but you could do similar by replacing the tweaks.sh in the AA installer.

kmark commented 7 years ago

Here's systemApp.js for 59.00.441A NA. New to this but I see references to CarPlay and Android Auto. Looks like Mazda has pushed some of their work out. I wonder if changing visible to true would let us take a peek...

lmagder commented 7 years ago

Sorry guys, my car has v55 on it so I'm afraid I can't help much with this. If somebody has a v59 car and wants to go over the install scripts and js files in https://github.com/gartnera/headunit/tree/master/mazda/installer with a fine tooth comb, we can probably figure out what's incompatible with v59. If it's not appearing the in the menu at all my hunch is something related to the JS portion.

rinkydinkyproject commented 7 years ago

I have v59. And its possible switching that systemApp.js to true would be what does it. I am fairly new to this and I'm willing to take the plunge. where would I drop this file? Can I add it using the tweaks.sh? If so I can add the line, just need to know what should go in there.

edgargonzalez17 commented 7 years ago

@paradexes did you manage to do this? i have v59 too and im willing to try this out.

edgargonzalez17 commented 7 years ago

@kmark @lmagder can someone tell me how to modify my systemApp.js?

rinkydinkyproject commented 7 years ago

@edgargonzalez17 I never got it to work. Most other things in the AIO seemed to work. Hopefully someone sorts this out. Be nice to have this actually working. I installed a new after market system on my wife's CX9 (2013) w/android auto, so that would be a nice to have for my 2016 CX5.

edgargonzalez17 commented 7 years ago

@paradexes but did you try setting Android Auto to true in the systemApp.js?

rinkydinkyproject commented 7 years ago

@edgargonzalez17 yes I did. Did not work. IF it installed, there was no way to start it from the apps menu.

felipecorrea9 commented 7 years ago

I have 59.0.0.330A-ADR and it works fine. I just cant make calls.

lmagder commented 7 years ago

I think the Android Auto setting in ssystemApp.js may be a decoy. Possibly a half-finished implementation by JCI that was never enabled?

I can't really do much from my end since I only have a 2016 NA car with 55 on it. But if you guys want to delve all the relevant code is in here: https://github.com/gartnera/headunit/tree/master/mazda/installer/config/androidauto/jci

The app is split into two parts (well 3 technically if you include input_filter) but 95% of it is C++ code what runs as normal Linux processes. The JS code I linked to, all it actually does is add a menu item to launch the headunit binary. The CMU "app" is just a static html page and the other app renders fullscreen covering it.

It seems like maybe that's the only part that's broken? They could have changed the JS-based API in some versions of 59. If somebody has a dump of the OS from a non-working v59 they could compare some of the built in apps in /jci/gui/apps with the code in our "_androidAuto" app and see if something about the interface has changed.

edgargonzalez17 commented 7 years ago

@paradexes can you provide this dump?

edgargonzalez17 commented 7 years ago

@lmagder im up to test and provide you everything you need to get this working, you can write me if you want. edgar.gonzalez17(at)gmail(dot)com

rinkydinkyproject commented 7 years ago

I'll try to pull it this weekend. I believe the AIO tool has a backup JCI tool correct? If so I'll use that, otherwise I may need someone to walk me through this.

edgargonzalez17 commented 7 years ago

well, didn't worked for me either, @gartnera can you please give us some directions on what to do to get this working? thank you.

Borillion commented 7 years ago

I have 59.00.441 , will try and take a dump also.

edgargonzalez17 commented 7 years ago

@Borillion can you tell me how to take the dump files?

Borillion commented 7 years ago

I am using this zip file as a guide here but going to do it manually, http://mazda3revolution.com/forums/1581386-post4563.html

jason300x commented 7 years ago

i tried installing AA with newest AIO v2.2.1 and still doesnt work - I have v59.00.300 EU here are logs. I guess problem is that somehow AA already exists in additionalApps but that is just a big guess.

INSTALL ANDROID AUTO HEADUNIT APP ... === Begin Installation Of Android Auto Hsadunit App === === Copied Headunit Files === === Backup of /usr/lib/gstreamer-0.10/libgstalsa.so to libgstalsa.so.org === === Clean obsolete input_filter to /jci/sm/sm.conf === === Copied Android Auto Headunit App files === === 1st line of stage_wifi.sh is OK === === Backup of /jci/scripts/stage_wifi.sh to stage_wifi.sh.AA === === Added Android Auto entry to /jci/scripts/stage_wifi.sh === === No additionalApps.js available, will copy one === === Android Auto already exists in additionalApps.json, no modification necessary === END INSTALLATION OF ANDROID AUTO HEADUNIT APP

=============== END OF TWEAKS INSTALLATION ===============

edgargonzalez17 commented 7 years ago

You need to install NO_MORE_DISCLAIMER from Aló 2.2.1.

edgargonzalez17 commented 7 years ago

AIO 2.2.1*

jason300x commented 7 years ago

I did that according to manual - but with parameters to reduce time to 0.5 instead of 0

jason300x commented 7 years ago

And still not working to be clear

jason300x commented 7 years ago

i installed again with AIO 2.2.2 with no more disclaimer (reduced to 0) after previously uninstalling all tweaks(AA and NO MORE D.) and still AA is not on app list.

I attach zip file with logs + full backup of jci folder - before any tweaks done on 59.00.330 EU

you can download it from my google drive.

https://drive.google.com/file/d/0B9mPP5b2VDH9Rm9rNzd6cWtzSnM/view?usp=sharing

kbojarcz300 commented 7 years ago

i think its already solved in AIO 2.2.4 . It works on my mazda 59.00.330 EU

rinkydinkyproject commented 7 years ago

Yea AA still is not working for me on AIO 2.2.4. V59 NA (don't have minor number handy, I'll have to look). The update really changed nothing for me.

naz1911 commented 7 years ago

I installed EU 59.00.443C on my Mazda 6 UK edition. I used AIO 2.3.7 to install AA but "Real" issue now is that bluetooth phone calling wont work from within AA. Keeps saying connect phone via bluetooth on a blue background.

kbojarcz300 commented 7 years ago

it never worked for me, had to close AA always. that's the problem with this version. few days ago i had major crash of AA. My mazda infotainment didn't move for 10 minutes, even after car restart. Then it suddenly started moving. After all that i decided it's not time to use this tool. It's just not worth going to mazda dealer screaming for help (it possibly costs you both money and warranty). EDIT : maybe in some future realeases like 6 months from now AA will be usable, for now it's just not worth the risk.

creativekindle commented 7 years ago

@kmark how did you get the systemApp.js file? Looks to me you're exactly right - AA is installing but line 686 of systemApp.js is hiding it in the application list... isVisible : false

I'm also on 59.00.441A NA and would like to help.

kmark commented 7 years ago

@creativekindle Used an SSH server run automatically off a USB drive. That is, as far as I can tell, a fresh systemApp.js from 59 NA. I have not yet tried to install the custom Android Auto stuff yet. That means that the entries for CarPlay and Auto are actually from Mazda.

Trevelopment commented 6 years ago

This issue has been way fixed in AIO. I could add the fix in a commit here the only thing is copying the patched systemApp.js will potentially remove other tweaks that may have been made in that file ie no more disclaimer and order of audio source list tweaks. There is too much changed code for me to be comfortable using sed or a similar command to replace chunks of code so using AIO to get the proper patched file is the solution so I think this issue should be closed.