yashsingh1/xdaforums huggingface dataset:
[Paid Software Announcement and Discussion] Emil Borconi:
Sorry, your steps are accurate and no there is no need for root on the master. Can you capture a bug report from the slave please?

Here are the steps needed:

Enabling Developer Mode

Open Settings > About phone.

Scroll down to the Build number.

Tap the Build number 7 times in quick succession until "You're now a developer" appears.

Return to the Settings menu and select Developer options.

At the top of the screen, make sure 'Developer options' is set to On (green).

Scroll down to Debugging and enable both USB debugging and Bug Report Shortcut on (green).

It's very important to do this right after you experience the issue again, so your device can log at least one occurrence of the issue.

Hold the Power button down until the menu appears.

Select Take bug report. and wait for the device to capture the bug report.

Tap the 'Bug report captured' notification when it appears.

Share the bug report. (I recommend to email it to yourself.)

Download the bug report to your computer.

Send the bug report by email to borconie@gmail.com
[Paid Software Announcement and Discussion] Emil Borconi:
Hmmm..... interesting to know I will look into that. If that can be reproduced that means slave can create hotspot and phone can connect to it, which will be very good, since on the phone there is an intent to start Android Auto over WIfi, but it only works if the phone is connected to the Wifi network it doesn't work if you tether from the device. That will be very very useful, because it will mean the master will try to connect to the slave, so no real risk of Android Auto getting stuck on the master phone, and it will also mean that you wouldn't need to run Android Auto Headunit Server... so double win.
[Paid Software Announcement and Discussion] Sage:
thanks Emil ill get a bug report to you soon!
[Paid Software Announcement and Discussion] Sage:
2 bug reports submitted mate. Hope you can work out what went wrong
[Paid Software Announcement and Discussion] oiseau1201:
Creating a Hotspot in the slave would be very impressiv. No need to create tasker profiles vor something else!!!
[Paid Software Announcement and Discussion] Johan1976:
I noticed that I have a setting on my Samsung S8 called download booster which claims to activate both lte and wifi for downloads.

Also noticed there are atleast one app claiming to do the same. (without root) https://www.techuntold.com/use-wifi-mobile-data-both-same-time-android/

Skickat från min SM-G950F via Tapatalk
[Paid Software Announcement and Discussion] Emil Borconi:
Yeah I was looking into that as well but it's only for http downloads (works like a proxy) not for full wide internet access
[Paid Software Announcement and Discussion] Johan1976:
I see.

I also think (not sure) that if I have wifi connection (but no internet connection) internet traffic falls back to mobile data. However I'm not sure you can reach anything on the wifi connection at that time.

Also found some discussion about possibly enabling dual network. Not sure it's possible for this use.

https://android.stackexchange.com/a/186180

Skickat från min SM-G950F via Tapatalk
[Paid Software Announcement and Discussion] mew1033:
If we want to use an old phone instead of the TV stick: what about using Tasker or Automate or something to detect when the phone is not charging (unplugged from USB) and switch it to airplane mode (and maybe clock down the kernel or something) to save power. A phone with the screen off and in airplane mode should last quite a long time. Then as soon as you turn on the car and power is detected, turn things back on to prepare for the connection. I would expect that to be much faster than waiting for the TV stick to boot.
[Paid Software Announcement and Discussion] bggold:
I have posted some automate flows that do all that.

Might save you some time.
[Paid Software Announcement and Discussion] Emil Borconi:
I'm including all that into the next build.
[Paid Software Announcement and Discussion] SLAB_8002:
So, interestingly, I didn't have this problem until I started using [MENTION=8622479]Salkod[/MENTION]'s flows. I used my small HDMI screen to see what was going on, and it looked like something had prematurely triggered the C flow to turn off "Connect to PC".
[Paid Software Announcement and Discussion] Adnanklink:
Excited to try the next build when its ready! You could commit changes as you work to a new github branch if you want testers/ help as you go.

---------- Post added at 01:09 PM ---------- Previous post was at 01:06 PM ----------

I tried [MENTION=8622479]Salkod[/MENTION] flows with the original build and it worked only on the first boot out of 10 boots. I have yet to plug it back into a screen and see what is happening.
[Paid Software Announcement and Discussion] SLAB_8002:
I've watched it a few times. It seems like the action to open com.android.settings is the hang up. I've manually opened settings, and the flow has automatically done everything else, but it doesn't seem to want to open the settings on its own. I'm not familiar enough with Automate to troubleshoot beyond that right now, plus we're in the middle of painting a house, so time to tinker has been rather limited.
[Paid Software Announcement and Discussion] xchgre:
Not working in Xiaomi masters devices.
[Paid Software Announcement and Discussion] Sage:
does anyone know how to start and stop the Android Auto Developer "Head unit server" i'd like to use Automate or Tasker for it as it seems to cause Google Play Services to drink a lot more battery. As of now Google Play Services has used nearly as much battery as my screen for 1 hour. Did a check the day before with it off and it definitely correlates. Is there a shell command for this? Thanks!
[Paid Software Announcement and Discussion] Gunde:
The answer is in the OP. You need root though.
[Paid Software Announcement and Discussion] Sage:
Thanks mate. I assume you simply change start startservice to stopservice to kill it?
[Paid Software Announcement and Discussion] ChemoNL:
for me stopservice wasn't working, so i used "am force-stop com.google.android.projection.gearhead" instead
[Paid Software Announcement and Discussion] Emil Borconi:
That will work, or you can try to startservice with an action parameter set to equal "shutdown".

But the battery drain is not really explained.... you should not experience that kind of drain. That suggest something is stock in a loop and stoping the server won't help you with that. The server does nothing more thank keeps port 5277 opened on the phone.

If you experience battery drain and you do have root I suggest you kill off GPS instead: "am force-stop com.google.android.gms"
[Paid Software Announcement and Discussion] Sage:
thanks all. i will create a tasker that kills both the GPS and the Gearhead service and one to start them both up on detecting my Car Bluetooth so the AA gateway will be able to talk.

Just out of interest i just ran the Gearhead force-stop command successfully though i still have Android Auto Developer Head Unit Notification displayed. I expected this to disappear. Did i miss something?
[Paid Software Announcement and Discussion] dhughes72:
I haven't been this excited waiting for something tech related since the days I used to root my just released Galaxy Nexus and make the boot animation say my name ?
[Paid Software Announcement and Discussion] Sage:
yeah this is pretty amazing though i still cant get it to work reliably. i think it's my S9 as the master as i have tried to get it working with both a S7 and a Nexus 5 as the slave with no love on the S7 and not much more love on the Nexus 5...
[Paid Software Announcement and Discussion] Jaihoidundso:
Hey, I've got my MK809IV few days ago and I tested. But the stick was so cheaply made, that the port was broken on the same day. Now I've got my money back and like to buy another stick. Has anyone better sticks to work with that? It's okay if they expensive. Optimal it have 5 GHZ Wifi.

Btw: My master is OnePlus 6
[Paid Software Announcement and Discussion] Gunde:
^ If it's ok it's expensive, get a hold of a smartphone as slave :) Much more flexible and easier for Emil to fix issues for...
[Paid Software Announcement and Discussion] Jaihoidundso:
Now I tested it with my tablet (Samsung Galaxy A6, SM-T580) as slave and my OnePlus 6 as master and it's working very good. I used 5 Ghz. Unfortunately the tablet is too big, so I have to look for other devices.
[Paid Software Announcement and Discussion] wowzors:
Its really unfortunate the MK809IV doesnt have 5ghz, i feel like the connection would be more stable. Oh yeah its also unfortunate that the stick kind of sucks and its a pain in the ass.
[Paid Software Announcement and Discussion] dhughes72:
that made me laugh so hard lol...

for anyone looking for a phone, I bought a tracphone on Amazon for $35 and it works well. I posted a link in one of my other replies.
[Paid Software Announcement and Discussion] mikethetechguy:
I was just wondering is there any retry logic for this. For example if my hotspot goes down or head unit server does the AA gateway continuously try to retry until connection can be made again?
[Paid Software Announcement and Discussion] m00n61:
Your question is answered in previous posts in this thread.
[Paid Software Announcement and Discussion] mikethetechguy:
Yes I found it thanks.
[Paid Software Announcement and Discussion] LLStarks:
Seeing the wireless connection was awesome. But I could only get my GS6 to complete the connection with my brand new CR-V.

Works:

Unrooted GS6 master (7.0)

Rooted OnePlus One slave

Doesn't work:

Rooted Pixel 2 XL master (9.0)

Rooted OnePlus One slave

I get that unrecognized device crap. What am I doing wrong?

Edit: Got it working with the Pixel too but I need to tweak these Bluetooth prompts. My car really seems to care whether it can connect to the master phone over BT while AA is running and keeps interrupting the connection for certain sessions. As a whole, wireless AA is just unreliable. I can get it a few times in a row and then the order of operations starts failing. I'm hopeful a new build will help these headaches.

I just rooted my Gen 5 CR-V. I'd be interested in trying this if it would remove the need for the slave and integrated properly with the rest of the car (buttons, turn-by-turn in dash, etc) with minimal effort. Any guidance or assurances would be deeply appreciated. So far, the trial isn't really recognizing the head unit server on my phone. It can see it, but won't finish connecting.
[Paid Software Announcement and Discussion] m00n61:
HU: Suzuki SLDA

Master: Note 8 stock oreo

Slave: Rooted S4 mini on CM13, permanently connected to the car.

Automate scripts:

Master: starts WiFi hotspot when connected to car BT, stops it when disconnected.

Slave: USB data disabled when power connected and enabled after wifi connected. Disabled again when wifi disconnected.

It has been working flawlessly for one month.Daily use, including two 12 hours drives.
[Paid Software Announcement and Discussion] jonpaterson:
"check usb device" from slave

I have been unsuccessful in getting this working at all.

Master: Pixel XL 2 running Pie.

Slave: Nexus 5 running 6.0.1

I have run AA once on the slave to get it connected to head unit.

Slave is connected to master via wifi. When wifi connection is made the master shows "android auto is connected" in play services after running the server, but nothing is ever displayed on the head unit - the head unit simply states to check USB device.

I am not sure what I am missing here?
[Paid Software Announcement and Discussion] dhughes72:
I presume by "connected via WiFi" you mean the hotspot? it needs that. and I presume you have the head unit server in AA (Android Auto) running?

if so, what I do is unplug the slave... go into Google play services settings... go into the permissions and uncheck 'microphone'. there's some warning, I say ok, then I recheck 'microphone' permissions back to 'on'. this effectively resets Google play services.

plug the slave back in and try to connect. also, I don't know if it matters but I have my car head unit wait for me to push 'connect' rather than 'start whenever AA is detected'.

I hope that helps.
[Paid Software Announcement and Discussion] jinpachi:
I have a similar setup to you and the only problem I have is that the whole aagateway application crashes when a phone call is initiated.

I've noticed that it does at times say that Android auto is connected when it is not and I must reboot to fix this on my pixel 2 xl.
[Paid Software Announcement and Discussion] LLStarks:
I'm finally getting the hang of the routine. Getting very reliable connections now with no fiddling. Not even sure if I need the "disabled USB data" flow.

What I do need to do is get a Tasker for my master to enable the hotspot when connecting to the car's BT.
[Paid Software Announcement and Discussion] Adnanklink:
Which routine are following? Im using salkods flows on the mk809iv and so far very unreliable.
[Paid Software Announcement and Discussion] LLStarks:
Leave headunit server on 24/7. Start hotspot on master (need to automate when connected to car BT). Wait 10 seconds for slave to connect. Drive away with Android Auto.

I'm probably going to get rid of the automate stuff on my OPO slave. Doesn't seem necessary. At the very worst, I re-plug the slave or force close the gateway.

I rarely need to reboot the master to get it out AA mode.
[Paid Software Announcement and Discussion] sibesaver:
Awesome idea for an app. Very excited for the next release hoping for an alternative to wifi hotspot since my carrier blocks it on my current plan. Have a LG G3 for a slave and a LG V20 as a master.
[Paid Software Announcement and Discussion] m00n61:
If you don't want to mess with Tasker or Automate on your master phone, there's an app on Play Store that toggles mobile hospot when connected to a specific BT device : Hot Spot Starter Free
[Paid Software Announcement and Discussion] gogonelos:
I have a question: if i get a call on the master device, will i have audio through car speakers?
[Paid Software Announcement and Discussion] chinaa108:
Yes audio will come through the car speakers
[Paid Software Announcement and Discussion] newtonfb:
I'm in exact same position as you...I paid for first app but my carrier block hotspot so I need the wifi direct to be implemented.
[Paid Software Announcement and Discussion] Hckymstr19:
Downloading aagateway issue

Anyone having issues paying for the aagateway program. On my Droid turbo which I want to make my slave, I get to the aagateway in xlabs and I click pay now and all it does it keep saying contacting PayPal that's it, never does anything else. Let me know if I'm doing something wrong or if there is an alternative. Thanks
[Paid Software Announcement and Discussion] m00n61:
The XDA Labs app has been having some issues for the past couple of days. Hopefully it will be fixed soon.
[Paid Software Announcement and Discussion] darrenk232:
I, too am having troubles paying for the application. Any other way to get purchase this?
[Paid Software Announcement and Discussion] grampyog:
Ditto. Can't seem to get paypal. Hope it is fixed soon. This looks to be an exciting app. Kudos to the developer.
[Paid Software Announcement and Discussion] arguson:
I've been running this for a week now on this setup:

master: Redmi Note 4x with RR 7.1.2 rooted

slave: Acer S55 with Android 4.4 rooted

headunit: Kia Rio 2018

and I have some reoccuring issues I'd like to attempt to solve

- the minor one is that the slave sometimes forgets that AAGateway is the default application and I have to manually select it for AAGateway to work again

- the big one is that the Google Play Services process keeps running in the background with the Android Auto notification going after almost every car shutdown. I'm using Automate to close down the hotspot and kill the Android Auto Server process via the commandline in the FAQ. I have to either reboot or manually change permissions for Google Play Services for it to stop running the Android Auto. I was wondering if there's a way to do it through Automate (I tried background kill of Google Play Services but that didnt help) or some shell command.
[Paid Software Announcement and Discussion] dCrist:
today it is working fine, I have been able to pay for the app correctly.
[Paid Software Announcement and Discussion] chernabog88008:
Ok, what am I doing wrong? I bought a nexus 5x, everything up to date. Removed unnecessary stuff. Installed aagateway, cannot connect. Have Samsung s9 plus running Hotspot. This is through a Kenwood DMX7704S head unit. No errors, just can't get android auto to run through head unit running this set up.
[Paid Software Announcement and Discussion] m00n61:
Does AA work if you connect the phone directly via USB cable?

Is the slave connecting to the HU via AAGateway?

Did you set AAGateway as default?

Did you start AA HU server on the master?

Did you carefully read and follow the instructions in the first post?
[Paid Software Announcement and Discussion] chernabog88008:
Yes

Yes

Yes

Yes

I was using the nexus as just a dedicated AA unit just fine. Set up AA as server on my S9, and did everything correctly, but no go.
[Paid Software Announcement and Discussion] m00n61:
Did you remove AA from the Nexus? Might interfere.

If the HU shows nothing but your master phone says AA is connected, it's a matter of timing and activity order.

You need to have AA HU server running and the slave connected to the hotspot before connecting the slave to the car or it won't work.
[Paid Software Announcement and Discussion] chernabog88008:
Redid everything, head unit says device not supported when I plug nexus in.
[Paid Software Announcement and Discussion] m00n61:
Did you also reboot phones? See this post:

https://xdaforums.com/showpost.php?p=77136359&postcount=320
[Paid Software Announcement and Discussion] chernabog88008:
Didn't reboot master. Now it works. Turned off vehicle, turned back on, reconnects. Thanks.
[Paid Software Announcement and Discussion] lyrical1278:
Sometimes, about once a week, I have to force stop the app, remove the default, and then it'll work fine for about a week
[Paid Software Announcement and Discussion] LLStarks:
Is there an intent or way to start the head unit server automatically?

Edit: I guess you can use am startservice -W com.google.android.projection.gearhead/com.google.android.projection.gearhead.companion.DeveloperHeadUnitNetworkService

and substitute stopservice to stop it.
[Paid Software Announcement and Discussion] antimass514:
Didn't work for me. Slave: nexus 4 Master: s7 edge Unit: Ford edge Sync 3

Slave is not rooted. Did a reset factory on slave, didn't install AA initially and only installed AAgateway didn't work (unit says can't connect). Removed AAgateway installed AA connected the phone to make sure AA runs(this was successful). Intsalled AAgateway again restarted both Master and slave, made sure slave is connected through hotspot and head unit server is running on Master. Turned on USB log on slave as well. When I connect the slave to the unit, it keeps showing sync3 is trying to open AA and gets stuck there. Master is showing your devices is connected to the car.

Appreciate your help
[Paid Software Announcement and Discussion] bggold:
Not sure if this will help or not but Ford released and update last week to the sync 3. Worth a try.
[Paid Software Announcement and Discussion] shaggyxda:
Hello,

I try this with a Samsung S4 (not rooted) as the Slave and my HTC U11 (not rooted) as the master. After every reboot it works one time. So far, so good

Now i have just try with my MK890V-4K (rooted) as the Slave. I plug it into my car's USB. After that nothing happens, any thoughts? No Device is connected. Device list is empty What I am doing wrong?
[Paid Software Announcement and Discussion] TheBlitzS:
I have tried the automate flows on the MK809IV but it still doesn't work in the car. Started the Note 3 (running LineageOS 14.1) WiFi hotspot and heandunit first then I plugged in the TV stick into the car but without a result. Does anyone have a solution for this?
[Paid Software Announcement and Discussion] 1tytesc:
After 2 hours of config and test... It works!

Great job OP. Thanks

Master: Verizon Galaxy S8+

Slave: Verizon Galaxy S7 (App: AAGateWay) (not activated on Verizon, Wi-Fi Only) (plugged into USB)

This happened on the Master phone, it is what resolved all issues for me:

Occasionally connection can fail and can leave your phone in hang status where the phone shows a notification that is connected to Android Auto, but it isn’t. To clear this you will need to force stop Google Play Services on the phone.

Vehicle: 2018 Giulia TI Sport Build Date: 7/18

Android Auto version: 3.5.583024-release-35583024
[Paid Software Announcement and Discussion] StelardActek:
I wonder if this could work on Android Things. I've been looking at the development boards and some of them are not TOO expensive.

This is all operating under the assumption such a device would boot up faster than a TV stick, as well as possibly having better wifi support.
[Paid Software Announcement and Discussion] Tierney11290:
Android Auto Issue

I am running into an issue with my setup. I have been able to get it working a few times, but can't seem to get it working now.

Master: Samsung Galaxy S8+

Slave: ZTE ZFive2

Headunit: Boss Audio BVCP9675A

The headunit server is running on the Master as well as Wifi Tethering. The Slave is connected to the Master's Wifi Tethering and shows that the Android Auto Gateway is running. Additionally, the Master shows that it is connected to my car through Android Auto. The popup appears on the Slave phone to decide what app to use (in which I press Use Android Auto Gateway). Then an image appears on the headunit with a black background stating "To use Android Auto, please stop your car and follow the instructions on your phone." When the car is parked and it still says it. I would assume it's the wiring for the parking break, but that's working fine. Unsure of what to do in this case. Thanks in advance!
[Paid Software Announcement and Discussion] swasha123:
[MENTION=224120]Emil[/MENTION], great.. thanks for trying and getting success as well..

Can you please put some procedure/steps here how to connect.. in video, I am not getting any idea.

Also will google Chromecast work with this method?

Thanks for sharing this revolutionary method
[Paid Software Announcement and Discussion] Emil Borconi:
When the product is ready I will give all details on how-to of course. No Chrome-cast won't work it's not really an Android device it's more like a video receiver...
[Paid Software Announcement and Discussion] swasha123:
[MENTION=224120]Emil[/MENTION], thanks for response.

I thought, it is simply working with Android Stick and sony head unit.

Have u done any changes (in software of sony or android stick) before making it successful..

Can u brief what product you are talking about..

Thanks
[Paid Software Announcement and Discussion] Emil Borconi:
By product I mean the app. No changes done neither on the stick, neither on the Sony.

All you will need is a stick (or old phone, or whatever) and the apk installed on that device.
[Paid Software Announcement and Discussion] swasha123:
[MENTION=224120]Emil[/MENTION], you are great.. very thoughtful and simply revolutionary..

Good Luck.. wish you success..

We will wait..

(++ In case you need testers, consider me as well..)
[Paid Software Announcement and Discussion] Silenus21:
Awesome project.

Subscribed to this thread.
[Paid Software Announcement and Discussion] Ghengis543:
I am so excited for this project. Love it!
[Paid Software Announcement and Discussion] apoorv28goel:
Great concept.

Can you integrate it with the raspberry pi Android auto project? Raspberry pi has a wifi module of its own.
[Paid Software Announcement and Discussion] Silenus21:
[MENTION=842765]Emil Borconi[/MENTION] Wondering if it might be better to get a phone or stick that supports 5ghz wifi, so the connection is faster than 2.4ghz.

Would that be a benefit or It doesn't matter in this project?
[Paid Software Announcement and Discussion] Emil Borconi:
If you refer to OpenAuto or Crankshaft I think they already support it.