yashsingh1/xdaforums huggingface dataset:
[Paid Software Announcement and Discussion] Thofkes:
Emil, you are a genius! Nice work. I just took the latest Beta out for a spin and here are my results:

Master: Samsung Galaxy S8+ (no root)

Slave: Samsung Galaxy S6 Edge (no root)

Headunit: Chevy MyLink (OEM)

Very simple setup- Master connects to car bluetooth, has hotspot enabled (have to do this manually due to Verizon restrictions) and Headunit Server running. I open the AAGateway app and start manually. (Would be an even better app if I could somehow automate these steps on my non rooted Verizon devices.) Slave connects to WiFi from Master and when I plug in for the first time after reboot, I select AAGateway as default. Now all I have to do is click on the Android Auto app on my headunit and it loads up instantly!

Everything runs very smoothly! I tested Google Maps with no problems. Phone calls worked great. My only issue was some very minor skipping when streaming Pandora. Happens once or twice per song, but the song continues no problem. I almost feel like the Android Auto interface is snappier than when I have my S8+ plugged directly in!

When turning the car off and getting back in later, I don't have to touch the Slave at all. I just make sure the AAGateway app is running on my phone (it seems to force quit after a disconnect) and open Android Auto on my headunit and it launches right away!

This is the only testing I have done so far, but I am pretty blown away by how well it is working now in Beta! Good job Emil and thank you for your hard work! Can't wait for even more updates and potentially a Google Play stable app one day!
[Paid Software Announcement and Discussion] Emil Borconi:
Just so I understand does the aagateway not start automatically when the .aster connects to the cars Bluetooth?
[Paid Software Announcement and Discussion] Thofkes:
No sir. I was wondering why it wasn't working at first even though I had my car's Bluetooth selected on the master app. After starting it manually, everything began working.
[Paid Software Announcement and Discussion] Emil Borconi:
Odd. It should start automatically on Bluetooth connection, please do follow instructions from op and send me a bug report after your phone has connected to the cars Bluetooth. (Only from master)
[Paid Software Announcement and Discussion] LLStarks:
Finally got a connection. This was a lot more rom-sensitive than I thought it'd be and troubleshooting took a while. Went through Arrow, Tuga, and Lineage 16 before settling on Lineage 15.1 with gapps for my OnePlus One slave. The others either didn't detect my car properly or lacked the bug report shortcut.

But it works. I'll have to test more extensively over the next few days. I usually dread being stuck on the green Android Auto screen when master and slave disconnect non-gracefully.

I've sent over bug reports anyway.
[Paid Software Announcement and Discussion] szo1:
Many thanks Emil for you time and effort

Apart from streaming Spotify where there is light skipping in songs and the sound is a bit 'tinny' (similar to Thofkes a few posts back)

Everything else seems to be working great so far.

Master; Xperia XZ2 compact

Slave; MK809 III tv stick on android 5.1

Head Unit; Sony XAV-100
[Paid Software Announcement and Discussion] nodgel:
Thank you Emil, latest release works great,

Only issues (not issue for me, but may be by design) are that gateway doesn't automatically start on master phone when connected to the headunit via Bluetooth and tiny milisecond skips on Spotify sound

Thanks again for your great work!
[Paid Software Announcement and Discussion] bggold:
Grab a bug report for Emil you are the second person reporting this.

I don't have the issue.

Can you also let him know your devices and head unit.

Thanks
[Paid Software Announcement and Discussion] nodgel:
I am not by my car right now, will grab when will be again,

Master s8 on oreo stock, head unit jvc kw830bt

Slave nexus 6 running LOS 15.1
[Paid Software Announcement and Discussion] mikethepomme:
Emil

I have tried unsuccessful to get it working with a mk809iv... it wasn't rooted, and couldn't find much info on how to root. It was fairly cheap, but thought I might just buy a MK808B instead, as the 809iv seems to have a lot of issues.

Your initial post mentions the MK808B and MK808B Plus... which do you recommend as they seem to be different.

Thanks

Mike
[Paid Software Announcement and Discussion] Sn4pdragon:
Hi,

I have:

master - s9 (no root)

Slave - Xiaomi Redmi 2 (android 4.4) (rooted)

When slave on WiFi hotspot of master and plugged in to usb car the master recognises the connection to slave as screen flickers then force closes itself (on the master)

So a little more research using a Xiaomi MI5 on android 8 as slave.

Master (S9) says it's connected and slave says connected but slave doesn't display AA on car screen... However when making s9 slave and MI5 the master it works, so it's something to do with the Samsung s9 as master not working

Any suggestions?
[Paid Software Announcement and Discussion] stpf77:
Call me blind if I am, but can't seem to find a link for the download...?
[Paid Software Announcement and Discussion] Emil Borconi:
As I have stated in the OP, don't use Xiaomi as slave, the MIUI makes it impossible for the app to work. If you have root on the Xiaomi you can try to enable the "MK809/MK808" option on slave and see if it works that way but I wouldn't put my chances to high.
[Paid Software Announcement and Discussion] Emil Borconi:
You are right the link wasn't in the OP, sorry I've updated it now.
[Paid Software Announcement and Discussion] Jaihoidundso:
Hello,

I don't know how to send the logs and i'm away for a week now, so I write it here:

I updated the version on both devices (Slave: LeEco, Master: OnePlus 6) and started car radio. Now it works better sometimes. It's right, that the app doesn't start automatically, so I have to do it manual. I activated Android Auto developer mode and slave connected to master. After that I plug in the usb from slave to car (if I do it before, than it's not working and master always show that he is waiting for slave) it is showing all the steps to aa init completed (is it right?) and than Android Auto developer mode and AAgateway stops and exit. So it's not possible to use it. Otherwise it's not very meaningful that I have to plug in the phone after starting the other steps, so than I can plug in the master himself... that's the same... I hope that somehow something from the project will be. :)
[Paid Software Announcement and Discussion] Emil Borconi:
MK809 does give me headache as well, the problem is around the "connect to PC" USB setting. This is not a standard setting and even if enabled sometimes connections is not established and you need to disable this option and re-enable it for the connection to kick in. I've spent a lot of time on this device without success at the moment, I might try something different with it, but not sure when I will have more time for that.

The one other TV Stick I have at home and which seems to work is the MK808B Plus

However working with this devices I find out that they aren't so trustful as I was hoping and like every device can have a different rom with some non-standard things in it wich can break the whole concept, therefore I cannot guarantee that buying one particular device will work or not. Sorry about that.
[Paid Software Announcement and Discussion] Sn4pdragon:
Thanks, didn't see that part.
[Paid Software Announcement and Discussion] fezster:
Thanks for the latest beta Emil.

Still getting a similar crash on my master phone.

S9 Plus master (non root)

Doogee X5 slave (root)

It gets as far as displaying a message on headunit saying to "follow instructions on phone", and then AAGateway crashes on master. Bug report sent. Relevant section:
[Paid Software Announcement and Discussion] alexo95:
Im also having issues with aagateway crashing on my master, oppo a77 non root

Sony xav-ax100

Starting up the app and clicking manual start brings it back for a short while then crashes again

Getting better and better with every update!

Thank you for your hard work Emil!
[Paid Software Announcement and Discussion] Emil Borconi:
Not the same like last one, here AA is dying in the background and it's making AaGateWay die too. This is the line of code where my app crashes:

catch (Exception e) {
e.printStackTrace();
}

Which is funny because this is suppose to be an exception handler, and normally you would expect that the exception is not null, but the exception trow by AA is null which cause my app to crash as well.

Can you please try to:

1) Reinstall Android Auto

2) In Android Auto enable force-logging

Try again if the problem persists grab me a full logcat please I will like to see what's happening in AA as well.
[Paid Software Announcement and Discussion] Emil Borconi:
Please send me a bug report.
[Paid Software Announcement and Discussion] fezster:
Replied.

As an aside to the crash - the slave phone does not automatically initiate android auto on the car (which it does when connected by USB to my S9 Plus, and also does when I was using alpha of AAGateway). The slave phone just says "Listening for state changes" and I need to go into the car's menu and enable the phone manually (it shows up as OnePlusOne....something for some reason). The car is a 2018 Audi Q7.
[Paid Software Announcement and Discussion] Emil Borconi:
Yeah everybody will see OnePlus as phone :) the slave needs to identify itself to the car at a very early stage (when slave has no clue about the master), nothing more then a string and a PNG so it was easy to copy & paste the initialisation from my OnePlus hence every car now showing the phone as a OnePlus, but that can be actually whatever string in the feature.
[Paid Software Announcement and Discussion] alexo95:
Unfortunately i cannot work out howto. In my phone in developer options there is an option for select debug app, with no apps able to be debugged. And there is no capture bug button.

It may be worth building some debugging/logging capabilities into aagateway?

I wish i could be more helpful!

Thankyou
[Paid Software Announcement and Discussion] Emil Borconi:
If your device does not provide a "Take bug report" on power button in the Developer options there will be an entry called "Take bug report" usually quite on the top of the list. What's your master device?
[Paid Software Announcement and Discussion] alexo95:
Oppo a77. There is no option for taking/capturing a bug report.
[Paid Software Announcement and Discussion] Emil Borconi:
Based on this: https://www.androidjungles.com/enable-developer-option-usb-debugging-oppo-a77/ there should be an option called "Bug Report" (slightly different name)
[Paid Software Announcement and Discussion] alexo95:
I have usb debugging on but cannot work out how to actually save the log
[Paid Software Announcement and Discussion] odl:
I have feeling there still is need for having particular order of connections to have it working, but need to test it more in "natural" behavior, not sitting in the car and turning things on/off ;)

Two problems spotted so far:

1. Sometimes my head unit does not want to initiate BT connection with my master, because it claims (when trying to force it manually) it's already connected (slave name pops up here, as it's already connected as AA device). Slave has BT turned off and is not paired with HU.

2. Sometimes AA gateway on master does not recognize that slave and car BT is not in range anymore and does not turn itself and hotspot off (hangs in notification until manual exit is toggled)

Master: pixel 2

Slave: xperia z5

HU: Opel/Vauxhall IntelliLink navi900
[Paid Software Announcement and Discussion] Emil Borconi:
Some cars will hang on the the BT connection after shutdown (STUPID!) others (like Ford Sync 3) actually will reconnect the BT after you stop the car (for a very short period) all this things can throw a spanner in the works, and to try to mitigate this AAGateWay on the master will IGNORE any BT re-connection for 20 seconds after the last successful disconnect.

Also some cars will need quite a few minutes till they brake the connection with the slave USB device, even if the car is off there is still power in the headunit (stand by mode) and the USB connection is not really terminated which prevents the slave from re-initate the connection when you turn the car back on.

Like you said in a more "normal use" probably most of this problems will go away or the amount when this happens will be lower, because eventually car headunit will turn off completely, allowing the slave to reconnect on next power cycle, as well as master being able to start the whole sequence on a new BT connection.
[Paid Software Announcement and Discussion] Emil Borconi:
Since I'm really not happy with the MK809V and I was looking into what else can be used which is small and cheap I have came across this small device:

http://www.orangepi.org/orangepizero/

Ordered one from Amazon which should arrive tomorrow and I will let you all know if this is a suitable option for a cheap slave. There is official support for Android 4.4 for this device so I hope that we can use this as our Slave and worldwide availability seems to be good as well.
[Paid Software Announcement and Discussion] stpf77:
Ok, been bashing my head against the wall trying to get this up and running (13 reinstalls and counting) but i always seem to come to a grinding halt when i plug everrything into the HU.

Master - S9 (no root)

Slave - MK801iv (rooted)

HU - Kenwood DMX 8018s

Follow all the installation steps chronologically, Slave connects to hotspot, etc etc...

Then it just freezes.

Master has the following notifications - (AA Dev) Head Unit Server Running (AA Gateway) Running....

Slave - (AA Gateway) Listening to State Changes

Are any of the following assumptions incorrect?

1. The HDMI cable doesn't need to be connected to the HU.

2. The master doesn't need to be connected via USB to anything (except a charger of course)

3. Would it be easier on my nerves (it's 2am and i've been doing this since 10-1030pm... #persistence) to just wait till I can go steal an S5 off my brother and make that the slave?

Any help, greatly appreciated.

TIA
[Paid Software Announcement and Discussion] LLStarks:
The Orange Pi Zero looks cool and very viable.

Nice cases for it too.

https://www.amazon.com/Makerfocus-Orange-Protective-Compatible-Expansion/dp/B0728HFRD4
[Paid Software Announcement and Discussion] fezster:
Emil, I think it would be useful to add an option to toggle USB on slave when wifi connected (I assume root will be required for this option).

The slave initiates the AA connection to the car when you first plug it in, but if the master's hotspot is not active, it just goes into "Listening to state changes". If I manually toggle the usb on the slave or from the car, it then tries to initiate AA again. I think this step can be automated - maybe it is already, but doesn't seem to be working with my car (?)
[Paid Software Announcement and Discussion] NYZack:
This is running beautifully for me on my rooted Nexus 6 slave and Pixel 3 master phone.

Unfortunately, there's no way to automate starting a wifi hotspot on my Pixel 3; in particular, AAGateway doesn't do it (I haven't been able to find any way, including Tasker, to do it). I don't know whether this is an Android P "feature" or a limitation placed by my carrier. Would there be any way to connect the two devices via Bluetooth tethering? Is the bandwidth high enough? I know that this is easily automated, and I also know that my master phone can be simultaneously connected via Bluetooth for audio and calls to one device (my car) and for tethering to another device (the slave).
[Paid Software Announcement and Discussion] Emil Borconi:
It might be carrier, I can confirm for sure that aagateway does turn on the hotspot on pixel 3 with pie, so it's probably a limitation in the ROM set by the carrier.
[Paid Software Announcement and Discussion] *justintime*:
For me it's still not working either.

Everything looks okay. The notification bars says it's connected.

I still can not pass the warning screen.

Slave HTC one M7 lineageos 14.1 android 7.1.2.

Master LG g4 lineageos 14.1 7.1.2

Master HTC U11 Android 8.0

Unit VW Golf Mib2.

I will take a bug report tomorrow.

I hope the orangepi will serve as a good slave.... Any idea about the startuptime? Or maybe it's better to let it run on a battery pack and let it be on always.?
[Paid Software Announcement and Discussion] NYZack:
You're probably right. No easy way to include Bluetooth tethering as an option?
[Paid Software Announcement and Discussion] bggold:
Is your pixel 3 rooted?

I am not able to get aagateway to turn on hotspot but I can get automate to do it on bt connect on rooted pixel 3.

Thanks
[Paid Software Announcement and Discussion] NYZack:
No, not rooted. I don't want to root my main phone. Can you automate the hotspot if you disable root? (Anyway, Emil said he was able to get AAGateway to turn on the hotspot on his Pixel 3, though he didn't mention if it was rooted.)
[Paid Software Announcement and Discussion] bggold:
He has it working on a non rooted 3.

I have not spent a lot of time with sending him a bug report since he has more pressing issues to resolve.

Once he is ready I will.

Thanks
[Paid Software Announcement and Discussion] NYZack:
In my case, I don't think this is a bug. I'm pretty sure that it's not automate-able on my Verizon Pixel 3 (can't say anything about other carriers' Pixel 3's). When I use the "Wifi Tether" action on Tasker, Android generates an error referring to the lack of a "TETHER_PRIVILEGED" permission, which I think non-system apps don't have access to (on my phone).
[Paid Software Announcement and Discussion] bggold:
Try using automate and write a flow just to trigger hotspot and see if it will start it. You can do this sitting on your couch. I know it works on a rooted pixel 3 xl.
[Paid Software Announcement and Discussion] NYZack:
android.os.RemoteException: Remote stack trace:
at android.app.ContextImpl.enforce(ContextImpl.java:1812)
at android.app.ContextImpl.enforceCallingOrSelfPermission(ContextImpl.java:1840)
at android.net.ConnectivityManager.enforceTetherChangePermission(ConnectivityManager.java:2011)
at com.android.server.ConnectivityService.startTethering(ConnectivityService.java:3249)
at android.net.IConnectivityManager$Stub.onTransact(IConnectivityManager.java:381) 2019-01-06 15:10:36.588 INFO 3@2: Stopped by failure

Interestingly, I have no problem turning on the hotspot manually.
[Paid Software Announcement and Discussion] bggold:
Talking with Emil it looks like some difference between the 2 and 3 with pie. I sent him a bug report or him to look at without root.

Hopefully he will find something.
[Paid Software Announcement and Discussion] sibesaver:
I'm looking forward to the addtion of Wifi Direct Emil stated he was working on in the near future. My carrier locks down hotspot access and it's a pain even if you pay to include it in your plan.
[Paid Software Announcement and Discussion] odl:
Tested it again in normal environment and had 100% success during my 5 drives. The only downside is that master may lose mobile network and gps range more often, as it sits in the pocket all the time ;)

I have also one question - how it is with media sound in this wireless setup? Does wireless AA use different codec for media in comparison to normal wired connection? I'm asking, because with wired connection Waze navigation sounds were nicely lowering music volume while played and during wireless connection Waze just cuts media out during its announcements, like it would be switching to different stream for that.
[Paid Software Announcement and Discussion] Emil Borconi:
There is a chance the problem is caused by the car, working on some logs today which where from and Audi, I found that the app is causing a crash in Android Auto, not been able to get to the bottom of it yet, but it might be related to some people reporting issues with obd2aa and VAG cars... since codebase is the same. I need to investigate this more, sadly I don't have a VAG car (and no I will not buy one just for tests :D) will look into how can I make this happen.
[Paid Software Announcement and Discussion] Emil Borconi:
No it should be no difference, can you please check if you connect normally does this still happen or was it just a very odd coincidence.
[Paid Software Announcement and Discussion] *justintime*:
VAG cars are a pain in the ass. Literally..[emoji23][emoji23]... My boss wants me to drive it.

I know there are some. Vcds (VAG communications system) hacks to bypass video in motion and mirrorlink in motion.

Maybe it has something to do with that?

Thanks anyways.[emoji106][emoji106][emoji106] And great for the guys who has it working!
[Paid Software Announcement and Discussion] Emil Borconi:
Oh bring it over I will be more then happy to drive it :D Shoot me an email please to borconie@gmail.co I might ask you to test something if you don't mind.
[Paid Software Announcement and Discussion] Emil Borconi:
Confirmed now it's a CARRIER restriction. Thanks for [MENTION=5437072]bggold[/MENTION] for testing the theory :) You can turn on Wifi Tethering without ROOT on a Pixel 3, but not on Verizon. If you are on Verizon, you might consider rooting and using Automate or Tasker plugin which deals with this (but again it will require root)
[Paid Software Announcement and Discussion] bggold:
It seems we have determined the tether start issue to be carrier related. Verizon phone no sim tether starts with sim no start. Root is a work around with automation or wait and see if Emil can build in root to start

Thanks

Ha Emil beat me to it. :)
[Paid Software Announcement and Discussion] sibesaver:
Yes. Verizon hotspot is a total pain. That's why i quit paying for it. Hopefully you can get WiFi direct or alternate tether to work.
[Paid Software Announcement and Discussion] suku_patel_22:
I feel your pain. In 12 years of working on Java, never faced this :D . So now a null check for the exception!!

This indeed looks great. Its small, discreet(in a black case), takes power from the OTG port. Hopefully, it would be awesome if this worked and performs well. Waiting to hear the good news soon.
[Paid Software Announcement and Discussion] fezster:
A look on google seems to suggest this is surprisingly more prevalent than you'd think. It seems to be mainly android developers reporting it also.

Reasons seem to vary from the debugger, emulator or a non-conformant virtual machine. It may be cleaner passing the exception to a logger (which checks for nulls). I agree, very strange though.
[Paid Software Announcement and Discussion] suku_patel_22:
Yeah, I've hardly any android development experience. The last time i did an app was 6 years back.
[Paid Software Announcement and Discussion] rpgreentree:
So far I have got the beta working but I have 2 issues.

1st. It seems I still have to connect in order with the USB connection on the slave last. I can't just leave the USB connected and have everything connect automatically.

2nd. After disconnecting from the car, AA perseveres on the master and only stops when you manually exit from aagateway.

Master s8 not rooted

Slave s5 rooted

HU PajeroSport by Kenwood

When I've had more time to test further I'll post a full report.
[Paid Software Announcement and Discussion] fezster:
I've seen the same. One way around this would be an automate script which disables and enables USB when the wifi hotspot connection is made. This may require root, though.
[Paid Software Announcement and Discussion] odl:
just checked with cable connection and it was the same... looks like Waze "broke" it with recent updates - now Waze sounds seem to go via notification/assistant "channel" (don't know how to call it - there are different volume settings for media and assistant), which my HU does not handle very well, meaning assistant "channel" sounds have poor quality and are breaking media stream when played. I wish there was possibility to force all AA sounds to be visible as media by HU, but I doubt that's possible ;)

anyway not AAGateWay issue.. just coincidence with Waze update at the same time.