yashsingh1/xdaforums huggingface dataset:
[Paid Software Announcement and Discussion] Emil Borconi:
While patiently waiting for my MK809 and my Orange Pi Zero 2 and my NanoPi Air to arrive for tests I started doing a bit of legwork and prep-work on how I could get this from a simple app, to a plug and play product. So I did shoot of some emails to this board manufacturers, and to even be considered for customised manufacturing we are speaking of at least 5000 pc's ordered (which is a lot but not too much....) if I can get those devices to play nicely, I'm really considering starting a kickstarter project and convert this from an app, to a product available readily....
[Paid Software Announcement and Discussion] Marshy33:
Great idea!

Happy to help out in any testing where I can, now I'm getting some success my end.

I know there is a dongle for apple car play selling at about £80.
[Paid Software Announcement and Discussion] milesian:
A very worthy enterprise, Emil, and the next logical step for your development effort here. You have all our support, and mine especially since I love toying with SBC's.

There's also a market out there for reference. Check out https://carplay2air.com for instance, basically the stuff of dreams for your users here. Bring us to the promised land, Emil! And charge $100+ a piece for it =)
[Paid Software Announcement and Discussion] Emil Borconi:
If you mean this: https://carplay2air.com/ then you're wrong it's $159 so someone is making a huge profit :)

Sadly this is one of the downsides that I've moved away from UK it makes this harder, while I was there it was just a matter of a few hours drive and I could test in person....
[Paid Software Announcement and Discussion] Emil Borconi:
Yeah but it's rip off and I'm always against rip offs. From very preliminary estimations this should well fit below $50... Sure once I will start adding everything up it might change but in my head I think that is a fair price... not $159 (that imho is not justifiable)

Edit. Do you own any of this SBC 's or better said what SBC do you have?
[Paid Software Announcement and Discussion] Marshy33:
There's also carlinkit which you can get from aliexpress which I've seen working.

100% a market for this though!
[Paid Software Announcement and Discussion] Emil Borconi:
Yeah those are dongles which you plug in into an Android powered aftermarket unit and it will give you Android Auto and CarPlay it's not for converting a car which originally has CarPlay to wireless.
[Paid Software Announcement and Discussion] Marshy33:
There's a new version which I've seen working was VAG head units.
[Paid Software Announcement and Discussion] milesian:
Looking at their website, it seems they're funding entire teams, development, tech support, warranty and all that. Maybe the best price tag for all that is somewhere between $50 and $159. Plus, it's ok to be greedy a little bit!
[Paid Software Announcement and Discussion] Emil Borconi:
Oh, I've missed that....
[Paid Software Announcement and Discussion] milesian:
I'm an odroid guy and my boards don't have WiFi, so no help to you there. Otherwise I'm just a Raspberry guy, though I read there's been some success getting Android on Pi4.

Sadly I don't own any of the boards on your roster, but I'll follow you down that rabbit hole.
[Paid Software Announcement and Discussion] martin.armstrong:
[MENTION=7106033]Marshy33[/MENTION]

tried it in car and it works with slave phone but not with stick but that is probably because the command for getting the ip address is different. I have also triggered the task when the master connects to the bluetooth as well as when the master connects to the slave hotspot because the triggering via the wifi connection is not very reliable and tends to not work

any more after 2 attempts. Now I can trigger the AA connection by toggling the master bluetooth as well.
[MENTION=286114]Marshy[/MENTION]

Correction, the method also works with my MK809V stick.
[Paid Software Announcement and Discussion] Emil Borconi:
Yeah my Odroid is my my Media center now :)

However the Odroid and the Raspberry Pi are a bit too big for this project. Ideally I want something tiny which can be hidden away, or it's not something big and clunky ( anything too big is like an invite for someone to smash the window.... )
[Paid Software Announcement and Discussion] Emil Borconi:
So what I'm getting from here is that the slave part is OK, but the Wifi Launcher for HUR is playing up on the master?
[Paid Software Announcement and Discussion] sibesaver:
Something is being killed either on the slave or the master about 10 to 20 seconds after everything is connected and running. I've disabled battery optimization on everything I can think of on both slave and master. Neither are rooted. I've also disabled exit on BT in HUR Wifi app. I'm going to dig into more tomorrow, it could be the Kenwood DDX9704s is dropping the connection but it works fine via USB. Just not sure at this point.
[Paid Software Announcement and Discussion] Marshy33:
Been playing around with this a bit more for the last hour or so. It seems the slave doesn't always turn my USB back on and the only way to get this going again is to pull the USB and plug it back in, which again isn't always successful.

Also I noticed the notification changing on the slave from AA gateway to head unit reloaded. So I can try and figure out what is going on, what should trigger the change from the aa gateway notification to head unit reloaded?

At what point does the USB get turned back on?

Would it be possible to use macrodroid or tasker to be able to break down the steps the app is doing so I could try and find a sequence which works for my head unit?

Also has anybody else had issues using this with Spotify with case 1? If i fast forward 2 or 3 tracks, the sound cuts out.

Happy to grab any logs you may need.
[Paid Software Announcement and Discussion] smoki3:
So I got it working now on my Ford Focus MK4 and Sync 3.4.

Big thanks to emil for his help.

I use OnePlus 7 Pro as Master and with Stock Rom and no root. On the slave I use a Oneplus One with Stock Rom and root.

And here was the issue. Before I tried it with Lineage OS 16 and there it was not working - with the stock rom it was working as expected!
[Paid Software Announcement and Discussion] Emil Borconi:
The usb should be turned off when the connection is removed and then back on when the master connects to it again.
[Paid Software Announcement and Discussion] martin.armstrong:
[MENTION=842765]Emil Borconi[/MENTION]

I have de-installed the WIFI launcher on the master and am just using tasker to initiate the AA connection. Toggling the bluetooth on the master works every time to cause tasker to start AA, unlike with WIFI launcher. Unplugging and plugging in slave phone to toggle the slave hotspot only sometimes triggers tasker to start AA.
[Paid Software Announcement and Discussion] fma965:
I'm using sync 3.4 although i hacked my sync 3.4 on to my APIM ;) using my own guide https://cyanlabs.net/tutorials/update-ford-sync-3-2-2-3-0-to-version-3-4-all-years-3-4-19200/

So did you use Tasker or anything or what?
[Paid Software Announcement and Discussion] smoki3:
I also use sync 3.4 beta version. No from my understanding you need a compatible slave. Have you checked if your rooted slave can control the USB port?

You don't need Tasker. I do it as case 2 on the first page
[Paid Software Announcement and Discussion] Emil Borconi:
Did you had problems with the latest WiFi launcher for HUR as well? It's a bit worrying for me as going forward more and more people will use Android 9 and 10, so WiFi launcher should work reliably.

Google have made significant changes when it comes to intents and apps are being limited on them, however the Bluetooth should be one which has no limits hence doing everything base on this..
[Paid Software Announcement and Discussion] martin.armstrong:
I used 1.4 I think, not the latest version, I will try 1.5 tomorrow, I did not know there was a newer version. Also I will download 2.0.4 version of AAGateway, I am using 2.0.3 at the moment.
[Paid Software Announcement and Discussion] Klinge85:
I have a problem with my Galaxy S10 Nonroot and Android 10 aswell. Wi-Fi Launcher for HUR crashes short after after autostarting Wifi direct. :(
[Paid Software Announcement and Discussion] fma965:
How do you check that slave usb port thing?
[Paid Software Announcement and Discussion] smoki3:
With this adb commands:

su

mount -o rw,remount /sys

cat /sys/devices/virtual/android_usb/android0/enable

If you get back 1 or 0 it should be able
[Paid Software Announcement and Discussion] fma965:
Thanks.... Arggghh don't have ADB installed since i re-installed lmao.

---------- Post added at 20:29 ---------- Previous post was at 20:16 ----------

it shows as 1
[Paid Software Announcement and Discussion] smoki3:
So it should be correct. Which device are you using as slave? Stock rom? Rooted?
[Paid Software Announcement and Discussion] fma965:
a custom rooted rom, android 9.0

going to put stock 7.0 back on.

[IMG="https://i.imgur.com/qZ4Ojz2.png"]https://i.imgur.com/qZ4Ojz2.png[/IMG]
[Paid Software Announcement and Discussion] smoki3:
Yes try it. This fixed it for me. Flashed stock rom und rooted it then it was working
[Paid Software Announcement and Discussion] Marshy33:
Is there still a way to start the AA head unit server with root?

am startservice -W com.google.android.projection.gearhead/com.google.android.projection.gearhead.companion.DeveloperHeadUnitNetworkService

Is giving me an error.

Edit... Fixed. anything after android 8 needs to use start-foreground-service instead of startservice
[Paid Software Announcement and Discussion] fma965:
how did you root? magisk or someother?
[Paid Software Announcement and Discussion] smoki3:
Search on xda for your device, I am sure there a some how to's.

I used super su for my oneplus one
[Paid Software Announcement and Discussion] fma965:
no, i know how to root lol i just wanted to know what you used specifically, trying to replicate as much as possible :)
[Paid Software Announcement and Discussion] smoki3:
:good:
[Paid Software Announcement and Discussion] epsonix:
I think you may never did wholesale/qty posting abroad to individual customers. you do not realize how many extra costs you will need to add, and how much time is average sale. Aside of warranty, testing (?), support, import taxes, VAT, boxing, invoicing, addressing, you will have customer support, issues with couriers and customers (say wrong post code or address - courier may charge your account extra, or receipient not at address when courier arrives twice then not collecing from parcel shop for a few days so courier do automatic return on your cost etc; deal with damaged shippments (happens), in a lot of countries some post codes are crazy high price for some reason - may be far from courier depot - say recently in inland Spain Paio I payed around EUR50 for shipping instead of regular EUR15 I charge - my loss; Oslo, normally it is EUR40, but they wanted to charge me EUR85 for that post code). you need your webshop, some sales manager, boxes, store room, labels etc. on top of this some software, do monthly taxes (or pay for this). you need to freeze a lot of money up front and invest a lot. try preparing fully 20 shippments with invoices&courier labels/boxing etc, see how much time it is and cost. customers do not know sometimes post code, they put 12345 or something - risk for you.

then you use say Paypal, and you find out that they will take around 5-7% (5% if from EU, 7% from outside - enough somebody has e.g. Swiss credit card - had that case - shippment to France, but guy was probably Swiss; they force currency exchange to your money at least if you want flat price in say EUR/GBP etc). If you advertise on ebay, you pay extra 5% on all + listing fee (if you add it to more cathegories). Then if you promote your listing, further money. If you go for distributor, they will eat profit, and I assure you no sellers works on 10-20% added to the price I assure you.

I wish you very best and you have my support on this great development, so have good thinking on all involved into starting selling.

---------- Post added at 09:38 PM ---------- Previous post was at 09:28 PM ----------

if I wanted to try on TVStick, shoudl I go for MK809IV or MK809V? they also differ in specs 1-2G RAM, 8-16G Flash, various Android versions 4.4, 5.1.1, 7.1, variouis processors dual/quad core etc, various manufacturers? any recommendations or definite no no here?
[Paid Software Announcement and Discussion] Emil Borconi:
Update both please and let me know if the results.
[Paid Software Announcement and Discussion] Emil Borconi:
Can you get me a bug report please from the slave?
[Paid Software Announcement and Discussion] Emil Borconi:
For first bit I will answer tomorrow as it's midnight here.

For second bit, I have a mk809v and that works, with Android 5.1.1

Generally I will say older Android is preferred over newer for slave.
[Paid Software Announcement and Discussion] fma965:
due to stupid Samsung restrictions and different boot loader versions i can't downgrade to 7.0 on this phone. which is a shame as i wanted it to be Android 7 really. will try it on stock rooted android 9.0
[Paid Software Announcement and Discussion] epsonix:
first bit is just was suggestion for thinking about - just to include all in final price all ingredients including risks as well (As they will happen and will be your loose sometimes). no need to reply.

for second bit, thanks.

I wonder one more thing. I not necessarily need my android auto be run from my main phone. I wonder if it is possible that AA gets all apps running from slave (mean no use of headunit server from master) - like Google Maps, Spotify etc (I can have SIM card in slave to have LTE data for this, one which I do not use for phone calls etc so nobody uses this, and I won't be calling from it), but only phone calls stays from master via BT. No even WiFi link if possible between master and slave, or very little (or maybe during phone calls only)? That would be great battery saver for what is current master (only BT running with the car if possible), so long trips would be OKwithout connecting phone to the charger. Maybe that is topic for different apk or maybe your apk coudl have setting like this?
[Paid Software Announcement and Discussion] Marshy33:
This was my previous set up. All you need to do is leave a phone plugged in to your headunit with normal android auto installed, no special apps required

Some head units only allow one Bluetooth connection and AA forces this to be the one from the connected phone. To overcome this, use an app like root essentials to delete any Bluetooth apps from the phone you are leaving connected in the car. Then your headunit will still be able to connect to your master phone for hands free calls.
[Paid Software Announcement and Discussion] Klinge85:
Slave (mk809III) is without bug.

HUR crashes on Master s10 (non rooted)
[Paid Software Announcement and Discussion] Emil Borconi:
I need a bur report from the master please.
[Paid Software Announcement and Discussion] Emil Borconi:
This is only partially true. Some units (like my Sony XAV100) will forcefully disable BT and only allow it to be used with the plugged in phone. Even if you disable the BT on the phone the master won't pair with anything else, but this is car depended.

Beside the calls you will loos the SMS part as well (no read out and no assistant to reply and send messages).

Other then this 2 sure you can use an old phone and leave it there...
[Paid Software Announcement and Discussion] Emil Borconi:
Yes I did consider all that, and if I ever get down the route I will need to dedicate some time in going trough all this before even starting a kickstarter project. But as I'm playing with the idea, in order to be able to scale properly, I think Amazon is the best choice, since it covers multiple continents and it sorts out all the delivery issues as well. Yes it comes at a convenience cost, but it gives you a very clear way to work out many of your costs, like: Storage, Shipping, sales tax (different in every US state), VAT (for europe), it also makes the payment really easy as I won't need to take care of currency conversion, etc. Yes they do take their charge for this and that needs to be accounted for, but it gives you an easy way to go global with a product. And I had a looks in their fees, and a look at the raw material fees and I still think that $159 is rip off, and this is based on consumer prices offered by the board manufacturers, not wholesale/retail. But that is something to be considered (and if I ever decide to do it, which I'm more and more inclined too) I will surely discuss it with all of you guys on this thread.
[Paid Software Announcement and Discussion] epsonix:
At least on some earlier versions of Android in my phones, and earlier version of infotainment firmware I tried this (over cable, before I heard even about AAGateway). It was not possible, BT even disabled on "slave" and with active BT connection on "master" was forced by AA (Setup and enabled) on "slave" and "master was cut for calls. Never heard about root essentials, but would that require root on "slave" (in the time I could not find any solution to root my LG Q6 slave)? even if I use that, won't it cut sportify streaming and GM navigation messages - since I sniff it wants to kill BT part completely on the "slave"?

SMS I do not care, I'm not using this functionality, Spotify, GM and calls only, so I woudl be happy if calls are from "master" but rest from slave. How to overcome then the issue that calls are enforced from AA phone - wonder if AAGW or other (future?) apk you may write coudl help.

Of course for the moment I will try newest AAGateway - haven't tried anything you released since end Nov, when each version I tried, and in any setup did not worked. Going to try now.
[Paid Software Announcement and Discussion] Emil Borconi:
It's not the slave which is forcing the things it's the car's unit and no app will be able to alter that behaviour (and this will be different from car to car)
[Paid Software Announcement and Discussion] martin.armstrong:
I'm afraid no improvement.

I think I was already using version 1.5 of the wifi launcher when I sent you the bug reports on 13.1 from master and slave after being able to replicate this problem with the launcher. I assume that you can verify that by looking at the master bug report I sent, I assume it states the app version? You looked at the bug reports and said that 'I think the problem in your case is the Wifi Launcher for HUR app doesn't receive the BT Connect intent correctly (or not all the time).' But tasker seems to receive the BT connect info consistently because it responds every time.
[Paid Software Announcement and Discussion] Emil Borconi:
Yes you are right. Sorry so many emails I'm not always sure who is who...

Indeed you're report suggested that the Wifi Launcher for HUR did not receive the intent properly.

Which I need to figure out why....

Tasker is a constantly running service, so it's able to work slightly differently, but Wifi Launcher for HUR relies on notification from the system that the BT connection took place. This should always be sent to the app, but from the logs you have provided it was only fired once.
[Paid Software Announcement and Discussion] Emil Borconi:
Just an idea did you try turning off battery optimisation for Wifi Launcher for HUR?
[Paid Software Announcement and Discussion] Emil Borconi:
Ok, so this frustrated me and I went back to your logs and I found many of this entries:

Line 170349: 01-12 17:06:24.479 1000 1590 4581 W BroadcastQueue: Reject to launch app com.borconi.emil.wifilauncherforhur/10312 for broadcast: App Op 91
Line 175989: 01-12 17:07:06.524 1000 1590 4027 W BroadcastQueue: Reject to launch app com.borconi.emil.wifilauncherforhur/10312 for broadcast: App Op 91
Line 176055: 01-12 17:07:06.746 1000 1590 4027 W BroadcastQueue: Reject to launch app com.borconi.emil.wifilauncherforhur/10312 for broadcast: App Op 91
Line 181485: 01-12 17:08:55.486 1000 1590 2457 W BroadcastQueue: Reject to launch app com.borconi.emil.wifilauncherforhur/10312 for broadcast: App Op 91
Line 181679: 01-12 17:08:55.716 1000 1590 2457 W BroadcastQueue: Reject to launch app com.borconi.emil.wifilauncherforhur/10312 for broadcast: App Op 91
Line 185651: 01-12 17:09:49.667 1000 1590 1622 W BroadcastQueue: Reject to launch app com.borconi.emil.wifilauncherforhur/10312 for broadcast: App Op 91
Line 199419: 01-12 17:28:41.617 1000 1590 2187 W BroadcastQueue: Reject to launch app com.borconi.emil.wifilauncherforhur/10312 for broadcast: App Op 91
Line 200133: 01-12 17:28:54.178 1000 1590 3376 W BroadcastQueue: Reject to launch app com.borconi.emil.wifilauncherforhur/10312 for broadcast: App Op 91
Line 241657: 01-12 19:32:20.522 1000 1590 4027 W BroadcastQueue: Reject to launch app com.borconi.emil.wifilauncherforhur/10312 for broadcast: App Op 91
Line 241727: 01-12 19:32:33.620 1000 1590 5089 W BroadcastQueue: Reject to launch app com.borconi.emil.wifilauncherforhur/10312 for broadcast: App Op 91
Line 344726: 01-13 10:18:08.416 1000 1590 2156 W BroadcastQueue: Reject to launch app com.borconi.emil.wifilauncherforhur/10312 for broadcast: App Op 91
Line 344877: 01-13 10:18:20.763 1000 1590 2506 W BroadcastQueue: Reject to launch app com.borconi.emil.wifilauncherforhur/10312 for broadcast: App Op 91
Line 373473: 01-13 10:30:52.840 1000 1590 3400 W BroadcastQueue: Reject to launch app com.borconi.emil.wifilauncherforhur/10312 for broadcast: App Op 91
Line 374208: 01-13 10:30:55.031 1000 1590 2056 W BroadcastQueue: Reject to launch app com.borconi.emil.wifilauncherforhur/10312 for broadcast: App Op 91

It turns out it's an Asus thing as described here: https://stackoverflow.com/questions...-boot-got-broadcastqueue-reject-to-launch-app

Try to look for AutoRun Manager (or similar) and make sure Wifi Launcher for HUR has the permission to run.

This is SO frustrating that some vendors decide to do their own implementations breaking things and leaving developer to bang their had against a brick wall.... This is nowhere specified in the Android documentation, how can you write code that is expected to work on every device when each manufacturer decide to change the rules.... GGGGGRRRRRRR

OK moaning over...
[Paid Software Announcement and Discussion] martin.armstrong:
[MENTION=842765]Emil Borconi[/MENTION]

launcher still optimised. I will try again this afternoon using your suggestions
[Paid Software Announcement and Discussion] epsonix:
Tried new WiFi Launcher for HUR 1.5 on my LG G7 fit Android 9 unrooted and new AAGW 2.0.4 on my LG Q6 Android 8 unrooted, without luck. Tried case 1, and later bit manually Case 3.

Case 1 I had to manually enable Hotspot on slave - probably as in general it complaints for no mobile data (no SIM card there). Car connection reports established. Master connected to HUR hotspot saying Running. Nothing more. Of course on first time I was prompted if I want to use AA or AAGW, selected AAGW and had checkbox for always ticked.

I was playing also with no tethering option on slave, hotspot on master etc, no luck here either, for this case seems to me I haven't seen any notification on slave that it has connection establish with the car.

I had USB debugging on, in theory saved reports to new folder on google drive, but as far as I can see now, only folder was created but no bug reports.
[Paid Software Announcement and Discussion] Emil Borconi:
Since you are running in non-root mode did you select the masters BT on the slave?
[Paid Software Announcement and Discussion] epsonix:
yes
[Paid Software Announcement and Discussion] pflarini:
I was wondering, why didn't Google create a USB dongle to plug in the car and that would connect to my phone via wifi?
[Paid Software Announcement and Discussion] Emil Borconi:
Well you see now that's my idea :)

Joke aside, I don't think car manufacturers will allow it, they will loose a way to upsale you or to charge you extra for enabling this feature.

Surely they cant stop a 3rd party doing this but they probably have some t&c with Google....