yashsingh1/xdaforums huggingface dataset:
[Paid Software Announcement and Discussion] dhughes72:
I'll buy your $1.99 app even if I don't need it because the work your doing is a god send, imo! my situation since July 17 is the same as another poster; I haven't had any drops or freezes and I only get gummed up if I don't start in the right sequence...
[Paid Software Announcement and Discussion] lyrical1278:
Im cool with paying for another app... If you plan on making it a party of odbaa, then can we just buy it now and wait for the upgrade?
[Paid Software Announcement and Discussion] Johan1976:
Which Android version is required on the phone? I was considering using an old S4 but when I tried to start it the screen was dead (but powers up).

Now I only have a really old HTC to spare.

Skickat från min SM-G950F via Tapatalk
[Paid Software Announcement and Discussion] typhoonikan:
Thanks for the response!

I got it working today on a different (possibly better) cable and it worked for about 10 minutes. Then I couldn't get it to work again. The headunit kept saying not compatible.

What is the correct order?

I seem to need to tell the slave to use AAGateway Always repeatedly. Not sure why the settings just won't preserve. I restored the headunit to factory defaults and will try again.

I even would try a non HTC rom for the HTC 10 so the USB issue is handled better, but I'm on Android 7.0 for it and don't see many roms for that version right off. I'd need to upgrade firmware blah blah to get to 8.0. A pixel port for Android 7.0 would be nice but I'm not finding it in the HTC 10 forum.
[Paid Software Announcement and Discussion] LLStarks:
Make a 3rd app, even if it's a free stub for both the gateway and ODB to use. I'm more than willing to pay for both existing apps as I will use them, but it's not right to force a double paywall for those who won't and just want Wifi Direct.
[Paid Software Announcement and Discussion] jeromeo01:
1. Start AA server on Master

(mine is always on doesn't seem to drain batterie.)

2. Start WiFi hotspot on master.

3. Connect slave to Master on hotspot.

4. Connect USB (USB already connected to Car end, only connect to Slave end)

Just reinstall app on slave (uninstall with clearing all data/storage).., don't open, just connect and select default.
[Paid Software Announcement and Discussion] bradhoschar:
Honestly, I have no use for obd2aa, but have NO problem paying another $2 for wireless AA to work!

My vote is to either create a companion app for AA, or BOTH an app for odb2aa and AA and let us pick which one we need. I'd also be happy paying more $ for the latter.
[Paid Software Announcement and Discussion] bggold:
I like the idea of a single app that you select if it is a master or slave install.
[Paid Software Announcement and Discussion] Peter_Ang:
The fact you will be personally vested in mk 809 iv is great news and I hope a custom ROM will be a reality. Get well soon!
[Paid Software Announcement and Discussion] krispin:
And what, if there is a chance to install apk to headunit (have honda civic 10th gen with root). Isn t there any possibility to bypass slave unit?
[Paid Software Announcement and Discussion] Emil Borconi:
If you have an Android powered unit, you might consider/try my HUR app. I know it works on some older Honda Pilot where AA wasn't available, but it's not perfect.
[Paid Software Announcement and Discussion] krispin:
I will try certainly. It is unit with android 4.4.2 and AA support. Let you know.
[Paid Software Announcement and Discussion] StelardActek:
I am excitedly waiting for wifi direct. I don't mind installing another app for that to work.

Usually I would expect an app that is useless except that it supports another paid app to be free, but we're not talking huge sums of money here. So if I have to pay for it I won't complain.
[Paid Software Announcement and Discussion] demolife:
can i use Artek Ideabox 2017 2GB - Android 6.0 Marshmallow, Cortex A53, Amlogic S905X, 2 GB DDR3, 16 GB GB Flash Memory 2 Mini PC????
[Paid Software Announcement and Discussion] Emil Borconi:
- I've had a think on how to sort the Wifi Direct problem and the companion app, and I will go with the one app version and a wizard which will decide if you are using the app on the master or on the slave, so you won't need to buy any other apps. This will have only one small catch, the companion app won't work on the master phone if you have any 3rd party Androdi Auto app installed (except the obd2aa of course)

On a different note, what a piece of rubbish that mk809iv uh, no wonder you had so much grief with it. Basically settings are not saved persistently after a reboot, hence the app not working as expected in the first place. That connect to PC thing is disgusting as well. I'm looking into how to have a custom rom for it, because otherwise it will be just to cumbersome to get it all working and while I will prefer to chuck it into the bin, it's a very popular and cheap device so admittedly it is an ideal candidate for many users.
[Paid Software Announcement and Discussion] chernabog88008:
Glad I wasn't the only one who gave up for the moment on it and decided to wait on you. I have 4 TVs around the house, none smaller than 40 inch I'm not hauling out into a hatchback Mercedes and trying to use a mouse and keyboard to set up.
[Paid Software Announcement and Discussion] wowzors:
Lol, admittedly not what I wanted to hear but makes me feel better for how much I struggled with it even with other users making excellent automated flows.
[Paid Software Announcement and Discussion] m00n61:
The only issue I have so far is some audio stuttering when using Google Play music.

HU: Suzuki SLDA

Slave: S4mini, Android 6

Master: Note8, Oreo

Have a simple flow in Automate to enable/disable hotspot when connected/disconnected to car BT.

As long as I wait for the slave to connect to the hotspot and only connect to the car after that AAG works flawlessly.
[Paid Software Announcement and Discussion] bggold:
I have updated my flows. Please see the previous post for all the information you need to understand what they do and how to use them.

Remember you need to be rooted in order to use these flows as is.

https://xdaforums.com/showpost.php?p=77110569&postcount=236

In the "Disable usb on boot" flow I added a popup notification that will stay on the screen for 30 seconds then clears to tell you that the boot is complete and you can plugin the usb cable.

In the "Enable/Disable USB on Wifi" flow I added once power is connect to turn on wifi and wait for connection. Once wifi connection is lost it will turn wifi off. You need to set your hotspot in the flow block connected to wifi. The broadcast block for power connected? Works for me on my Ford Sync 3 since it only supplies power to the usb port when the car is on, well it starts to supply power once the door is opened. This might cause the wifi to stay on if you open your door and not start the car but then lock it.

I am seeing faster wifi connections to my hotspot and better battery life with the wifi off until needed. Before this change my Pixel XL was still on after 3 days with the car sitting. Just in the few hours of this change I can see from the trend that it might even give me longer. I'm usually driving within 3 days anyways. Also a suggestion is to disable all radios, gps, uninstall or disable any app you are not using. By doing this you will see much better battery life while your phone is not being charged.

Hopefully soon these flows will not be needed as Emil continues to import the app.

Thank you all for supporting Emil with this wonderful enhancement and I consider a major fix to Android Auto, something Google can't even get right on their own branded phones.
[Paid Software Announcement and Discussion] Emil Borconi:
Ok I've played around with the MK809IV for a bit, and my opinion did not changed, horrible device! However I have managed now to make the MK809IV to behave a bit better, I can now set the defaults correctly, so screen should not be needed any more for the setup as well as I have added the "connect to pc" automation on boot so it's getting a bit better.

On the same note disabling Google Play Services it's almost mandatory on this tv sticks for some reason it keeps resetting the USB defaults, so I have implemented that in the app as well.

I've also payed around with my Nexus 7 as slave, and it looks like there is a limited time frame when the phone has to respond to the car in order to set up the connection, if that frame is missed, you won't get too far. Now this does mean that Wifi should be connected first, or have the app reset the USB connection when a Wifi is connected, but that requires ROOT and not sure if all devices will have that. Another potential option will be to set up a connection from the slave to the car (do an initial SSL handshake) so the car thinks it's already connected to the phone, but to do that you will need to have Android 5.0+ on the slave or if the android version is lower then 5.0 you will need to have Google Play Service updated, which goes head-in-head with the problem mentioned above.

I'm going to play around a bit more to see if there is any way I can make it work in all scenarios.
[Paid Software Announcement and Discussion] Salkod:
Hey Emil thank you for the amazing work :highfive:

I know the pain you are going through for that mk 809iv :p it took for ever to solve its issues with automations and with what you're doing it will be very user friendly hopefully.

If I may make a suggestion, program the connect to pc setting to turn on only if the stick is connected to the master's wifi and to turn off when not.

Otherwise if it connects to the car before it connects to the master it will not work and if it disconnects it will not work again until its rebooted.

Again thank you for the great work :good:
[Paid Software Announcement and Discussion] Gunde:
But don't you loose the real benefit of the wireless option this way? If you have to wait and connect the slave, why not just connect a cable to your master normally from the start? :)
[Paid Software Announcement and Discussion] mkruluts:
I know I am late to the game, but I just stumbled across this... I have so many questions about this project, as it is exactly what I am looking for.

Just to list a few:

1) Is the reason for using an Android device as a slave connected to the car radio, because the car radio needs to detect an Android device inherent to the physical USB connection, or was this decided to minimize code and speed up development? Just wondering if the apk emulates all of the protocols the car needs to recognize an Android Auto device was connected or does the Android device itself act to satisfy part of the resource requirements?

2) If the answer to #1 is that an Android device is not specifically required, I saw you had mentioned maybe a future development for the Raspberry Pi, could the Raspberry Pi Zero W be used for this? I fear if an Android specific device is required for all the proper handshaking to take place, it may be a lost cause with the Raspberry Pi, as the boot times with Android builds are terrible.

3) Have you considered adding some "Automate" type features to the master, where when a specific bluetooth device is connected/disconnected, it automatically enables/disables the WiFi Hotspot accordingly?

4) Have you considered going open source with this on GitHub to get some community help with the project?

Thank you for your time and all your impressive and hard work.
[Paid Software Announcement and Discussion] swasha123:
I don't agree. I am using Android Auto for last 2yrs with various cables and frequent disconnection. I don't know, but disconnection never stopped even with latest AA3.5 (released yest)

With this solution by Emil, I don't have single disconnection for last 20days. Further we will see some miracle.. Fingers crossed :good:
[Paid Software Announcement and Discussion] bggold:
I agree with swasha it is a lot less of a wait time the having to keep plugging and unplugging, restarting phone to get it to connect. The the disconnects while driving.

Personally I did not experience to many but many others have.
[Paid Software Announcement and Discussion] Emil Borconi:
1) The headunit needs Android USB Accessory ( Haven't looked into it yet if there is anything on Linux which can provide that), so this answers question 1 and 2

3) Yes, just not there yet

4) It is on github (see op)
[Paid Software Announcement and Discussion] m00n61:
I still gained the benefit of not ruining my phone's USB port :)

However, I also installed [MENTION=5437072]bggold[/MENTION] Automate flow and now it's fully automated.
[Paid Software Announcement and Discussion] SLAB_8002:
I've been driving across the US for the past two weeks, and have experienced many of the shortcomings of wired AA. Even if you have to wait to establish the USB connection to the proxy device, there are still several benefits to the wireless option. One, my truck's OEM USB port only provides about 1A of power, so my phone charges very slowly when connected directly to the USB port. With wireless AA, I can use my Aukey quickcharger in my cigarette lighter and charge my phone much faster. Two, my phone is no longer physically tethered to the vehicle. If I need to take it out of the holder for any reason, I'm not limited by the length of my USB cable.

I'm sure others can think of other benefits too. A couple of folks have come up with ways to disable USB data on the proxy device until the hotspot is connected, which achieves the same result as waiting to connect the USB cable to the headunit.
[Paid Software Announcement and Discussion] Johan1976:
Doesn't Android auto require Android 5+ anyway?

Or do you mean I today can run your app on earlier Android as well?

Skickat från min SM-G950F via Tapatalk
[Paid Software Announcement and Discussion] Emil Borconi:
Yeah on the master but the slave could be any device....
[Paid Software Announcement and Discussion] Johan1976:
Since my old S4 did not start anymore I went back to my really old HTC Desire.

Flashed 4.4.4 ROM with root. Installed latest Google Play Services.

I installed AAGateway. Plugged it into the car. Nothing happens (except phone is telling me its connected with USB).

I started the app. Tells me its not default android auto app and fixes this. The I reboot. Plug it in again.

Nothing happens. Start aagateway. Tells me its default and im good to go.

Trying toggling USB debugging but doesnt matter.

Android Auto cannot install since Im prior to Android 5.

What could be wrong? Any ideas?
[Paid Software Announcement and Discussion] m00n61:
Modified flow

The original flow was acting erratically on my setup, here is a modified one that I have been using for the past two days without issues.

Instead of checking for WiFi, this flow disables the USB interface first thing when the phone gets power and then checks for WiFi.

It is so good to just have the phone with me and have AA start all by itself. No more cables in my way AND no more MirrorLink starting instead of AA because Google.
[Paid Software Announcement and Discussion] Emil Borconi:
When you plug the phone into the car, the AAGateWay should start automatically (notification on the taskbar). Can you change the USB mode on the phone for example to MIDI?
[Paid Software Announcement and Discussion] Johan1976:
Haha my bad. I think I'll give up on using that old phone. I left phone plugged in in my car and went inside to fetch something. When I got back it had connected.

It took like 3 minutes from pluggin in USB cable until android auto was connected.

Trying to find a better phone until I try again. [emoji16]

Skickat från min SM-G950F via Tapatalk
[Paid Software Announcement and Discussion] wowzors:
[MENTION=842765]Emil Borconi[/MENTION] does the mk809iv seem to disconnect from AAGateway after a while (30 minutes ish) for you? I have found that it works perfectly in my car for about 30 minutes and then the device disconnects and I have to unplug and replug it in to get it to work again following the flows.
[Paid Software Announcement and Discussion] Emil Borconi:
O haven't tested that long I mainly work on automatisation of the process for that stick (and all other devices). Also started splitting into slave and master version of the app. I hope that in a few days I will be able to bump the version to a beta and make it more straightforward.
[Paid Software Announcement and Discussion] SLAB_8002:
I just used my MK809iv for 4 hours with no interruptions. I tried yesterday, but lost my cell signal in West Virginia which froze everything up.

Any time I drop connection, I have to completely restart my master phone to get Android Auto working again, either wired or wireless. Not sure what that's about.
[Paid Software Announcement and Discussion] wowzors:
Interesting, I live in the suburbs of Chicago and don't think I'm losing connection but I suppose it is a possibility. Perhaps wifi direct would be able to help.
[Paid Software Announcement and Discussion] chinaa108:
I had a similar problem, my data bundle finished and AA crashed.
[Paid Software Announcement and Discussion] suku_patel_22:
Sometimes when the phone's USB gets disconnected, the AAGateway will keep showing in the notification, master will keep showing connected to car. It then needs a restart of both devices to get go.

This happens randomly.
[Paid Software Announcement and Discussion] jayman7227:
MK809V

Is the MK809V a total no go for this?

I ordered the IV and they sent the V, unfortunately. AAGateway is installed on the stick and I get the message in it that says everything is good to go. It is connected, via hotspot, to my Pixel XL before I plug it into my car's USB. After that nothing happens, any thoughts? Something I am doing wrong?
[Paid Software Announcement and Discussion] Johan1976:
Tried another old device. Android 2.2 but aagateway apk wouldn't install (extracted the apk from my s8 since xda labs doesn't install on that old version).

Skickat från min SM-G950F via Tapatalk
[Paid Software Announcement and Discussion] DrStickles:
No, I think it's fine. I'm in the same boat--ended up with a "MK809V-4K". It came rooted from the eBay seller. I'm running Salkod's (latest) Automate scripts and it works pretty well most of the time. I'm guessing it behaves pretty much like the MK809IV.

FWIW, I start the hotspot and head unit server on the master before turning on the car.

Good luck & thanks Emil & Salkod!
[Paid Software Announcement and Discussion] m00n61:
Hint: check the thread title.
[Paid Software Announcement and Discussion] Johan1976:
Yeah. I'm stupid. Haha. I just click the topic without actually reading. First plan was to use S4 then I forgot about the topic 3.0+

Skickat från min SM-G950F via Tapatalk
[Paid Software Announcement and Discussion] Sage:
so is the consensus still that the Mk809IV is the best product to make this work at this time?
[Paid Software Announcement and Discussion] Emil Borconi:
I will be inclined to say that an old phone with root (like an S4 or even an S3 or anything else) will probably be slightly better, however the mk809iv is still probably the cheapest and most convenient for a non-sceen small device. I've managed to get it to connect 9 out of 10 boots which I think it's more or less acceptable. If we make the device stay awake using a secondary source of power to reduce the boot time, this figure drops to about 6 out of 10, however a simple toggle of the hotspot on the phone (master) will result in the usb being restarted on the mk809 (slave) and then the connection will kick in. If you plan to use WiFi direct for it you will need to leave with the longish boot time of the mk809iv.
[Paid Software Announcement and Discussion] Sage:
Thank you Emil. I do have an old Nexus 5 though my concern is the battery runs out after only 12 hours or so. Which means when i come back to the car the next day it is usually dead. I like the idea of a batteryless device as this way it will always be available though of course you then deal with the long boot time. Can i ask how long does the Mk809IV take before it all AAGateway is all up and running?
[Paid Software Announcement and Discussion] DrStickles:
Just about 30 seconds for my MK809V (boot animation disabled as suggested in this thread--saved me about 5 seconds). Entirely acceptable to me.
[Paid Software Announcement and Discussion] Sage:
Thanks DrStickles (click :) ). So is the MK809V a better option the the IV?
[Paid Software Announcement and Discussion] Emil Borconi:
[MENTION=269497]Sage[/MENTION] I will say complete time from power till connection is around 40-50 seconds. As of the Nexus 5, there are small hacks (with root) or with modding the kernel which can trigger auto-power on of a phone as soon as it's connected to a power source. I have done that for my Asus ZenPad which was built into my dashboard.

On a nexus 5 this might work (after you put your device in bootloader mode):

fastboot oem off-mode-charge 0
[Paid Software Announcement and Discussion] Sage:
thanks [MENTION=224120]Emil[/MENTION]! your awesome!. i have just tried with my old S7 Edge (rooted) as the Slave and my new S9 (not rooted) as the master though i couldnt get it to work...

I did the following:

S9 (Master)

Installed AA and ran to confirm permissions etc.

Turned on Dev options and head unit server.

Exited AA (head unit Server still running).

Turned on Wifi Hotspot.

S7 (Slave)

Uninstalled AA

Installed AAGateway

Turned on USB Debug

Started Gateway - confirmed root access

Connected to wifi hotspot broadcast from my S9.

Plugged into my Car and selected AAGateway start as always.

Though my VW Golf tells me to "Check relevant settings on my mobile device"... Strange... do i need root on both phones or just the slave?

Did try reboot of both devices etc.. no love :( i might try my nexus 5 another day unless i missed a step.

One other thing that occurred to me when i read through all this i actually assumed the Slave would do the hotspot as it's the one getting USB Power.. Would be good if it was an option to have either host the hotspot in future versions :)
[Paid Software Announcement and Discussion] Emil Borconi:
Slave cannot create hotspot, well better said it could and that will mean that master could connect to it automatically and even start android Auto automatically, BUT and this is the big problem (which I think is one of the causes AA wireless is not available on other then pixel device at the moment), the master as soon as it connects to the slave WiFi won't be able to access the internet using the 4g. There is no way to use mobile data when you are connected to a WiFi and we'll slave will not have any data.... Which renders the whole setup useless.... If I'm not wrong this will be allowed starting with Android pie, to use mobile when connected to a WiFi.... But i'm not 100% sure about this
[Paid Software Announcement and Discussion] DrStickles:
I dunno, I think they might be pretty equivalent for this purpose. For those without a stick, you might want to wait until Emil gets further along and then use whatever model he ends up testing successfully...
[Paid Software Announcement and Discussion] Emil Borconi:
Should be on par.

I'm testing on mk809v and mk808b as well. Sorry I always thought I had a mk809iv :)
[Paid Software Announcement and Discussion] krispin:
I have mk808B. Do you think it is good for our purposes? Which ROM you have on it?
[Paid Software Announcement and Discussion] Hellplant:
The app for the GoPro have an option that lets you stay connnected to the Wifi from the GoPro and use cellular data to connect to the internet and download firmware updates.

That have worked since att least Android 6.0
[Paid Software Announcement and Discussion] Sage:
Can anyone be so kind as to confirm the above steps are accurate? ill click thanks! :)
[Paid Software Announcement and Discussion] Emil Borconi:
I will check the ROM, but I'm not impressed with the Wifi stability to be honest...