yashsingh1/xdaforums huggingface dataset:
[Paid Software Announcement and Discussion] Emil Borconi:
Can you send me a bug report from both devices please once you reproduced the exact thing you have described. Then after you reproduce it please try as follows as well:

1) Open AAGAteWay on the slave and change to non-root mode

2) Reboot the slave

3) Open AAGateWay on the slave press the master phone's BT Mac and select the masters BT (make sure the master is close and the BT is visible on the master)

4) Exit AAGateWay

5) Plug in the slave to the car

With this setup you should see a splash screen on the car, saying waiting for Master, only then you will see the hotspot being turned on, only then the master will connect to it and then you should see the AA icon on the master poping up, then you should see a connection (or in some cases the car screen turns black, in which case press the home on the car then go back to AA).
[Paid Software Announcement and Discussion] smoki3:
How the grab the bug reports?

Also tested the non root mode. The splash screen appears. But this ends in the same story. After a view tests the headunit shows as connected but not able to access Android auto
[Paid Software Announcement and Discussion] Emil Borconi:
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.

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] IlD4nX:
For some reason I don't understand, on my slave (OP5) every time there's an update of the app, I have to reset the phone otherwise it disappears from my list of apps.

Does it happen to anyone else ? Could be linked to the app being a system app ? (and infact it appears immediately after the reset asking for root permissions...)
[Paid Software Announcement and Discussion] martin.armstrong:
[MENTION=758488]IID[/MENTION]4nx

I had a similar problem on my MK809V stick. It took about 5 attempts before it would install as system app and still appear as an icon in the list of apps. If I chose not to install it as system app , after a re-boot it was in the list of icons but as soon as I moved it to the system tray, as requested in the app, after a reboot it had disappeared again. After reinstalling old version and then the new version again I finally got it to stay in the list of apps.

Unfortunately I need it to be a system app on my stick as otherwise the stick usually repeatedly asks which app is to be assigned to usb and I have no input possibility, except during testing with a mini hdmi screen, to respond manually to the question.
[Paid Software Announcement and Discussion] charles8814:
I amnlooking forward to get a my MK809IV

But today I suddenly got a huge question for it.

The MK809 is a android stick without screen. Then How can I click the yes for default app setting when I connnect the slave to the car??

Because It is impossible to see the pop-up for android auto without a car and also impossible see the screen in the car without any monitor or TV... I really curious about this....

And in the master phone when HUR app running the bluetooth detectuon, the currently running app disappear. The master phone go to home when the BT setup has selection for any BT address. So if I unselect any BT on the HUR app ot does not happen.It is very uncomfortable to general use of master phone
[Paid Software Announcement and Discussion] martin.armstrong:
[MENTION=10362165]charles8814[/MENTION]

The tv sticks come already rooted and if you set AAGateway to use it in rooted mode and install it as system app then AAGateway should do everything automatically, including responding to such pop-ups.
[Paid Software Announcement and Discussion] naqand:
Hi all, I recently found out about this project and am eager to get it to work in my car. However, like most of you, I'm experiencing trouble getting it to work.

Since it's cold outside and I'd rather stay indoors while testing and playing, I came up with a nice solution.

I built a small VM (virtual machine) that can be run in Oracle VirtualBox (free) on any computer (Windows, Linux or Mac). It acts like a car's Android Auto receiver for connected USB devices.

So, to test my AAGateWay settings, I can just attach the slave to my laptop and fiddle away!

If you like to do this yourself, follow these steps:

1. Download and install Oracle VirtualBox on your computer

2. Download and install the Oracle VirtualBox Extension Pack (needed for USB support)

3. Download my OVA to your computer

4. Import my OVA in VirtualBox: File -> Import Appliance...

5. Start the OpenAuto VM

6. Plug in your slave and attach it to the running VM: Devices -> USB -> USB Settings -> Add filter (icon with green 'plus' sign) -> OK

7. Unplug and replug your slave

8. Go back to step 6 if it doesn't work yet (I needed to do it twice for my Samsung S9+)

9. Enjoy!

If you want to test whether the VM setup works for you (if AAGateWay is not working yet), just unplug your slave and plug in your master (with Android Auto installed) instead. Attach it to the VM like in the steps above and it should just work like in your car.

Technical details: It is a simple Linux VM with OpenAuto. The OpenAuto application starts automatically on VM startup. If you want to change anything on the VM, the root and openauto user's passwords are set to openauto. It takes up about 6GB disk space.
[Paid Software Announcement and Discussion] NYZack:
This sounds cool. However, I think one of the problems people have been having is that different cars' headunits behave somewhat differently - for instance doing strange and unpredictable things with the USB connection and perhaps with Bluetooth.
[Paid Software Announcement and Discussion] naqand:
Thanks. I know, my 'solution' is for the step before that, getting AAGateWay to work in combination with existing settings like tethering and apps on my phones. I posted it here in case other people find it useful in these cases too. Once I figured out how I want everything to work (for instance, using Tasker instead of Wifi Launcher for HUR), I'll be out in the cold debugging the connection with my car too. :)
[Paid Software Announcement and Discussion] fma965:
I have had the "waiting for master" screen show up on the car before but only on the really old build, will do some testing when i can.
[Paid Software Announcement and Discussion] Matt_black_90:
I got it working today by using "case 3" instead of "case 1" even though both my devices is android 9.(from instructions on first page)

And used Macrodroid to start the hotspot on the master when connected to the cars Bluetooth.

It connected at first try and stayed connected for the whole drive, about 50 minutes.

Now I have a problem that Spotify and google play music crashes after a few minutes.

The music stops and a message on the screen reads "Spotify doesn't seem to be working at the moment"

Thought this is not necessary a fault on aagateway.
[Paid Software Announcement and Discussion] Marshy33:
Good to hear you got it working.

Is your slave rooted? If so did you use root or non root mode?

Also does it work every time you start the car?

I have only ever been able to get it to connect once, also with case 3. Now when I try the same steps, I get a black screen on my headunit like it's just about to start android auto, but then a notification stating my slave has been disconnected.
[Paid Software Announcement and Discussion] Emil Borconi:
Guys if you are using Wifi Launcher for HUR on the master make SURE you disable Auto start on BT inside Android Auto.

If you're master is on Pie or Higher, thanks to [MENTION=477099]ggilliland[/MENTION] you can try using a Tasker Profile instead of Wifi Launcher for HUR app on the master. Here is the tasker profile:

- Make sure you do adjust the IP accordingly to match you're slave's IP

- Make sure the task only fires when you're master is actually connected to the slaves hotspot.

<TaskerData sr="" dvi="1" tv="5.9.1">
<Task sr="task10">
<cdate>1578399914869</cdate>
<edate>1578771567764</edate>
<id>10</id>
<nme>Connect To HUR From WiFi Connection</nme>
<Action sr="act0" ve="7">
<code>877</code>
<Str sr="arg0" ve="3">com.google.android.projection.gearhead.STAR T_WIRELESS_PROJECTION</Str>
<Int sr="arg1" val="1"/>
<Str sr="arg2" ve="3"/>
<Str sr="arg3" ve="3"/>
<Str sr="arg4" ve="3">PARAM_HOST_ADDRESS:192.168.43.1</Str>
<Str sr="arg5" ve="3">PARAM_SERVICE_PORT:5288</Str>
<Str sr="arg6" ve="3"/>
<Str sr="arg7" ve="3">com.google.android.projection.gearhead</Str>
<Str sr="arg8" ve="3">com.google.android.apps.auto.wireless.setup .service.impl.WirelessStartupActivity</Str>
<Int sr="arg9" val="1"/>
</Action>
<Action sr="act1" ve="7">
<code>307</code>
<Int sr="arg0" val="14"/>
<Int sr="arg1" val="0"/>
<Int sr="arg2" val="0"/>
</Action>
</Task>
</TaskerData>
[Paid Software Announcement and Discussion] martin.armstrong:
Quote naqand

6. Plug in your slave and attach it to the running VM: Devices -> USB -> USB Settings -> Add filter (icon with green 'plus' sign) -> OK

7. Unplug and replug your slave

8. Go back to step 6 if it doesn't work yet (I needed to do it twice for my Samsung S9+)

9. Enjoy!

[MENTION=4417277]naqand[/MENTION]

After steps 6 and 7 nothing happens in VM, should AA picture appear automatically?

Do I have to select 'wireless connection' or what do I have to do in the case of connecting the slave and in the case of connecting master to computer?

In any case when I click anywhere in the VM window it comes up with a pop-up about mouse capture and I press ok but then the mouse no longer appears in VM window and so I cannot click on anything else.
[Paid Software Announcement and Discussion] Marshy33:
After seeing [MENTION=6659673]Matt_black_90[/MENTION] success with the same headunit as me using case 3 from the first post, I thought I would try that set up again.

Every time I had tried recently I would get a black screen on the head unit for a second and it would then say disconnected. Probably spent a good few hours trying things.

I am now kicking myself!!!

I simply tried a different usb cable and now case 3 is working for me :)

Case 1 I still don't have any success, but its a step in the right direction!
[Paid Software Announcement and Discussion] Matt_black_90:
Yes slave is rooted and running in root mode.

Have only tested two times now but so far it connects directly. :)

Edit:

Saw you got it working now, nice!

Now i just need to figure out why Spotify is crashing all the time :/
[Paid Software Announcement and Discussion] naqand:
My Samsung S9+ (stock firmware) identifies itself with 2 different USB id's, my guess is the second is purely for Android Auto. That's why I need to plug/unplug several times to be able to configure the USB attachments in my VM correctly. Once that's set up, I can simply boot up the VM, attach my phone, and the AA picture appears automatically.

You shouldn't use the button 'wireless connection', because this is using the USB connection. You can use the mouse in the VM by using Tab to select 'Toggle cursor' and then press the space bar on your keyboard.
[Paid Software Announcement and Discussion] Marshy33:
I have had the Spotify error when using android auto normally via a cable, but also just had it happen using this app.

Looking online it says to remove it from any android battery saving modes.

I have also noticed that if I play Spotify on my phone before I connect to the car using this app, it loads up fine.

I'll let you know if I manage to solve it.
[Paid Software Announcement and Discussion] propi62:
i love the new versions. they connect very fast and are stable. used it today for 3 hours without problems.

i would love to change DPI on my rooted android 9. (option is grayed out)

another thing i think you are able to implement is to remove the 9tab limit and the disable search in waze/google maps whene driving?
[Paid Software Announcement and Discussion] Emil Borconi:
If your car support it you can try the non-root mode, there you will be able to get that, but with root mode which ensures compatibility with almost any car/headunit that's not possible (sorry)
[Paid Software Announcement and Discussion] martin.armstrong:
[MENTION=842765]Emil Borconi[/MENTION]

how does one find out or set the ip address of the slave hotspot?
[Paid Software Announcement and Discussion] Marshy33:
Download an app like Fing from the play store, connect to your slaves WiFi and open Fing you should the slaves ip under the name router.

There's probably an easier way without the need for apps, but this will work.
[Paid Software Announcement and Discussion] NYZack:
Unfortunately I found that on Lineage OS, Android 9, the IP address of the device generating the hotspot changes every time it's started. I read that this functionality is intentional.
[Paid Software Announcement and Discussion] sfanicola:
Hi guys,

I'm trying to use the AAGateway without success, so I post my setup hoping somebody could help me out.

Car Unit: RCD330+

Slave: Samsung Galaxy S4 running Lineage 16.0 rooted (first it was running Android 5.01 but can't get it work at all with that)

Master: Xiaomi Mi9 MIUI 11.06 Android 10

I did everything suggested without success.

Slave tethers connection to Master and I can see both apps running... I selected always on AAGateway at usb connection

The Car Unit shows up with "SAMSUNG_Android connecting through Android Auto" but after a little while.. "connection failed"

Even if rooted I tried the "No Root" option on slave, setting also the BT MAC, and I get the AAWifiGateway - Waiting for master to connect..." splash screen, but even that Master is connected nothing happens.

Hope somebody can suggest me something to do...
[Paid Software Announcement and Discussion] Emil Borconi:
On the master can you see the Android auto icon showing up when the master connects to the slave hotspot?
[Paid Software Announcement and Discussion] martin.armstrong:
Courtesy of ggilliland I have a link which you can use to import a task into tasker that is the equivalent of the xml code above.

The task also has an additional line altering the media volume which you probably don't need. I will test the task later today but comparing it with the xml code it seems to be ok. I have posted it below so that other people who do not know how to import xml code into tasker can try it also.

By the way I have found out that, on my master phone at least, that when it is connected to slave hotspot the ip address can be displayed in the settings. (search for 'ip address')

Also the ip address of the slave hotspot on my slave phone and my MK809V stick seem to be the same and I think stay constant.

https://taskernet.com/shares/?user=...R&id=Task:Connect+To+HUR+From+WiFi+Connection
[Paid Software Announcement and Discussion] sfanicola:
No...

I just see the notification of WifiLauncher is running and tether connection to slave running
[Paid Software Announcement and Discussion] Emil Borconi:
Can you send me a bug report please from the master after it connected to the slave's wifi?
[Paid Software Announcement and Discussion] sfanicola:
I'd like to... can't find the way to do it on miui11
[Paid Software Announcement and Discussion] Emil Borconi:
Enable developer options, then go to developer tools and find the menu point there called take bug report.
[Paid Software Announcement and Discussion] sfanicola:
Ok but "Take Bug Report" is missing there... damn
[Paid Software Announcement and Discussion] Emil Borconi:
Buggers... sorry don't own any miui device so I'm not sure how to....

Let's try it in another way, forget the Wifi Launcher for a second, and on the master manually start the headunit server, then manually start tethering.

Now on the slave disable the tether option and select the masters Wifi from the list, or any.

Now try to plug in the slave to the car, this way the slave will connect to the masters Wifi, the downside is that you need to have the headunit server running on the master.
[Paid Software Announcement and Discussion] sfanicola:
Sorry for noobness... when you say headunit server do you mean the AAgateway? I haven't install it on master.... Or do you mean the Headunit Reloaded? I'm confused now :eek:
[Paid Software Announcement and Discussion] Matt_black_90:
I have had it happen with cable as well, but not as often.

I did disable battery savings mode for Spotify last night, while driving to work this morning it didn't crash at all :)

Hope it's fixed.

[MENTION=842765]Emil Borconi[/MENTION]

Thanks for an amazing app, works better than i expected.

I did not get it to work when creating a hotspot from the slave. (Case1)

I noticed that if I connect my master to a wifi without internet I can not use internet over 4G.

Could this be why it's not working?(aa notification "connected to your car" appears for a few seconds then disappear)

I have read that it should be possible with android 9 but I have looked thought the wifi and data settings

on my Vivo Nex S and can not find any solution.

I was just thinking if this is the problem then maybe Xiaomi phones works the same and that's why two xiamoi users(@marshy and [MENTION=5704926]sfanicola[/MENTION])have similar issues with "case 1"?

It does work flawlessly with "case 3" so I'm happy, just wanted to share my two cents. :)

Master vivo nex s android 9

Slave Nexus 5 root android 9
[Paid Software Announcement and Discussion] Emil Borconi:
I mean on the master, open Android Auto, go to settings, tap the version number 10 times, then from the 3 dotted top right corner select start headunit server and exit Android Auto.
[Paid Software Announcement and Discussion] sfanicola:
hell yes.... it works. At least it worked once... after disconnection same error appears. I'll have to try again later!
[Paid Software Announcement and Discussion] Marshy33:
Its changed on Miui 11

Go to settings - about phone - click on Miui version several times until you become a developer.

Then to take a bug report....

Go to settings - All specs - click on CPU 5 times.
[Paid Software Announcement and Discussion] naqand:
Hi, I posted yesterday about my OpenAuto VM for testing. After more testing, I found out that AAGateWay is (currently, version 2.0.4) incompatible with OpenAuto. The VM works perfectly when my master is directly attached with USB, but not with AAGateWay in between. Also in Non-Root mode, where AAGateWay should display the waiting screen, I just get a channel error on OpenAuto and nothing is displayed. Apparently AAGateWay really does behave differently from Android Auto itself.

In the meantime I've got AAGateWay working reliably in my car (Ford Focus with SYNC 3.4), by following the 'case 3' steps on my slave (Samsung S4 with LineageOS 16) on the first post, and making sure the hotspot and AA headunit server are running on my master (Samsung S9+ stock). No Tasker tricks or Wifi Launcher needed on the master.
[Paid Software Announcement and Discussion] sfanicola:
So Headunit server has to be active... But after a reboot of the phone you have to reactivate it anytime...

That's bad considering that I have to connect anytime the master via USB to access settings and activate it.

If that is the case then it's not suitable for me... Too many steps

Better to let always connected and use AA from the S4 at this point
[Paid Software Announcement and Discussion] Emil Borconi:
Openauto should be working with aagateway, codebase is very similar to HUR. For non-root mode did you selected the masters BT, otherwise indeed it will break the BT channel.
[Paid Software Announcement and Discussion] Emil Borconi:
Why would you connect with USB? Simply download AA for phone screen on the master.
[Paid Software Announcement and Discussion] naqand:
I'm afraid the two don't interoperate. I've tested multiple times on both root and nonroot mode, both in my car and with openauto. AAGateWay displaying is working reliably in my car but not in openauto. I did select the masters BT for nonroot mode, which is why it works in the car.
[Paid Software Announcement and Discussion] DAVIZINHO:
Hello,

I have a functional question and not for a malfunction.

Today the method to work is the slave make the hotspot and the master connect to it.

Its posible that the hotspot was created by the master, and the slave connect to it?

A lot of phones when connect to a wifi without internet connection, not use data mobile. You must select this option each time that connect to wifi. This is a problem.

Aditionally to it, if I create the hotspot in the master, both devices have internet (the slave and the car radio), and this was very ussefull

I understand that now, all the automation works when the slave is the hotspot and my question is: ¿its very dificult to have the both options?

thanks a lot

-David-
[Paid Software Announcement and Discussion] naqand:
My apologies. The incompatibility with openauto isn't caused by your apps, it's caused by LineageOS. AA itself isn't working on my slave in combination with openauto either. AAGateWay is working fine on my master (with stock rom) in combination with openauto.

Luckily everything works fine in my car, so I'm already happy. :)

BTW, awesome apps you have created! :)
[Paid Software Announcement and Discussion] Marshy33:
Hi Emil.

I have now got it working successfully with case 3.

I I have one issue though, when first getting in the car and turning the ignition on everything connects as it should but my head unit doesn't recognise the slave.

I believe this is due to the time it takes for head unit to start up "smart link" for android auto.

I was wondering if an option of delay could be added to the AA gateway app.

If I let my headunit start up and then plug in the slave after 20 seconds I always connect. But if it's already connected or if its connected within the first 20 seconds it won't recognise it. I then have to pull the usb out and plug it back in for AA to start.

Thanks

Edit....The above issue also happens when using a cable normally..
[Paid Software Announcement and Discussion] Emil Borconi:
Is the slave running in ROOT mode as it that case the slave should actually turn off the USB itself till the connection to the master is not stable and only then turn on the USB....
[Paid Software Announcement and Discussion] Emil Borconi:
Yes use case 3 from the how-to
[Paid Software Announcement and Discussion] Marshy33:
Yes it is using root.

I believe the a stable connection is being created within the first 20 seconds and my headunit will not recognise it.

It's the same if I have my master plugged in by the usb cable. I have to pull the usb and plug back in after 20 seconds of my unit being on.
[Paid Software Announcement and Discussion] Emil Borconi:
Well for you probably the MK809V stick will be the ideal solution. That needs about 30 seconds to boot up till then the USB is absolutely dead so car has no clue anything is plugged in, by the time the OS is available on the MK809V the car radio will be ready as well.

Sadly still waiting for the MK809IV to arrive in order to test....
[Paid Software Announcement and Discussion] Marshy33:
Thanks, I'll await your testing.

Just had a thought. I'm using macrodroid to turn on the hotspot on the master, so I'll try putting a delay of 20 seconds before it starts and see how it goes.