yashsingh1/xdaforums huggingface dataset:
[Paid Software Announcement and Discussion] morpho26:
Yes, that is a good Question. I would also appresiate Help. I want to implent this as a tasker Action. Every time Slave lost connection from Master Hotspot, tasker makes a replug od Slave device.
[Paid Software Announcement and Discussion] skatermike21988:
You need to modify the settings for your bluetooth device.

See the screenshot below, the only one that should be left on is calls/handsfree
[Paid Software Announcement and Discussion] charles8814:
I tried tasker and Macdroid yesterday but still same.

When Headunit server script is running, just AA icon is blinking once with vibration on the master phone but immediately disappear, I guess some problem is that my car automatically connects BT with the phone even after I unpaired my phone to the car. So when if BT is already connected with Master but AAGW trying to connect from slave, it makes problem. That is why other guys makes Script, I fully understand. But unfortunatly that script still not solve problem with my car...

So I wanna try the different cases, but also something is not clear. From the first thread by Emil, there are only 'Master is running Pie or above and slave is tethering' and 'Master is running Oreo or below and master is tethering' then How can I try 'Master is running Pie or above and Master is tethering'? I think it gonna helpful if I change tethering direction from slave to Master. However I am using Android 10 on Master. So I am not sure I could follow those sequences.

I strongly doubt the android10 OS is not working properly as a Master. Anyone who has succeeds Master with android10?
[Paid Software Announcement and Discussion] Marshy33:
I'm using the hotspot from master on Android 10 and all working fine (case 3.)
[Paid Software Announcement and Discussion] charles8814:
Thanks for reply

Then, do you use headunit server script? or Wifiluncher app by Emil?
[Paid Software Announcement and Discussion] naqand:
I removed it because it didn't seem to work for anyone, including myself. If you are still interested, I can upload it again.
[Paid Software Announcement and Discussion] Marshy33:
I start AA headunit server and do not use WiFi launcher.
[Paid Software Announcement and Discussion] Emil Borconi:
[MENTION=7106033]Marshy33[/MENTION] as well.

There is no other way and sadly like you point out this trick is not enough on all devices. What you could maybe do is to change the USB mode of the device, every time you change it the whole USB gets a reset, but this will differ between devices, and there is no easy way of keeping track on which mode is currently available (especially not between reboots). However if you are using you're own tasker profiles to manipulate the slave, you can potentially keep a variable in Tasker and take action based on that:

You should use the svc command to change the modes, like:

svc usb setFunction mtp

and

svc usb setFunction mtp,adb

some phone will need to use svc usb setFunctions (notice the additional s), some will allow to set empty mode, others wont. This 2 modes should work on almost all phones. However if the mode is for example already mtp and you set it again to mtp, nothing will happen, hence you need to keep a variable on the current mode.

On some phones you can use the svc usb getFunction to check the current state, but again this seems to be fragmented between devices and I couldn't find a reliable way to track it.

Also every time you change this the usb will get re-enabled, which can then cause other logical problems on the whole automation process, and again on some devices it will cause a power on/off event to be triggered.

Because all of this hassles my conviction is that a device without power source (tv stick, SBC board) is a wiser choice for this project.

BTW [MENTION=407678]Snirpo[/MENTION] started testing his linux build I'm still waiting for the boards to arrive from China.

On a separate note I might be less active till about mid March, I have a deadline for a different project which I totally ignored in the last 2 month to focus on this and be able to move this project further, but now I need to spend a bit of time with some website development and server maintenance.

Please if there is anything which requires my immediate attention, email me, do not wait till I pick up the messages on the thread.

As of the kickstart project, that is now the highest priority, so even I do have the march deadline I still factored in time for that, but it's not too much I can do till I don't have the SBC's in my hand. Once I do have them I will work around the clock to build the first prototype and together with [MENTION=407678]Snirpo[/MENTION] launch the kickstarter, because that will take it's time to run as well. (and hopefully materialise)
[Paid Software Announcement and Discussion] Emil Borconi:
Try disabling all the BT profiles except the one for calls on the master.
[Paid Software Announcement and Discussion] Marshy33:
Hi Emil,

Thanks for the tips, I'll give them a go.

I actually ordered mk809v of AliExpress last night, as remembered you saying about the usb being totally dead until it's booted up in a previous post.
[Paid Software Announcement and Discussion] epsonix:
[MENTION=842765]Emil Borconi[/MENTION]

I tried new WiFi Launcher. I removed other BT profiles, still no luck. tried case 1 and case 3. did manual tethering and WiFi enabling (in case 3 AAGW disables WiFi after plugging to USB and does not enable it). I tried also USB mode change (I used it in past with AAGW 1.0BEta RC3 to restart in cases it sometimes did not came up), no help. I deleted all stored cars in AA. I tried without Launcher with manual headunit server and hotspot on either master or slave. The same no matter with AAGW 2.0up and which Launcher version since Nov.

I really dream about one setting in AAGW - that it does not interferee with WiFi of the slave (currently disables WiFi) when I connect to USB (probably in attempt to connect to master's hotspot?) - maybe this woudl help? I can prepare WiFi and hotspot manually (for test, later activate back my Automate flows which I used with good success with AAGW 1.0Beta RC3 to create hotspot and force WiFi connection). I wonder why IP setting was removed from AAGW slave apk? Maybe here is some problem on my phones, that you e.g. do not have permissions to check it and so nothing works? Maybe one more setting in the apk to allow manual IP of master?

I remind that in post 1 instructions there is still some out of date information in Master setup about tethering setting there. Woudl be also handy if there is instruction for case of not using Launcher, as well as for using TVstick.

Please, above before your break for next a few weeks - seems to me not that big job to implement 2 settings and update a bit post 1 instructions. Thanks
[Paid Software Announcement and Discussion] Emil Borconi:
I'll re-read the instructions, I did updated them last week for better clarity.

Something is not right, AAGW will only turn off the BT when it's UN-PLUGGED from the USB and when the Tether option is disabled.

Did you restarted the device when changing from case 1 to 3? Possible service is stuck in old mode.
[Paid Software Announcement and Discussion] epsonix:
In most of my tries I did restarted both phones on some stage, but right now I can't say for sure between which tries. I will try again today, will clear all and will try to start from case3 this time (And reboot after setting up). surely each revision tests before case 1 I did so, but can't say for sure before case 3 try.

the same I will reboot before trying without Launcher.

What about that master phone IP - do you reckon automated pick up in new AAGW is 100% OK, or maybe woudl be worth to allow manual setting? my phones keep the same IP forever.

I could miss instructions upate, haven't seen you mentioned it here in the thread. I will recheck. Will let you know late today. Thanks.

---------- Post added at 01:50 PM ---------- Previous post was at 01:49 PM ----------

just checked your instructions, still in Master it says confusing:

MASTER SETUP

Install Wifi Launcher on the master: https://labs.xda-developers.com/stor...launcherforhur (Source can be found here: https://github.com/borconi/WifiLauncherforHUR)

Configure

For every version of Android

Select you're car's BT device, using the "Select on which BT device to star the app"

Master is running Android 8.0 or older

Enable start tethering (should work on most devices)

My master is 9, though shoudl I not have this option (unless you hide it)? Or maybe I'm missing something - there is so many posts and hints on this thread that I get lost and bit confused. Bit more explaination maybe woudl be handy in first post?
[Paid Software Announcement and Discussion] LLStarks:
Downgrading to 2.0.6 didn't help. Looks like I'll need a downgrade of the Wifi Launcher.
[Paid Software Announcement and Discussion] epsonix:
I just tried. I setup slave AAGW with disabled tethering (like for case3 nonetheless I have master A9 and slave A8; case 1 was many times tested from fresh reboot). I rebooted both phones. I enabled manually hotspot on master, I enabled WiFi on Slave, got them connected. I start car, got as always message from Android auto on the car about connection in progress, immediatelly after I started slave WiFI was turned off (as alwasy in my previous attempts), so I was ready and manually turned it one before screen on cars display disappered. Waited like 1minute, no luck. Tried a few more tiems, tried USB toggle (I have icon from Automate on slave main screen) tried disconnect BT from master and connect again. No help. My BT profile has only handsfree enabled as some other users suggest. Slave notification says always car connection established, master Launcher says Running...

Please explain me one more thing. WiFI Direct on Launcher - why it is there still? I remember from times of using AAGW 1.0Beta RC3 successfully with these phones, that I could run any config OK, with master hotspot, slave hotspot of WiFI Direct (of course manually connected phones over this way).

Wonder why neither of ways work with 2nd generation AAGW, as well as without Launcher. Note I also tried some other old phone as a slave (my Samsung A3), which in past was also OK for either method of operation with AAGW1.0BetaRC3, and also does not work with any AAGW2.0up.

I did send you a few debug logs week or two ago, not sure if you had time to analyze these for any clues.

My car is AR Giulia 2018, since a few days with latest infotainment firmware MV090.000.061 (no change here, previously tried with MV085.000.046). I seen in recent weeks somebody saying in his Giulia it worked (hard to find the post/setup etc). I know one guy with Giulia as well, who said for him it only works one time ever when he just get setup. No future connections are successful.
[Paid Software Announcement and Discussion] Freejack77:
OK, thank you. As a first step I will try to use Teamviewer as a screen for my TV-stick.

---------- Post added at 06:23 PM ---------- Previous post was at 06:12 PM ----------

Today I made the first tests with AAGW and the configuration seems to work, exept two things:

1) Voice commands (hey google) only work 1 to 5 times and then they stop working until next drive.

2) Seat driving app complains about disabled location services. Google maps is working fine.

Any ideas?

My config:

MK809IV with RK3229 and Android 7.1 as slave. Installed AAGW as system app, made the setting for TV-stick and set the hotspot from the master. connect to the masters hotspot.

Master: Galaxy S7, use MacroDroid to start and to stop the hotspot depending on BT connection to the car (VAG MIB2). Manually start the head unit server and let it running.
[Paid Software Announcement and Discussion] kaxu003135:
Hi all, I have a MK809IV with 5.1.1 running in 2018 Hyundai.

I see it go through all the steps and master is connected to HUR hotspot. It even says android auto is connected to your car for a bit but then goes away and then nothing happens.

Master is note 9 with android 10 (I gave all permissions already).

Running in root mode: Yes on slave, no root on master

Did the slave actually turned on the hotspot on the slave: Yes

On the master did you select the cars BT in the Wifi Launcher app?:Yes

When the master connected to the car's BT did the Wifi launcher app started up?: Yes

Did the master connected to the slaves hotspot?: Yes

Did the AA icon appeared on the master at all (in the notification bar)?: Yes but disappears in less than a minute. No screen changes on car's headunit.

Ok I changed USB to MTP and now I get to the point Android auto pops up!! But it is gone again right after click open Android auto on my car headunit.
[Paid Software Announcement and Discussion] skatermike21988:
I had the same problem. Try on the master, go into bluetooth settings, select your cars bluetooth from the device list and change it's active profiles. Leave only hands-free/calls enabled. You might need to be connected to the car in order to turn the profiles off. Then give it a try.
[Paid Software Announcement and Discussion] kaxu003135:
That did the trick with only "calls" enabled. Thanks! "Ok google" voice detection isn't working but everything else seems fine. Also if I click on calls for some reason it dc's AA and goes back to BT call menu.
[Paid Software Announcement and Discussion] NYZack:
I could only get OK Google to work properly with version 2.04 on my Honda Clarity.
[Paid Software Announcement and Discussion] propi62:
2.04 is the only version that is working with my VAG(seat) right now in non root mode with the blue screen on the headunit. with all newer versions i never see this screen.

root mode is working with newer versions sometimes, but i have to touch input on the headunit to start it.
[Paid Software Announcement and Discussion] Paacooplus:
Hi everyone, I recently bought a car with AA, and I would like to follow the method discussed in this thread to make it work wireless. For this purpose I'd like to use an Android TV stick with AMLOGIC S905 and android 7.1.2 rooted.

My problem is that the TV stick has just 2 USB port: a micro USB for DC power only and a female type A labeled USB2 where I used to connect my hdd. How should I connect the stick to the car headunit? Maybe type A male to male converter? I'm afraid to burn something ?

Thanks is advance
[Paid Software Announcement and Discussion] kleanphil:
You needed the H96Pro S912 at the very least as it has OTG which is what is required to connect , also android 7.1.2 isn.t the best version for tv sticks
[Paid Software Announcement and Discussion] martin.armstrong:
[MENTION=10409579]skatermike21988[/MENTION]

Where do I find the 'send intent' function in tasker?
[Paid Software Announcement and Discussion] Paacooplus:
Thank you, I just wanted to use what I already have... Now I'm trying with an old android phone, huawei y300 rooted too. I'm able to connect everything using the slave in thetering mode, my master says connected to the car but the car doesn't show nothing, any idea?
[Paid Software Announcement and Discussion] martin.armstrong:
After further testing it seems that whether I get an AA connection with or without mobile data does NOT in fact seem dependent on whether WiFi launcher initiates the WiFi or AA connection or not. It seems to be random. I have also tried without WiFi launcher and using macdroid but also I got an AA connection without mobile data. Using my TV stick instead of a slave phone it also seems randow. I will also test it with tasker instead of WiFi launcher when I have found out how to do it.
[Paid Software Announcement and Discussion] skatermike21988:
When creating the task it's located under System-> Send Intent
[Paid Software Announcement and Discussion] Marshy33:
Please delete
[Paid Software Announcement and Discussion] lifewandy:
I am happy to say AAGateway worked for the first time ever today on my daily commute. I first tried the app on August without much luck: it was super unstable. But thanks to the recent updates, AAGateway is now easier to use and works great! I have a rooted slave running Android 7.1.1 (didn't work before being rooted) and a Galaxy S8 as master (unrooted). Google Assistant does not work unfortunately.

Big tip: Disabling music streaming on the Bluetooth settings (calls only) made the Wifi Launcher work 100% of the times. It seems like the connection to my car starts with calls only, and then tries to "reconnect" for music too, messing up with Wifi Launcher.

Slave: Rooted BQ Aquaris U Plus - Android 7.1.1

Master: Samsung Galaxy S8 - Android 9

Car: 2019 Peugeot 208
[Paid Software Announcement and Discussion] IlD4nX:
I need to try with this advice, I can't make the new version working as the v1.3 ! Thank you !
[Paid Software Announcement and Discussion] sibesaver:
My setup that is working 100%. I've used Waze, Maps, Spotify, YouTube Music, and Emil's CarNotifier app.

Case 1

AAGateway ver 2.0.4 (nothing later worked)

Master Pixel 2XL non rooted Android 10 latest

Slave Pixel non rooted no sim Android 10 latest

Head unit Kenwood DdX9704s

Tasker in place of HUR Wifi

Tasker profile. Need to change Bluetooth name for your car.

https://taskernet.com/shares/?user=...eF6wRVEUdkQ==&id=Profile:AAGateway+Connection
[Paid Software Announcement and Discussion] -Loom-:
For all the people who are using a Smartphone as slave ..

as comfortable this might be, I wonder how the lithium battery copes with the intense heat in the car during summer. I would be afraid of having a ticking timebomb in my car. But I would gladly get convinced otherwise.
[Paid Software Announcement and Discussion] charles8814:
Many people said 2.0.4 version of AAGW is only one which working properly... I hope to downgrade but impossible :(
[Paid Software Announcement and Discussion] IlD4nX:
I tried everything to make it work with 2.0.8 but nothing.

This is my last setup:

- Master just clean flashed, with Android 10 no root (OP7 Pro)

- Slave just clean flashed, with Android 9 root (OP5)

- Slave when car turns on, open the tethering network and connect to the car

- Master (with headunit server ON) connect to the car bluetooth (no audio, just phone) and connect to the slave network, with mobile data

- Master try to open AA but, it close immediately...

What I'm doing wrong ?

Running in root mode: Yes

Did the slave actually turned on the hotspot on the slave: Yes

On the master did you select the cars BT in the Wifi Launcher app?: Yes

When the master connected to the car's BT did the Wifi launcher app started up?: Yes

Did the master connected to the slaves hotspot?: Yes

Did the AA icon appeared on the master at all (in the notification bar)?: No (it appears for 1 or 2 seconds and then it close itself)
[Paid Software Announcement and Discussion] saspo59:
Try changing usb cable
[Paid Software Announcement and Discussion] IlD4nX:
USB Cable ? apparently the issue in un the master which is not connected to any cable...

BTW I did on slave, I'm now using an original OP cable (and if I connect master to clable, AA works perfectly)
[Paid Software Announcement and Discussion] schlotboeller:
Try to delete under Connections\Wlan\advanced (3dot)\Managed Networks the connection HUR.

For testing disable WLAN on Master, normally WifiLauncher automatic connect with the correct parameters to HUR Hotspot on slave.

First times testing i thought WifiLauncher is crashed (in my notification bar, wifi launcher disappears after short time), but when i disable wlan/bluetooth and the enable only bluetooth i see that WifiLauchner enable WLAN and connect to the hotspot.
[Paid Software Announcement and Discussion] IlD4nX:
Thanks for your suggestions, I'm doing as you suggest since the beginning... but again, AA doesn't stay open, it close immediately.
[Paid Software Announcement and Discussion] Marshy33:
It looks like you are using case 1, in which case you do not need the AA headunit server on the master.

The wifi launcher app should initiate the AA connection after connecting to your cars Bluetooth.

You only need the AA headunit server on if the master is creating the hotspot.
[Paid Software Announcement and Discussion] schlotboeller:
Just for clarification, while AA is disappearing the Wlan connection is stable?

Have had a similar configuration:

Master (Android10 non-rooted)

Slave (Android9 rooted)

Works fine after a lot of testing.....

Most of my problems were timing issues. I worked for 1 year with the alpha version. works to 95% successful. sometimes i had to restart both phones. with alpha version i have to wait 20-30 seconds to accept the security information on my car (honda civic 10 2017).

With the new version (only use 2.xx versions) its completly reverse (with a phone).

With the tv-stick (booting ca. 30 seconds) i have time to accept the car headunit information.

Now i'm using a mk809v as slave that works fine too (with less testing). This app is amazing, but i took me hours in the car ...
[Paid Software Announcement and Discussion] IlD4nX:
Uh, really? I will test in some minutes...

I'm doing so many testing myself too... my wife starts to ask me if I have another woman, as I'm always in the car :confused:

I would love to get the usb stick, but I can't find the mk809v here... and I had too many issue with alibaba !
[Paid Software Announcement and Discussion] pflarini:
Emil, a suggestion is:

-> when slave lost power, wait 5 seconds to confirm is the power is really down to turn off tethering.

Some times the power goes off (I don't know why) and immediately goes on again. But this meanwhile, slave stops tethering.
[Paid Software Announcement and Discussion] schlotboeller:
TV-Stick might not be easier to get working. Every new setting of the Stick must be done on TV or Monitor. But after testing so much with phones, it was.

In your situation i think it is easier with phones, they have monitors ....
[Paid Software Announcement and Discussion] IlD4nX:
Checked this morning... yes, wlan connection is stable, bluetooth is stable.

Only AA is opening and closing in few seconds.

So, or is an issue with my OP7 Pro AA setup (but honestly, I don't know how I can check it if cable connected works properly) or is the WiFi Launcher for HUR which is doing something bad.

Any suggestion ?
[Paid Software Announcement and Discussion] schlotboeller:
To check the cable:

Stop AAHeadUnitServer on Master and connect directly to Car USB.
[Paid Software Announcement and Discussion] IlD4nX:
Cable is ok, master connect, AA working properly.
[Paid Software Announcement and Discussion] schlotboeller:
This morning a have a similar problem. See shortly the Icon AA on CarHeadUnit. Then the icon disappear and AA doesn't start anymore. After looking on the master phone (car was on), i see the wlan connection on master was initialising (checks internet quality and so on, takes some time). I disable wlan and bluetooth on master, enable bluetooth (WifiLauncher estlabish wlan connection) and AA works fine.
[Paid Software Announcement and Discussion] morpho26:
Can you please tell which case you use and which config you have.

Aagateway version, Rom on Slave, Rom on Master, rooted or non......
[Paid Software Announcement and Discussion] schlotboeller:
Slave:

Sony Experia XA1 Lineageos16 (rooted)

USB Debugging on

Manuell Hotpot created

AAGateway 2.06 (2.08 not tested)

NonRooted disabled

Start tethering

Alternativ (working too)

Slave:

MK809V Android 5.1.1 (rooted)

USB Debugging on

Hotspot creatid by AAGateway

AAGateway 2.08

NonRooted disabled

TV-Stick enabled

Start tethering

Master (for both slaves)

Samsung S10 Android 10 (not rooted)

USB Debugging On

AndroidAuto 5.xxxxx (Januar 2020)

Starting HeadUnitServer manuell

WifiLauncher 2.0

Automatic Creation of WLAN Connection to HUR

Disabled automtic reconnection in WLAN settings of HUR (Settings/Connections/WLAN/3dot(advanced)/Managed

Networks/HUR)

For testing: delete WLAN Connection HUR and disable WLAN and Bluetooth. then enable Bluetooth. After Bluetooth connected to car, WifiLauncher should automatic enable WLAN and connect to Hotspot on slave. After successful creation of WLAN HUR connection you can disable automatic reconnection.