yashsingh1/xdaforums huggingface dataset:
[Paid Software Announcement and Discussion] Kaitlyn2004:
I've got a Pixel 4 and a Pixel XL - I guess I could root the Pixel XL - would I be able to make this work? 2020 Toyota 4Runner. I currently hate having to plug in my phone each time... would love a set-it-and-forget-it solution!

I'm not so much worried about the $0.99 app cost, mainly just going through the entire "setup" process and having it still not work?
[Paid Software Announcement and Discussion] lipippo:
Point 1) is done, I'm struggling with point 2): I cannot way a reliable way to start the head unit server on android auto. I wrote an automate fiber that starts the "com.google.android.projection.gearhead.companion.settings.DefaultSettingsActivity" then simulates clicking on the menu to activate the server, but that only works when the phone is unlocked :(

Any idea?
[Paid Software Announcement and Discussion] -Loom-:
I use the following MacroDroid intent:

Action:

com.google.android.projection.gearhead.START_WIRELESS_PROJECTION

Packetname:

com.google.android.projection.gearhead

Class:

com.google.android.apps.auto.wireless.setup.service.impl.WirelessStartupActivity
[Paid Software Announcement and Discussion] lipippo:
Thank you but that does the reverse of what I want.

That action instructs android auto to connect to the slave, I want it to start listening instead (that's what the menu "start head unit server" does) so that the slave can connect to the master.
[Paid Software Announcement and Discussion] -Loom-:
Sorry, you're right.

The following shellscript starts the headunit server:

#!/usr/bin/env sh
su
am start-foreground-service -W com.google.android.projection.gearhead/com.google.android.projection.gearhead.companion.DeveloperHeadUnitNetworkService

You need to replace "start-foreground-service" with "startservice" on older android versions.
[Paid Software Announcement and Discussion] JohnnyCanuck:
That only works with rooted phones. If not rooted, the only way to do this is with AutoInput.
[Paid Software Announcement and Discussion] lipippo:
Well, the "su" kinda gave it away ;)

My phone is rooted and the command works.
[Paid Software Announcement and Discussion] juandhi:
[MENTION=5873262]franco853[/MENTION] [MENTION=10434009]kleanphil[/MENTION] Sorry to bother but did you guys ever end up getting this working on your respective Alpines? Thanks!
[Paid Software Announcement and Discussion] RFOX100:
Working perfect on kia sportage 2019

Even aamirror and car stream are working good
[Paid Software Announcement and Discussion] kleanphil:
Alpine

No i didn't , i didn't root the slave but doing so might get you more sucsess . If you get it to work please let me know

Phil
[Paid Software Announcement and Discussion] Kaitlyn2004:
Having some issues with my first trial:

- 2020 Toyota 4Runner

- Master Pixel 4 fully updated

- Slave unrooted Pixel XL Android 10

- AAGateway (stable) is installed on slave, Wi-Fi launcher on master. All seems configured as expected - slave has appropirate hotspot name, has the master BT MAC address selected.

- Master wifi launcher has the slave device to start the app.

- I plug in slave to car

- I turn on car and I get the AAWifiGateway "connection" screen displaying on the CAR SCREEN

- Sometimes (not always?) the master eventually boots android auto but only shows the screen "STOP Android Auto will resume when your car is parked. Already parked? Put on the handbrake."

- The car 100% of the time has shown the android auto is disconnected and to plug in again.

As my Pixel 4 was already being used with the car, it was at a time using android auto over USB, and it also connects to the car via bluetooth - could multi-bt-connection be a culprit?

Any other ideas? Happy to provide any more information, photos, videos that could help diagnose/solve the problem!
[Paid Software Announcement and Discussion] dome82:
First of all, congratulations to the developers. i tried using Samsung S10 (Master) paired with Samsung A20e (used as slave). Procedure for Android Pie version or higher for both. Car: Honda Civic 2019. Nothing to do. What am I doing wrong?
[Paid Software Announcement and Discussion] lipippo:
Well, I've got to the point where my forked AAGateway works quite well. I did it this way:

The hotspot is on the slave and the master is configured to connect to said hostspot.

The slave, instead of connecting to the debug server on the master, listens on port 5288.

When it detects the usb connection it sends a trigger via UDP (port 4455) to every station connected.

I wrote an app to be installed on the master that receives the trigger and instructs android auto to connect back to the slave.

No need for root on neither the master nor the slave, it needs 3 or 4 tries before establishing a working connection but after that it works quite reliably even with my picky MIB2 headunit.

I complemented that with some macrodroid macros on the slave (to turn off the hotspot and turn on battery saving mode after a while without power and turn on the hotspot/off the battery saving when power is connected) and an automate macro on the master that plays a sound when it connects to the slave's hotspot (so I know I can push the "android auto" button on the headunit).
[Paid Software Announcement and Discussion] loveall27:
Hi , is it possible for you to share the details such as slave phone, master phone details , various steps you took to configure etc etc.
[Paid Software Announcement and Discussion] lexiperplexi91:
Are you able to share your files? I just simply can't get it to work with my old S4 or Nexbit Robin and would love an alternative till the AAWireless device gets released.
[Paid Software Announcement and Discussion] lipippo:
I can't share the aagateway.apk since the license forbids it, but you can build it yourself

https://github.com/olivluca/AAGateWay

https://github.com/olivluca/AAstarter
[Paid Software Announcement and Discussion] ryanfraser38:
I really need some help with this.. I feel like I'm so close but still not working...

Master: OnePlus 6t (rooted Android 10 custom ROM) Slave: OnePlus one (rooted Android 10 custom ROM) car: VW polo 2015

I have followed the instructions as normal and have the master saying connected to car display but nothing happens on screen and slave device doesn't show in devices on car to connect to (see first picture)

I realised after this I hadn't got the prompt to use gateway as default app so I installed Android auto on the slave (not set up) got the prompt to set as default but Aagateway app just goes grey (see second picture)

To start with my default USB configuration was no data transfer once I tried to changing it to file transfer the slave device appeared in the car but wouldn't connect and keeps changing back to no data transfer.

I have tried having headserver in Android auto itself on and off but are there any other setting in AA app that may be conflicting?

Please help! I feel it must be down to USB connection somehow as the WiFi launcher app says connected to car screen
[Paid Software Announcement and Discussion] ChronoWerX:
Hi, I build your version, but the app starts and closed immediately. Is it ok or what is the problem?
[Paid Software Announcement and Discussion] lipippo:
Yes, it's OK. When you connect the slave to the usb in the car, the phone should ask if you want to start aagateway and a check mark to do it by default. Do it and from now on you should see a notification "aagateway is running" every time the headunit tries to connect.

Edit: I checked the instructions and they already say how to use it, granted, I didn't specify that if you start the application via the launcher it does nothing, I'll modify the instructions.-::
[Paid Software Announcement and Discussion] ChronoWerX:
Yes but where I enter the master BT Mac?
[Paid Software Announcement and Discussion] lipippo:
Uh? Nowhere. Did you read the instructions?
[Paid Software Announcement and Discussion] Kaitlyn2004:
Haven't heard any response to my Pixel 4 (master) + Pixel XL (slave) setup - anyone know if this should/should not work? It "launches" then pretty quickly disconnects from the Toyota 2020 4Runner headunit. Pixel XL is non-rooted, but given everything seems to be happening (although failing at some point) I imagine it's not a big deal?
[Paid Software Announcement and Discussion] diehardbattery:
I'm having an issue getting this to work on my 2019 Mazda CX5 (USA). I go through all the steps, and everything says its connected, but the master's screen keeps flickering like it's trying to switch to something. Master is a Samsung Galaxy Z Fold 2, slave is Moto g7 Power (rooted)

Master is running Pie or above and slave is tethering:

Running in root mode: (Yes, slave is)

If running in non-root mode, is the splashscreen visible on the car: NA

If running in non-root mode, did you set the masters BT inside AAGW app?: (Yes, even though in root mode)

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

On the master did you select the slaves 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)

The screen flickers as stated above, or there have been 1 or 2 times where the master has come up with a message something like it's not safe to do this right now. The car is in park, I've tried both with the parking brake on and off. Most times the master screen just flickers.

I have sent a log to the email address on the first page.
[Paid Software Announcement and Discussion] franottavio:
Problema connessione

Goodmorning everyone,

i am new to the forum and i would like to ask if anyone can help me with my problem.

My configuration is as follows:

Master Galaxy S10 + non-rooted with Android 10 with WiFilauncher ver 3.6.1

Galaxy S5 slave rooted with AAGateway ver 2.2 stable

Toyota CHR 2020 car

I connect the slave to the car's USB port and everything seems to work fine between the two phones, they are connected to each other and the "AA running" notification appears on the master.

However, "AA has disconnected. Disconnect and reconnect" appears on the infotainment display.

I tried to connect the slave with several usb cables, but the problem remains.

Thanks to anyone who can give me advice.
[Paid Software Announcement and Discussion] dazzzler08:
plz help

[not able to buy the app through credit card. Any way I can get the app through Internet Banking transaction?
[Paid Software Announcement and Discussion] JohnnyCanuck:
For those struggling with this, I have never been able to get the WiFi Launcher app to work. I have been able to get this to work fairly consistently using the Tasker task linked in the OP.

I have two Tasker Profiles: the first disconnects WiFi on my master and connects to HUR on BT connect with my car; the second runs the Tasker task on a BT connection to my car and HUR WiFi connection on master.
[Paid Software Announcement and Discussion] moric5:
Hi

But is there a people what works?

With a dongle mk809 as slave work?

I used many slaves but no works with nothing!!

Master is OnePlus 7 Pro with root
[Paid Software Announcement and Discussion] valeri_s_k:
Yes, it is working stable for me. Only music is laggy, but it is due to mk809 2.4 ghz wifi and weak hardware. Use it non stop for navi (waze).

Slave: mk809 iii

Master: Xiaomi Redmi K20 pro, Custom AOSP rom Android 11, no root at the moment, but used to work rooted as well. Removed root due to banking app.

Head unit: VW Discover Media (MIB2) 2017
[Paid Software Announcement and Discussion] moric5:
So music don't work well? Radio internet it's no possible? thanks
[Paid Software Announcement and Discussion] valeri_s_k:
With mk809 dongle- no, won't work.

But if slave is a phone with 5 ghz hotspot, probably will.

Despite it is mentioned in OP that Xiaomi phones are not good for slaves, before mk809 stick, I have tested Xiaomi Mi 5s that supports 5ghz hotspot as slave and music was good. Unfortunately successful AA connections were less than 20%.
[Paid Software Announcement and Discussion] moric5:
So at the end, is better the cable!
[Paid Software Announcement and Discussion] valeri_s_k:
Yes, It is an option.

The other option is:

https://www.indiegogo.com/projects/aawireless

Follow updates and comments
[Paid Software Announcement and Discussion] moric5:
Thanks for link

However i already see the box on Facebook

But is available at march 2021

And however I pay online only with PayPal
[Paid Software Announcement and Discussion] lipippo:
You may well be right. In fact, now that I managed to make it work reliably, I don't see the point of it:

android auto guzzles quite a bit of battery, so you need a charging cable anyway, unless you have wireless charging.

it could be useful for short trips so you don't have to take the phone out of your pocket, but in the pocket the gps receiver doesn't work very well.

The only advantage I see is that now I can keep the phone in a better position: the usb socket is in the armrest (the worst place for gps reception, what did they think?) so I used to put the phone in one of those air vent holders with a short cable.

Now I can keep the phone in a better place (a compartment in the dashboard, I tried to put it there with a longer cable previously but it didn't work reliably) and have neither the phone nor ugly cables in sight, but I reckon it is too much effort for too little gain.
[Paid Software Announcement and Discussion] sunarowicz:
Yesterday I built your forked AAGateway and installed on slave (old Lenovo running stock Android 5.1). I followed the steps on GitHub page but was not successful to connect my master (Samsung S5 Neo on custom Android 10) to MIB2 headunit in my car. I had your AAstarter installed on master. Master was connected to the slave's hotspot. I did several attempts, but without any luck. Headunit recognized connected slave, but launching the Android Auto connection from headunit button failed every time with the message saying something like "the connection is not possible to establish". Only the notification "Android Auto Gateway Running..." appeared for couple of seconds on the slave and disappeared then. Nothing visible happened on the master. Any idea what might be wrong and what to check?

BTW: Should master be connected via BT to headunit? Mine was.
[Paid Software Announcement and Discussion] lipippo:
Ensure that you can both ping the slave from the master and the master from the slave: I have recently updated lineageos on my master and, with both the wifi connected to the slave and 4g, I could reach the master from the slave but not the other way round.

The symptoms is that you see android auto starting on the master (do you?) but nothing happens since the master cannot connect back to the slave (and android auto quitting after a few seconds).

My solution was to disable 4g until the master has successfully connected to the slave (with an automate flow), since once the connection is established it is kept even with 4g active.

Mind me, yours could be a completely different problem, the mib2 is quite temperamental and the timing is critical (e.g., to solve the above problem I tried to put the hotspot on the master but that didn't work, even if I could ping in both directtions, I think because of different timing).

In that case you'll have to look with logcat both on the master and the slave (I used connectbot on both phones and used "logcat | grep -i aastarter" on the master and "logcat | grep -i aagateway" on the slave).

Oh, and make sure you build the latest version of my aagateway, where I filter either ipv4 or ipv6 depending on a setting (both phones had both ipv4 and ipv6 addresses, the slave contacted the master on both addresses and I think that also caused some problems).
[Paid Software Announcement and Discussion] spikked27:
Having problems getting the master to launch android auto, everything else seems to work just nothing happens when the slave connects to the master's hotspot, running a galaxy s20 as the master and Android 6.0.1 tablet as the slave, also tried manually running the android auto server on the master to no avail

Master is running Pie or above and slave is tethering:

Running in root mode: No

If running in non-root mode, is the splashscreen visible on the car: Yes

If running in non-root mode, did you set the masters BT inside AAGW app?: Yes

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

On the master did you select the slaves 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
[Paid Software Announcement and Discussion] diehardbattery:
Hey, I posted an issue I'm still having a few pages back. I emailed Emil with debugging logs... he said he thinks he knows what's happening but needs to update the AA gateway app... maybe you can have a look? Link to debug logs.
[Paid Software Announcement and Discussion] lipippo:
Sorry, but those logs are from emil's apk, so I cannot help you.
[Paid Software Announcement and Discussion] diehardbattery:
No worries... I didn't see a way to try your apk... I must be blind lol
[Paid Software Announcement and Discussion] NYZack:
Anyone having problems with the AA overlays (nav bar, time, signal strength, weather) disappearing after a few seconds? This used to be an intermittent problem, but now it happens every time. Only happens with AAGateway, not with a wired connection.
[Paid Software Announcement and Discussion] shmykelsa:
YES!

I have indeed the same problem.

It's like AA crashes for a second.
[Paid Software Announcement and Discussion] NYZack:
But, in my case, it's not just for a second. The overlays never return.
[Paid Software Announcement and Discussion] shmykelsa:
Ouch

In my case it just lasts for 1 to 2 seconds
[Paid Software Announcement and Discussion] valeri_s_k:
Never happened before, but few days ago I also had it once. It was Waze running and stayed there until next restart of AA. I supposed it was Waze (I am beta tester) related, as app just has been updated.

Of course not sure what caused it - AA, Waze or something else.
[Paid Software Announcement and Discussion] eelsid:
I built these and installed, but I think I'm running into an issue with "package visibility" on Android 11. Here is a log from the master:

10-29 22:01:33.307 1389 1559 I AppsFilter: interaction: PackageSetting{9997d68 org.ventoso.aastarter/10400} -> PackageSetting{3966e94 com.google.android.projection.gearhead/10391} BLOCKED

I tried adding the permission but failed:

# pm grant org.ventoso.aastarter android.permission.QUERY_ALL_PACKAGES

Exception occurred while executing 'grant':
java.lang.SecurityException: Package org.ventoso.aastarter has not requested permission android.permission.QUERY_ALL_PACKAGES
at com.android.server.pm.permission.BasePermission.enforceDeclaredUsedAndRuntimeOrDevelopment(BasePermission.java:427)
at com.android.server.pm.permission.PermissionManagerService.grantRuntimePermissionInternal(PermissionManagerService.java:1451)
at com.android.server.pm.permission.PermissionManagerService.grantRuntimePermission(PermissionManagerService.java:1404)
at com.android.server.pm.PackageManagerShellCommand.runGrantRevokePermission(PackageManagerShellCommand.java:2287)
at com.android.server.pm.PackageManagerShellCommand.onCommand(PackageManagerShellCommand.java:249)
at android.os.BasicShellCommandHandler.exec(BasicShellCommandHandler.java:98)
at android.os.ShellCommand.exec(ShellCommand.java:44)
at com.android.server.pm.PackageManagerService.onShellCommand(PackageManagerService.java:21647)
at android.os.Binder.shellCommand(Binder.java:929)
at android.os.Binder.onTransact(Binder.java:813)
at android.content.pm.IPackageManager$Stub.onTransact(IPackageManager.java:4603)
at com.android.server.pm.PackageManagerService.onTransact(PackageManagerService.java:4342)
at android.os.Binder.execTransactInternal(Binder.java:1159)
at android.os.Binder.execTransact(Binder.java:1123)
[Paid Software Announcement and Discussion] lipippo:
Sorry, I don't have any device with android 11 to test :(
[Paid Software Announcement and Discussion] bagadj:
Hi guys, i tried to let AA wireless with this tutorial.

unfortunately it does not work... my master shows "AA connected to car" but nothing happens on car display...

i think is something related to slave?

i tried also with tasker task on master to launch AA but with same result...

slave: oneplus one with root

master: onelplus 6t no root

any help?
[Paid Software Announcement and Discussion] eelsid:
They made it so apps can't see what other apps are installed without that new permission. I was able to workaround this by systemizing it.
[Paid Software Announcement and Discussion] lipippo:
So the proper solution would be to add a query section to the manifest or target api 29?

https://developer.android.com/training/basics/intents/package-visibility
[Paid Software Announcement and Discussion] sunarowicz:
Thank you for you reply! It helped me a lot in getting the wireless setup to work finally. Interestingly I have to setup the hotspot on master. I didn't manage to get it working with hotspot on slave. Unfortunately I'm still not able to use AA though as the AA app keeps crashing unexpectedly. It crashes even when connected directly to HU (in the old fashion way). Many users do report the same, for example here: https://support.google.com/androidauto/thread/29038596?hl=en. I'm facing the same symptoms. Downgrade to AA 4.5 is no solution, as it forces its upgrade upon the first start.
[Paid Software Announcement and Discussion] lipippo:
Go figure, for me is the other way round (timing issue I think).

FWIW I have 5.7.603964 on android 10 (lineageos 17.1). Working quite reliably. Crossing fingers.
[Paid Software Announcement and Discussion] lipippo:
I added a query section to the manifest, [MENTION=8016710]eelsid[/MENTION] can I send you the apk to test? Or if you prefer to compile it yourself the diff from the published version?
[Paid Software Announcement and Discussion] eelsid:
Sure an apk is fine.
[Paid Software Announcement and Discussion] diehardbattery:
Slightly off topic but where would one learn how to build an apk? I have zero experience doing it lol
[Paid Software Announcement and Discussion] eelsid:
I can confirm that this is working on Android 11!
[Paid Software Announcement and Discussion] lipippo:
Thank you, I'll push it to github tomorrow.
[Paid Software Announcement and Discussion] chazarss:
Anyone knows cheapest phone to use as SLAVE and supports needed functions ?
[Paid Software Announcement and Discussion] sunarowicz:
Is there a way how to do testing against desktop headunit? When I connect my master to PC I can run the Android Desktop HU Emulator from Android Studio fine. It displays the window containing the HU screen. But when I connect slave to the PC and launch the desktop HU, the window shows up but immediately closes. It doesn't wait until the aagateway makes the connection to master. I checked the desktop HU configuration options but didn't find any that could keep the window open until the wireless connection is made.
[Paid Software Announcement and Discussion] shmykelsa:
Emil mailed me a while ago that testing on the DHU is not simple because it's not exactly like connecting to a car.
[Paid Software Announcement and Discussion] sunarowicz:
Hmm, that's a pity. I'm trying to do my testing against the HeadUnit Reloaded app running on Android TV. But this is highly unreliable. It is unreliable even when I try to connect the master to the TV directly via USB cable. The connection or the HU Reloaded app fails mostly only few seconds after it starts Android Auto up. It keeps running longer only rarely. So it's mostly unusable for testing as I cannot distinguish whether it fails because of the problem on the TV/HU Reloaded side or the AAGateWay side.

Does anybody have any recommended/proved HU emulator setup for testing the AAGateWay stuff?