yashsingh1/xdaforums huggingface dataset:
[Paid Software Announcement and Discussion] DragonFlye:
Hmmm, still not seeing this. I get the master/slave concept if you have a limited slave, like a TV stick (no gps, etc.) The whole point then is to loose the cable and to avoid the hassle to connect your daily phone every time. Also, AA's necessity highly depends on your main unit multimedia/navigation capabilities.

However, the fully featured surplus phone (with its own gps) just acts as your normal phone. So, if I connect this (running AA) to my factory installed head unit via usb, it would initiate the AA interface on the unit. Because it has the same Google account as your current phone, it can access the same settings needed for home/work address, google music, spotify or whatever. The only thing it lacks, is a connection to the internet, needed for online navigation and/or other data retrieval. That's where the hotspot from your main phone is needed.

Because of the absence of a simcard it cannot directly make a call, but your main phone is already connected via BT to the main head unit to make/receive calls.
[Paid Software Announcement and Discussion] swasha123:
:good::crying::confused:
[Paid Software Announcement and Discussion] dogotcat:
Just my two cents, But I think a custom made rom as suggested by the developer here would be an excellent way of doing this. Everything you need and nothing more. With an easy way of updating the rom for future proofing.
[Paid Software Announcement and Discussion] DragonFlye:
Yes, you're right. For something like a TV stick. If you already have one or can buy one cheap.

But

IF

you've got some old phone laying around, it could be a great "make use of:" ... your old telephone (and no need for updates)
[Paid Software Announcement and Discussion] SLAB_8002:
At least in my case, it doesn't work like this. I have a surplus Galaxy S4 that I use for AA Mirror. However, I can't make or receive phone calls when I do this, because the phone connected to AA takes over the Bluetooth connection and does not allow other devices to connect.
[Paid Software Announcement and Discussion] Emil Borconi:
Not quite. That will mean that the slave phone has to have android Auto installed on it so it needs to be at least running lollipop. Also while yes an internet connection will sort out navigation and media, but it won't give you access to sms which are receiving on the master and it won't give you access to hands free calling from the master. When you initiate the AA protocol, the headunit tells the phone this is my Bluetooth Mac address and forces a connection with the phone which is plugged in to the usb, I. This case the so called slave. While some units may allow a connection to multiple phones many don't so your headunit will be paired over Bluetooth to the "slave" and your master will have no clue about the fact that's in the car.

Hope it makes sense
[Paid Software Announcement and Discussion] SLAB_8002:
The small HDMI touchscreen is working for troubleshooting issues with the TV stick. I can now watch what's happening when I boot it up. However, I've run into a new issue with the MK809iv. I factory reset it again so that I could try manually selecting "Connect to PC" and see if that would work consistently. After getting it to work a couple of times, the stick started going into mass storage mode everytime I connected it. I couldn't figure out how to keep it from doing that.

[MENTION=842765]Emil Borconi[/MENTION], in case you missed it, I found the setting that allows you to turn "Connect to PC" on and off. As long as you have root access, AA Gateway should be able to control that setting.
[Paid Software Announcement and Discussion] toband_se:
Thanks so much. This sorted the problem for me as well. I am now able to use AA on my Pixel 2 XL using a cable. Even the cheap ones works without problems.

Now I just can't wait for a more stable solution for the wireless option using a slave. :good:
[Paid Software Announcement and Discussion] DragonFlye:
Yes it does, thanx Emil.

As I said, it all depend on your needs and capabilities of the original head unit. I'd probably only use AA for Google Maps if the factory installed nav comes short. The factory installed unit can pair two phones at the same time, by the way. So in my case a surplus phone running AA would be sufficient.

But why I got interested in the first place is the lack of a good audio player on the original unit. I've owned several full Android head units on which I used PowerAmp and was always pleased in the way my album/cover art was presented. The new unit only shows a ridiculously small thumbnail in relation to the screen-size.

That's mostly what I miss about Android. A decent and fully configurable player. Unfortunately, the AA music player interface isn't that much better. If only the ugly player controls could be made transparent or hidden altogether :rolleyes:
[Paid Software Announcement and Discussion] bggold:
I would rather wait until Emil has time to look more into the outstanding issues.

I'm thinking he will have more control over this and other minor issues once he digs into it and has some logs to look at.

My recommendation is to enable debug and get a bug report generated and send it to Emil. Make sie to include in the email what you were doing and what happened.

If I start to experience this issue I will look into it. Difficult to test the flows without being able to reproduce.

Your welcome for the flows and I am glad they have helped you so far.

Thanks
[Paid Software Announcement and Discussion] Salkod:
If you wish you can use the flows I posted previously which do this exact thing and toggle connect to pc setting when needed, until Emil works on a rom for the mk809iv.
[Paid Software Announcement and Discussion] dhughes72:
For the record... I'm unable to force close Google Play Services (the button is greyed out), but I've found that if I have AA head unit server running, my car waiting for me to push the button to connect, and (google play services is running in my notifications) I go into Google Play services permission settings and toggle the Microphone permissions (it gives a message, I say do it anyway and then immediately turn it back on), it let's me connect right after... every time.

TracPhone Slave

Pixel 2 Master

2018 C300 Head Unit
[Paid Software Announcement and Discussion] wozn:
So does having a wifi dongle (with internet) replace the need for a wifi hotspot on my master phone. Or must the tv stick take internet from the master? Does having a wifi connection between dongle and tv stick prevent the master connection with slave tv stick. Am I looking at something that won't work. Thanks
[Paid Software Announcement and Discussion] bggold:
The slave at this time has to get wifi from master. The code is set to look for the IP gateway to run and that is the master IP.
[Paid Software Announcement and Discussion] newtonfb:
But with WiFi direct we don't need hotspot.... correct? My carrier won't let me activate hotspot on my phone so I'm waiting for WiFi direct to be implement
[Paid Software Announcement and Discussion] baxxter106:
in my case i tryed it like this and google maps and music players work BUT i am not able to connect my real phone via Bluetooth to make phone calls...it always connects the (cable)attached device and my radio (in a Mitsubishi outlander) tells me that Bluetooth connections are limited to music playing with other devices...

so the proxy will be the better solution!
[Paid Software Announcement and Discussion] Fatmonk8:
So I am using my Note 8 as the master and my Oneplus 3T as the slave. I went thru all the steps, but when I plug in my 3T the head unit says its an unsupported USB device.
[Paid Software Announcement and Discussion] bggold:
Yes if Emil implements direct wifi then it should work.
[Paid Software Announcement and Discussion] dogotcat:
Does anyone have any videos of them using this in the real world. Would be interested to see your setups and how it runs..
[Paid Software Announcement and Discussion] lyrical1278:
I'll make a video of my setup tomorrow
[Paid Software Announcement and Discussion] wozn:
More a problem with OnePlus 3T. If your running lineage OS (or rom based on it) on that phone your not going to get android auto working. I found oxygen OS worked somewhat ok.
[Paid Software Announcement and Discussion] Fatmonk8:
I'm not rooted and still on Oxygen. I found out it was because USB connection was not going to MIDI.
[Paid Software Announcement and Discussion] tomechio:
I'm running LineageOS 15.1 on my Samsung S5Neo as a slave with no problems. With Pico Gapps it didn't work but after installing Super Gapps it worked as expected.
[Paid Software Announcement and Discussion] Hckymstr19:
So i have an android stick mk809iv and i did everything step by step but the issue is when i hook it up to my car, i dont get any prompts on my tv stick, nothing. I brought a monitor outside to my car so i could have a screen to see whats going on with the stick and nothing happens. Any suggestions?
[Paid Software Announcement and Discussion] starslicer:
A lot of people need to have the device powered up and connected to the master before they plug it into the car. Which can get tricky with a stick that uses your cars USB for power... Someone might have made a flow to stop it from connecting to your car even if it's plugged in until it's connected to your master though.
[Paid Software Announcement and Discussion] Emil Borconi:
Hi guys.

I'm back, spent most of my day running trough emails, will try to pick up development starting from tomorrow, however probably this will be my priority list:

1) HUR - at least there are a few things which I really need to address

2) OBD2AA - need to find the reason of crash in some cases

3) AAGateWay - work on all the problems.

One of the reasons that I've put AAGateWay on the so called bottom is because the ordered MK809IV stick is only due in next week, and it will make more sense to work on all of it in one rather then in fragmented order. Also I will like to take another dive into working out a reflection method to start the headunit server on the phone, without opening Android Auto, so I can come up with a better approach for that annoying hang.

However I will need some bug reports from those of you who said they experience AAGateWay crashes. Here are some steps which you can use to capture a bug report:

How do I collect a bug report / logcat

1. Enabling Developer Mode

1. Open Settings > About phone.

2. Scroll down to the Build number.

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

4. Return to the Settings menu and select Developer options.

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

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

7. Tab on Logger buffer sizes: Default setting is 256K. Select 16M to help capture more information for debugging. Of note, it can affect the apps performance especially with lower spec phone, so change it back after you have finished submitting bug reports.

2. Capturing a Bug Report

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.

1. Hold the Power button down until the menu appears. (if you don't have a power button go to Settings -> Developer options instead)

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

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

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

5. Download the bug report to your computer.

6. Send the bug report by email to borconie@gmail.com
[Paid Software Announcement and Discussion] billington.mark:
Installed and working great (with a couple of niggles) here.

Slave: Moto G, lineage 14.1

Master: Samsung Galaxy S9+, lineage 15.1

Car: Seat Leon (2018)

issues so far:

The slave device presents android auto to the car before its connected to the Master devices wifi. I have a tasker profile set up to auto bring up the wifi hotspot when it detects the cars bluetooth, but that can take upto a minute or so, resulting in an error on the stereo screen and a few button presses to attempt a second reconnect. Would be nice if AAGateway only presented Android auto capability once its connected to a named Wifi connection maybe?

This wouldnt be an issue on a device powered by the USB port on the car (TV stick) as wifi will most likely be available by the time it started up, but with a phone, which is switched on 24/7, its a bit of a niggle.

Certain voice commands dont seem to work any more. for example, "Play Linkin Park", will work, and it'll start playing through google play music. Asking "Play the latest Linkin Park Album", will just exit the voice prompt and it does nothing. Testing this plugged in 'the old fashioned way' directly to my master device works fine.

Occasional hickup while playing music, where sound will stop for a split second, but then start up again. happened twice on my 30 min commute this morning.

after an album finished playing on google play music, sound seemed to stop, but i could skip tracks and they appeared to be playing on the screen. about a minute after, AAGateway seemed to reset, and start a new Android Auto session on the stereo, then things came back to life again.

I'll grab logs after each issue where i can going forward.
[Paid Software Announcement and Discussion] zakarados:
Great stuff! I didn't use my AA much as my mobile normally stays in my pocket, this is perfect.

Setup with a Nexus 5 as the slave and Pixel 2XL as the master.

Tasker setup to enable hotspot once connected to the cars BT.

Only thing I need to do is plug in the N5 when I want AA and unplug it when I leave the car.

If the N5 stays plugged in when car is starting, it will error before its connected to the hotspot.

Very cool app, very cool way to use my otherwise rubbish Nexus 5.
[Paid Software Announcement and Discussion] sesl_oknel:
My AAgateWay expirience

My setup:

Slave: Stock Nexus 5 (Stock Android 6.0.1)

Master: Motorola X4 (Stock Android 8.0)

Car: Opel Astra K ST 2017 (HeadUnit: 7" R 4.0 IntelliLink)

I leave my Nexus 5 in the car turned on and connected 24/7. Searching for methods how to improve battery life :) On the master, I activate the Wifi hotspot manually before I get to the car this way when the car start I get AA in few seconds. Only a few issues I encountered:

1. Could not place a call to a specific contact, might be caused by having 2 phone number in the contact

2. Google maps, with satellite image, stops working after a few seconds. When master plugged in it works until I hit a disconnect with Error 12, bu that's a Moto x4 issue, not AAGateWay.

Overal experience so far is good, looking forward to the future. And thank you for giving my Nexus 5 a new lease of life :)
[Paid Software Announcement and Discussion] Peter_Ang:
Hi Emil,

Solid work as usual for the AA community and I wish you are leading the AA developers instead!

This certainly help those with usb connection issue and those left behind (like me :crying:) by head unit makers despite having built-in WiFi and the specs to support AA Wireless (wish you could also take on this project :D).

I know you have your hands full and I'm having a solid AA USB connection so I'm in no hurry to see this...

What are the chances in developing this in future to be an off-the-shelf preinstalled WiFi dongle that is just plug and play except setting up the wireless connection? One that has as fast a cold boot as the head unit so that it is ready to connect the same time the head unit is ready. Something like the below in idea though still the same wireless proxy for compatible AA head unit.

hxxp://feeldo.net/usb-dongle-work-with-apple-ios-carplay-android-auto-for-car-androidwince-system-headunit-navigation-player
[Paid Software Announcement and Discussion] LLStarks:
Is there a new end-to-end guide about flows, automation, tasker, nfc tags, etc for the phone, headunit, and middleman?

I'm lost in the gap of "it just works" and "we can make the whole thing smoother".
[Paid Software Announcement and Discussion] bggold:
I think it is too soon to have an end to end guide for an alpha release. I'm sure Emil will have something when it is out of beta.

What are some of your questions. Several of us have it working smoothly and have worked out most of the kinks for others until Emil can get back on this and look at the reported issues and logs.

We are here to help you out no matter how lost you might be.
[Paid Software Announcement and Discussion] LLStarks:
Just looking for overall best practices. About to get a new car with AA. My expected setup is below.

Master: Pixel 2 XL (9.0)

Slave: OnePlus One (8.1), Galaxy S3 LTE (8.1), or a MK809IV (does it matter which version of Android it ships with?)

Car: OEM 2018 Honda CR-V EX 7.0" headunit

Every single device would be rooted, yes even the car because Honda apparently lets you do that.
[Paid Software Announcement and Discussion] aim2miss@gmail.com:
First post to XDA (no experience with rooting or development.)

AAGateway experience

equipment

slave: Nexus 5x stock android 8.1

master: LG V30 stock android 8.0 (tasker turns the hotspot on when it connects to cars bluetooth)

head unit: 2017 Honda Accord OEM

AAGateway works well for me most of the time and I love it. It does fail to connect sometimes and I usually reboot all 3 devices to get it going again.

The most significant problem I have, which I haven't seen mentioned before, AAGateway shuts down and my headunit freezes when I lose cell data. When cell data returns it does not work again until I unplug the slave and then plug it back in. Most of the time once it's replugged AAGateway starts up and everything starts working again.

Thanks Emil for your work
[Paid Software Announcement and Discussion] SLAB_8002:
You beat me to it. I've been driving across the U.S. and noticed that my mobile hotspot does not work in areas with no cell coverage, which has been a significant portion of our driving in AZ, UT, CO, and WY. I'm assuming this will be less of an issue when Emil implements WiFi Direct in future versions.

My most significant issue right now is that I have to reboot the master phone and restart the headunit server after each use.
[Paid Software Announcement and Discussion] typhoonikan:
I've tried using old HTC phones as slaves. M8, M9, and HTC 10. Not sure if it's an HTC thing, but when plugged into the headunit , "Use USB for file transfers?" Dialogue appears and I believe is ruining the whole process. The head unit does not like the phones. And I get error 4852, I think it is.

I've tried setting the default for use USB for as charging as well as MTP. No use. The dialogue appears over and over again.

Any ideas?
[Paid Software Announcement and Discussion] Emil Borconi:
MK809IV arrived today together with some flu :( hate it.

This week I've been doing quite a lot of work on the HUR project, which now seems to be almost completed, obd2aa and AAGateWay will follow.

For end to end documentation (most of it) can be found in the OP, however some devices behave differently (mainly the mk 809 iv), hence ordering one of them to get a better understanding of it.

Regarding the "off the shelf" product, probably the custom ROM + mk 809 iv will be the closest you can get to it.
[Paid Software Announcement and Discussion] jeromeo01:
It does exactly tly the same with Sony Xperia but if you connect everything in the right order after a fresh reboot... it works.
[Paid Software Announcement and Discussion] Emil Borconi:
Question.

To implement Wifi-Direct and to have a better control of the connection (to reduce the number of instances when AA hangs on the phone) as I have described at an earlier stage, I will need to create a secondary app which sits on the phone. My small problem with this is that I already have an app (obd2aa) which sits on the phone and allows users to display Torque data as well as it gives Speed Camera warnings to users, which at the moment cannot be used in conjunction with the wireless method, so I need to change that as well.

Will it be OK with you guys if I add the receiver part to the obd2aa instead of creating yet another app to be installed on the phone? This way I can manage the code better and I can also sort getting obd2aa to run when using the Wifi connection

The reason I'm asking is that the obd2aa is not a free app, so for those looking to get Wifi-direct (or reduce the number of times AA hangs on the phone) it will mean that they will need to fork out an additional $1.99 (trough they will get some additional benefits as well, not only Wifi-Direct connection).

Do you think that will be reasonable or do you want me to create a separate app for connectivity only which should be installed on the master phone?
[Paid Software Announcement and Discussion] Genebaby:
I'm good with the one app, it is not a lot of money for the functionality we get, thanks.
[Paid Software Announcement and Discussion] SLAB_8002:
I would absolutely shell out another $2 to get a reliable wireless solution for AA, even though I don't really have any use for Torque data.
[Paid Software Announcement and Discussion] Emil Borconi:
It's not just torque, it's also speed camera warning as well as a street card on your home screen showing current street and speed limit...
[Paid Software Announcement and Discussion] chernabog88008:
Dude, I'm willing to shell out $20 to help with getting this up on a 809 IV as a ROM, so $2 towards accomplishing more to this would be worth it. I'm going to wait until the 809 is ready, however, as I don't have an extra device to test anything on.
[Paid Software Announcement and Discussion] swasha123:
[MENTION=224120]Emil[/MENTION], I am in. No problem. Not using OBD device but no problem.

But please make solid connection of WiFi display.

It should remove restrictions of "Sequence Matters".. We all want to keep Slave connected to car for forever.

using AAgateway since 17th July without any intermittent disconnect issue.. but if miss SEQUENCE during initial connection, need to reboot everything.
[Paid Software Announcement and Discussion] aravindnc:
Not working on any Xiaomi devices

This is the error im receiving in slave phone.

Tried both rooted and non rooted phones. I've tried using Xiaomi Mi4i and Xiaomi Mi4

[IMG="error"]https://image.ibb.co/fdnvyz/IMG_20180719_091102.jpg[/IMG]
[Paid Software Announcement and Discussion] Emil Borconi:
Try to open Settings -> Apps -> All apps -> Google Play Services -> Clear Defaults (not Clear Data!)

Now plug the phone in and you should see a prompt asking which app to use, select AAGateWay
[Paid Software Announcement and Discussion] Gunde:
Absolutely reasonable. You are spænding your time and energy on this. No one is owed anything for free.
[Paid Software Announcement and Discussion] aravindnc:
[MENTION=842765]Emil Borconi[/MENTION] I have already tried that a dozen times. The prompt comes everytime and I choose AAGateway, then it will show error message like the screenshot. I've tried multiple phones, Xiaomi Mi4 and Xiaomi Mi4i.
[Paid Software Announcement and Discussion] Sn4pdragon:
[MENTION=224120]Emil[/MENTION], Why don't you build as part of the AAgateway app, so when you install it or run it for the first time the user can chose if they are using it as the master or slave? That way all the code is together in the same app?

Ps this is fabulous what you're doing!!
[Paid Software Announcement and Discussion] Emil Borconi:
That might a Xiaomi issue then

The error basically says that the app doesn't have permission, but to grant permission you need to select when prompted, which you did....
[Paid Software Announcement and Discussion] Emil Borconi:
Fair point, will give it a thought, especially on how can I make it work together with obd2aa...
[Paid Software Announcement and Discussion] newtonfb:
Ive already purchased AA gateway but cannot use it until WiFi direct is implemented...(Carrier wont let me use hotspot). I have no problem paying $1.99 for another app. Its less than my coffee this morning.