gartnera / headunit

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

Android 9(pie) issue with wifi connection to android auto #138

Closed jpmu closed 4 years ago

jpmu commented 5 years ago

On updating to Android 9 (pie) the wifi connection to android auto no longer seems to work. Worked fine in Oreo. Works fine if I use the cable.

rcin2008 commented 5 years ago

Same issue here, I have connected my car with my smartphone and started the server in the application Android Auto but it doesn't start. any solution ? PS: I have Oneplus 6 Android 9 (pie)

silverchris commented 5 years ago

I think Android changed the what ip address they use when setting up tethering.

I have noticed on my phone that it sets it's address to something in the 192.168.43.0/24 range, but never to the 192.168.43.1 specified in the wifi connection for android auto.

Been meaning to take a bit of a real look at this myself, as it would be nice to have going in my car, but haven't had a chance

m3us commented 5 years ago

I have the same issue on a pixel 2xl; will look into it but I think AA searches for the wrong IP like silverchris mentioned.

johnnyleitrim commented 5 years ago

I have a potential fix for this that works on Ubuntu, but I'm not sure how to get the compiled code under mazda onto my car to test it. @Trevelopment , how do I get the newly compiled code on? The directory structure looks different than what's in MZD-AIO.

Trevelopment commented 5 years ago

@johnnyleitrim if you make an installer with MZD-AIO you just replace config/androidauto/data_persist/dev/bin/headunit with your compiled headunit binary, run installer, ??, profit!

johnnyleitrim commented 5 years ago

Thanks @Trevelopment - My change also includes adding a field to headunit.json - do I just replace that file in the installer too?

Trevelopment commented 5 years ago

yea put that in the same folder

Trevelopment commented 4 years ago

Fixed by #153