Enable Hotspot automatically when I enter the car - Android Auto General

Hello people, I would like to automate the connection of my cell phone to the HU, the only thing I need to enable on my phone is the Hotspot, is there any way to enable only the Hotsport when I enter my car? Another thing I would like you to do is that every time I turn on the car and the HU goes out of the sleep mode, kill the processes and close all the previously opened app, im on Hal9k rom.

I saw that you can configure the Tasker application to activate the Hotspot when the BT of my car is connected, but I do not want the BT to be activated, I want only the Hotspot to be activated, it occurs to me that every time the HU leaves the mode Asleep, send the task to my cell phone in some way (use the same account as the HU) and activate my Hotspot, is it possible?

In my case, here the sequence :
1. Car BT detected
2. Data ON > Hotspot ON
3. Car BT not connected
4. Hotspot OFF > Data OFF > wifi ON
In details. quoted on XDA
In tasker :
1. New Profile -> State -> Net -> BT Connected
2. New Task -> Plugin -> Toggle Tethering -> Click Config Pencil -> Enable Tether -> Open setting buttons below -> Toggle Allow modify system settings
3. Go back, don't worry about clicking Install app to system and go back again, and back one more time -> Click the play button at the bottom left to test to see if it works. Prosper! (Don't turn tethering off just yet)
4. Go back to profiles, and long press on the Toggle Tethering Enable tether task and click Add Exit Task
5. New Task -> Plugin -> Toggle Tethering -> Click Config Pencil -> Click Disable Tether radio button -> go back 2 times -> click the play button at the bottom left to test to see if tethering has been turned off.

I dont want to use BT, I made it... is not full tested but think its works. With that I turn off BT after hotspot is on and again turn on BT and he dont reconnects more.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Enviado desde mi Pixel 2 XL mediante Tapatalk

Very good thread. By reading it I discovered that I can make my life easier.
I have a new peugeot 3008 with android auto and the next setup :
- my main phone (not rooted) is in my pocket, with bluetooth on, paired with the car. I don't use it for android auto, just for calls and media streaming. When I'm in the car I just keep it in my pocket. When I start the engine it automatically connects to the car's bluetooth.
- my "entertainment" phone - always connected via usb to my car's media unit. It's a rooted phone without any sim inside. I have wireless on all the time, and I make a hotspot from my main phone to have internet on this rooted phone. Being rooted - I've disablet the bluetooth completely, because android auto would have forced the bluetooth connection to my car from this usb connected phone. And I don't want that, I want to connect to the car's bluetooth just with my main phone, from my pocket (because I want to benefit from hands free voice calls from my main phone - where I have my contacts and a sim card, plus other reasons ... the car sends trip statistics after every engine shut down). Off course, on this rooted phone I have installed carstream and aa mirror.
Until now, everytime I entered the car, when I needed internet on my "entertainment" phone I had to reach from my pocket phone and manually activate hotspot, and than, in about 15 seconds my "entertainment" phone automatically connected and all was ok.
After reading this thread I've discovered a little app called "Automate" and I've used it to automate the process of activating hot spot.
So now I don't even need to reach out to my pocket phone ... I just enter the car, start the engine and that's it.
The logic of the flowchart is :
- check if the bluetooth is connected to my car ; if yes - than enable hotspot ; if not - disable hotspot.
The automation is running on my main phone, and I use the fact that when I go into my car - the main phone connects automatically to the car's bluetooth (I off course have to keep bluetooth on all the time on my main phone, but I had it on anyway).
The result is that I start the car (actually the multimedia unit of the car is the trigger) - my main phone auto-connects to car's bluetooth, the automation flow immediately senses that and enables the main phone's hot spot - and than the "entertainment" phone from the car connects to this hot-spot in about 15 seconds or less.
I turn off the car, I'm disconnected from car's bluetooth - and the automation flow senses and auto-disable the hot spot.
Great !

K1kote said:
Hello people, I would like to automate the connection of my cell phone to the HU, the only thing I need to enable on my phone is the Hotspot, is there any way to enable only the Hotsport when I enter my car? Another thing I would like you to do is that every time I turn on the car and the HU goes out of the sleep mode, kill the processes and close all the previously opened app, im on Hal9k rom.
Click to expand...
Click to collapse
I use Carspot http://http://www.carspotwifi.com it automates WiFi hotspot on your mobile when BT connects. Be aware you will need to power your mobile whilst in the car as hotspot consumes considerable power.

I do not keep BT conected because I never im on BT mode on the HU and is uncomfortable go to BT mode each time I have to listen something come from the phone, like an WhatsApp audio. Yes I will like to keep just the phone calls with BT... But even I do not talk much by phone.
Enviado desde mi Pixel 2 XL mediante Tapatalk

i am modifying and rooting used second hand phone as permanent connected phone to my car. it will auto boot and auto off when it detect power on/off from the car.
already work on my modified S4. but unfortunately S4 GPS accuracy not good. so now i am looking for other 2nd hand phone. targeting xiaomi note 3, because of easiness to root.
Sent from my vivo 1723 using Tapatalk

ahhl said:
i am modifying and rooting used second hand phone as permanent connected phone to my car. it will auto boot and auto off when it detect power on/off from the car.
already work on my modified S4. but unfortunately S4 GPS accuracy not good. so now i am looking for other 2nd hand phone. targeting xiaomi note 3, because of easiness to root.
Click to expand...
Click to collapse
I do this with a secondary phone using freedompop. I setup tasker to turn on hotspot when charging and airplane mode when not. Works like a charm.

Very good thread. Automate makes life easier.

Friendly reminder that android supports background scanning since ages, and you can use it if you can't be bothered to keep the whole thing enabled (and yes, automate supports it for example)

Hi,
For years (four) I'm using multiple Apps for this task. And I prefer to use this one: Hot Spot Starter
https://play.google.com/store/apps/details?id=de.thjunge11.autohotspot
It works without root and just for that.
I never see a problem with it in five different smartphones that I used with it.
I hope it helps.
---------- Post added at 11:19 AM ---------- Previous post was at 11:14 AM ----------
marius23mvp said:
- my "entertainment" phone - always connected via usb to my car's media unit...
Click to expand...
Click to collapse
I hope someday AA can work with TWO phones at the same time: one connected via USB and the second via wiresless. More or less this solution will enable WiFi AA with HU supporting only USB (as car manufacturers doesn't like to update the software for free).

Is this working with Android 9 or 10 ?

Just want to say thanks to all the information on here.
I required to have notifications popup on my car stereo older android unit due to my phone's speaker being broken I required to see all my work emails appear as popups on my screen to do this I couldn't find any simple way.
I found 1 tool that does this well my app store is outdated and only offers 3rd party crap I found "Android TV notifier" I gave it a shot and was amazed runs brilliant pushes any specific applications notifications to the server. Which looks great on the screen as you drive.
Problem was every time I got in car I was required to switch on hot spot also if I forgot I got no push notification so these instructions helped make this happen.
Manb there is a simpler way to get mail notifications working on my head unit but my work uses activesync and they tighted the security which stops older devices syncing but the push notifications works great on the head unit. I set it to push outlook messages and WhatsApp and Facebook and text messages
Apps required to make this happen
Android TV notification app ( on phone and also on head unit) (register for small fee)
Tasker (setup as instructed on site)
also some head units have locked startup so I had to locate a decent startup manager for the headunit due to it blocking Android TV notifier from starting.

You can use Bixby routines if you are using samsung phone for auto hotspot
for me I use carplay connected to my car (via iPhone SE 2016) via usb.
Then I use my Samsung phone as hotspot provide connection to iphone SE.
The android auto in my samsung phone is disable.
iPhone SE (Carplay)
1) for Google Maps
2) Waze
3) Navigation
4) iPhone SE stay in car always.Leave it as it will charge when use
Samsung phone
1) spotify via BT to car
2) call

i do not keep BT conected because I am never on BT mode on the HU and it is uncomfortable to go BT mode each time as I have to receive a call or make the call most of the time.

Hey all,
I have developed a new app for Android 11 that will do the bluetooth-enable hotspot feature. You can also set it to enable hotspot if the charger is connected whilst in certain orientations.
let me know what you think.
SpotUp

A simpler way is, create a script in tasker to enable Hotspot. Create an app from this script. (by using tasker factory). Use a button in phone to enable / disable this app by double pressing the button.
So every time you need a Hotspot you just double click the button of the phone.
You don't always need Hotspot to be enabled when you are in car because you will drain battery without reason. This way you easily enable disable Hotspot every time you really need it by just double pressing a button..

oVeRdOsE. said:
In my case, here the sequence :
1. Car BT detected
2. Data ON > Hotspot ON
3. Car BT not connected
4. Hotspot OFF > Data OFF > wifi ON
In details. quoted on XDA
In tasker :
1. New Profile -> State -> Net -> BT Connected
2. New Task -> Plugin -> Toggle Tethering -> Click Config Pencil -> Enable Tether -> Open setting buttons below -> Toggle Allow modify system settings
3. Go back, don't worry about clicking Install app to system and go back again, and back one more time -> Click the play button at the bottom left to test to see if it works. Prosper! (Don't turn tethering off just yet)
4. Go back to profiles, and long press on the Toggle Tethering Enable tether task and click Add Exit Task
5. New Task -> Plugin -> Toggle Tethering -> Click Config Pencil -> Click Disable Tether radio button -> go back 2 times -> click the play button at the bottom left to test to see if tethering has been turned off.
Click to expand...
Click to collapse
Its a few years later, but THANKS! I couldnt figure out how to set it up on Tasker, because I didnt know you can long press for the exit task...
Also it has kinda changed. Its no longer a plugin to turn on/off tethering, but its integrated into the network settings.

oVeRdOsE. said:
In my case, here the sequence :
1. Car BT detected
2. Data ON > Hotspot ON
3. Car BT not connected
4. Hotspot OFF > Data OFF > wifi ON
In details. quoted on XDA
In tasker :
1. New Profile -> State -> Net -> BT Connected
2. New Task -> Plugin -> Toggle Tethering -> Click Config Pencil -> Enable Tether -> Open setting buttons below -> Toggle Allow modify system settings
3. Go back, don't worry about clicking Install app to system and go back again, and back one more time -> Click the play button at the bottom left to test to see if it works. Prosper! (Don't turn tethering off just yet)
4. Go back to profiles, and long press on the Toggle Tethering Enable tether task and click Add Exit Task
5. New Task -> Plugin -> Toggle Tethering -> Click Config Pencil -> Click Disable Tether radio button -> go back 2 times -> click the play button at the bottom left to test to see if tethering has been turned off.
Click to expand...
Click to collapse
Hi there I feel a little silly asking this question but here I go.
I have been using llama for years to turn the hotspot on the phone on when I am in the car. However, I just got a new phone and llama is not available but I have downloaded and paid for tasker and found a project on taskernet "automatic car hotspot" BUT it asks to confirm the device rather than connect automatically. I would appreciate it if you could look at the project and point me in the right direction to get this to work on my new samsung S21.
The phone connects to the car (forester)
If connected > Turns on mobile hotspot
If NOT > Turns off mobile hotspot

Related

This is interesting on 4.2 bluetooth

Before when I went to bluetooth and connect to my phone to tether my tablet by bluetooth. I just had to click on my phone in the list of devices and it would automatically would connect. Now I have to go into the device settings and check of internet access.
Is there a way I can set that up as an icon to just click on instead of having to go through 2 or 3 menus to connect to my phone via bluetooth?
Just wondering, if not no big deal.
metalwraith said:
Before when I went to bluetooth and connect to my phone to tether my tablet by bluetooth. I just had to click on my phone in the list of devices and it would automatically would connect. Now I have to go into the device settings and check of internet access.
Is there a way I can set that up as an icon to just click on instead of having to go through 2 or 3 menus to connect to my phone via bluetooth?
Just wondering, if not no big deal.
Click to expand...
Click to collapse
Automatically connect to a BT device (tablet side):
Bluetooth Auto Connect
https://play.google.com/store/apps/details?id=de.refluxa.android.bac
Automatically start BT tether after reboot (phone >=4.0 side):
Bluetooth Auto Tethering
https://play.google.com/store/apps/details?id=de.refluxa.android.bat

Bluetooth internet tethering from iphone to android car

Tried posting this question to MTCD-discussion folder but the system didn't let me (moderators please move it there if you consider)
Has anybody managed to get the internet on the android auto (in my case a MTCD) through bluetooth tether (maybe with an app?) Reason why I want to do this, is because I want it to happen automatically, but iOS (as my phone is Iphone) is broadcasting the personal hotspot SSID only for a limited time. This means every time I get in the car I have to stop and restart personal hotspot.
On my Joying MTCD-device there is no option in the WIFI-menu of "connect to network even if SSID not broadcasted", and no option in the bluetooth menu for bluetooth tethering.
Thanks in advance,
Mike
Tethering over Bluetooth is not possible with these units as far as I know.
But try the following:
1. From the iPhone turn your Personal Hotspot off.
2. From your car's Android find your iPhone's hotspot and make it forget it.
3. Now go to the bottom of the list, choose "Add Network" and type your iPhone's SSID and passcode manually.
4. Hit Connect and turn on your Personal Hotspot.
Now the car unit thinks that this is a hotspot with a hidden SSID, so it will not look for a broadcast.
C-V-T said:
Tethering over Bluetooth is not possible with these units as far as I know.
But try the following:
1. From the iPhone turn your Personal Hotspot off.
2. From your car's Android find your iPhone's hotspot and make it forget it.
3. Now go to the bottom of the list, choose "Add Network" and type your iPhone's SSID and passcode manually.
4. Hit Connect and turn on your Personal Hotspot.
Now the car unit thinks that this is a hotspot with a hidden SSID, so it will not look for a broadcast.
Click to expand...
Click to collapse
Hi! Tried this, doesn't work! It still connects only after i turn the hotspot on (when ssid is broadcasted)...
Yes, I just tried this with my iPhone 6 Plus running iOS 9.3.3. It looks like iPhone's Personal Hotspot doens't just stop broadcasting the SSID after a while. It turns off the hotspot completely! I tried to connect to it with my PC the way I would connect to a hidden network - no luck either. So there is nothing that can be done, because the problem is the iPhone.
The approach I described above works for hidden networks, but obviously it cannot work for non-exiting ones.
C-V-T said:
Yes, I just tried this with my iPhone 6 Plus running iOS 9.3.3. It looks like iPhone's Personal Hotspot doens't just stop broadcasting the SSID after a while. It turns off the hotspot completely! I tried to connect to it with my PC the way I would connect to a hidden network - no luck either. So there is nothing that can be done, because the problem is the iPhone.
The approach I described above works for hidden networks, but obviously it cannot work for non-exiting ones.
Click to expand...
Click to collapse
Thanks for your reply, CVT! Must be this problem, indeed. I assumed that it is still on, as actually the togglebutton is still on, but it seems I was wrong.
HTC One M7 CM13.0 (no sim/data) running Android Auto, connected to Honda Accord 2016 all times - soon as car starts android auto starts, using Bluetooth Tether Manager app to auto connect to Iphone hotspot
Iphone 6S IOS10 Beta3 (data) bluetooth hotspot.
Car starts, turns on bluetooth on android phone, android auto starts, then tether app connects to my iphones bluetooth tether.
The bluetooth tether manager app says not connected, but the bluetooth in the menu shows connected to my iphone.
I think this is what you are trying to do as well. If you can bluetooth tether to your iphone, this might work with your unit.
Does simply plugging an iPhone into one of the usbs for tethering Work?.
It does not
Sent from my iPhone using Tapatalk

Connect hotspot when connect to car bluetooth

Googling shows mixed results over whether this will be possible.
When my phone connects to the car Bluetooth, can mobile hotspot also turn on so my car sat nav can use the phone data?
Currently I have to turn it on manually each time.
Thanks
candell77 said:
Googling shows mixed results over whether this will be possible.
When my phone connects to the car Bluetooth, can mobile hotspot also turn on so my car sat nav can use the phone data?
Currently I have to turn it on manually each time.
Thanks
Click to expand...
Click to collapse
I do it with secure setting plugin... but you need to be rooted.
Regards,
Sorry for a possibly dumb question, I am new to android. Does Tasker provide additional functionality when rooted?
candell77 said:
Googling shows mixed results over whether this will be possible.
When my phone connects to the car Bluetooth, can mobile hotspot also turn on so my car sat nav can use the phone data?
Currently I have to turn it on manually each time.
Thanks
Click to expand...
Click to collapse
Can be done:
State: BT near (select BT from Nav device) -> task wifi set off, wait 2 seconds, wifi tether set on.
On android 6 I used secure settings for also switching bluetooth tether on. This doesn't work for me in android 7.0.
I now use the app Blue Car tethering. This checks for a bluetooth network and then forces bluetooth tethering.
This is unrooted for both phones.
From what I gather, YMMV depending on the phone, head unit, or even carrier. This works to turn on the hotspot and re-enable wifi/turn off hotspot when the bluetooth connection drops for my current setup (rooted Honor 6X/Android 6, Cricket Wireless, Android 4.4 head unit):
Profile state=BT Connected CAR KIT,*
Action=WiFi Tether Set On
Exit=WiFi Set On
I don't need secure settings for that to work on my Honor 6X, but I have two other phones that profile doesn't work on, so you might have to play around to get something that works for your particular setup
I've got it working, thanks for the help folks
candell77 said:
I've got it working, thanks for the help folks
Click to expand...
Click to collapse
Would you mind sharing how? It would be very useful to me. Thanks :good:
Sure, create a new profile based on State
In the filter type 'BT'
Then click BT Connected
Then select or type the exact name of the bluetooth connection of your car
Then create a new task for Tether On (instead of trying to find the options, I find it much easier to search)
Job done, works every time for me. As tether automatically turns off itself after xx minutes of not being used, I didn't bother setting an exit task to turn it back off.
Is this related to Bluetooth tether or wifi mobile hotspot?
I'm looking for an automated solution for my car android 2din device.

[Android 4.1+]Proxy/GateWay for Android Auto

Background
- Couple of years ago Google have launched Android Auto, but up till recently the only way to connect your device to the car/head unit was to plug in a USB cable. As of 2018 this starts to change, BUT it looks like you will need to get new hardware for this and older cars/head units won't be upgraded to support this, neither phones with older OS.
Concept
- Since many of us will like to have this wire free but not ready / willing or have the possibility to upgrade the units/cars/phones I have thought of a way to achieve this, by using a small auxiliary device, like for example a very cheap and basic Android TV stick, which can be plugged in/mounted in the car and which can fulfil the roll of a Wifi antenna for your car.
This app should allow you to transform any android powered device into a Wifi receiver for your Android Auto compatible Car/Headunit. Please do not confuse Android Auto, with Android powered headunit (usually Chinese, like MTCB, MTCD, Joying, etc).
AAGateWay Documentation.
Beta released (04.01.2020)
What is it?
AAGateWay is a an app which should allow you to use an auxiliary (slave) device to connect your existing Android Auto compatible car to your phone (master) using a hotspot created on your phone.
How to use it?
SLAVE SETUP
1) Install the app using XDA Labs (Only on SLAVE) : https://www.b3itlabs.com/prod.php?id=3
2) Configure
FOR BOTH ROOTED AND NOT-ROOTED SLAVES
CASE 1: Master is running Pie or higher
Pair Master and Slave over BT (do this from the normal BT settings)
Open app
If slave is ROOTED and ONLY if you are using a TV STICK convert the app to system app. (if app not visible after conversion, reboot device)
Enable the start tethering option (If asked make sure you manually configure the hotspot, to have the name HUR and the password AndroidAutoConnect)
Select the masters phone BT MAC
Exit
CASE 2: Master is running Android 8 or lower
Create a Wifi hotspot from the master
Connect slave to it
Reopen AAGateWay and select the masters hotspot from the "Phone Wifi SSID" list
Slave is ROOTED - This will give a much bigger compatibility with cars, it should work with any car/unit (but depends a lot on the slave used, read below)
Slave is NOT ROOTED - This mode won't work on all cars and it has caveats.
MASTER SETUP
CASE 1: Master is running Pie or higher
Install WiFi Launcher for HUR (https://play.google.com/store/apps/details?id=com.borconi.emil.wifilauncherforhur)
Make sure WiFi Launcher is version 2.1 or higher!!!
Open WiFi Launcher
FOR Android 10, set permission location to ALWAYS!!!!!!
Select slaves BT from the BT list and exit
DO NOT ENABLE ANY OF THE OTHER OPTIONS!!!!
If you do not want to use WiFi Launcher you can use the following Tasker task to launch AA on any condition you want: https://drive.google.com/file/d/1UO-Z5P0oQpHEdrQjYqvSM48L1TI-K5g8/view?usp=sharing
CASE 2: Master is running Android 8 or lower
Open Android Auto, go to Settings, scroll down tap the version 10 times, then from the 3 dotted top right corner select start headunti server.
Exit Android Auto
Leave the Headunit Server running
When you get into the car turn on the hotspot on the master (or use Tasker, automate or anything else do that for you)
CONNECTING
Go to the car, plug in the slave to the car's USB and start the car
Slave is ROOTED
Nothing should happen, car should NOT detect the phone (SLAVE) at this stage. If the car does detect the slave being connected, it means your slave doesn't allow a proper USB toggle, in which case you should try enabling non-root mode.
Master is Pie and above
If you selected to tether from the slave, at this point you should see the slave turning on the hotspot, otherwise you might see the slave trying to connect to a Wifi network.
Slave will notify master
Master will automatically start WiFi Launcher
Master will connect to slaves hotspot
Master will start AA on the phone and notifies slave
Slave will enable USB
If you are using a phone as slave you will get a prompt if you want to use AAGW as the default app for this action, make sure you select ALWAYS ans yes. (TV stick should work automatically)
Projection should start
Slave is NOT-ROOTED (or running in non-root mode)
You will get a prompt to use AAGateWay for this action, make sure you select always.
Car should display a splah-screen saying waiting for master. (on some car's screen you might see a scrambled image)
After splash-screen is displayed, the slave will start tethering, or will try to connect to the masters hotspot depending on the setting.
Once a network connection is established between the 2 devices, you will see the AA icon turning on on the master and Android Auto should be displayed on the car's screen. It is possible that the screen will stay /turn black, if that happens, you can try to press the home button on the infotainment system, then re-open Android Auto on it.
Troubleshoot and getting help
As the thread has so much information it will be really nice if we can try to stick to one format of troubleshooting, by using one of this 2 templates:
Master is running Pie or above and slave is tethering:
Running in root mode: (Yes/No)
If running in non-root mode, is the splashscreen visible on the car: (Yes/No)
If running in non-root mode, did you set the masters BT inside AAGW app?: (Yes/No)
Did the slave actually turned on the hotspot on the slave: (Yes/No)
On the master did you select the slaves BT in the Wifi Launcher app?: (Yes/No)
When the master connected to the car's BT did the Wifi launcher app started up?: (Yes/No)
Did the master connected to the slaves hotspot?: (Yes/No)
Did the AA icon appeared on the master at all (in the notification bar)?: (Yes/No)
Master is running Oreo or below and master is tethering:
Running in root mode: (Yes/No)
If running in non-root mode, is the splashscreen visible on the car: (Yes/No)
If running in non-root mode, did you set the masters BT inside AAGW app?: (Yes/No)
Did you select the masters hotspot name in AAGW?: (Yes/No)
Have you started the Headunit server on the master?: (Yes/No)
On the master did you select the cars BT in the Wifi Launcher app?: (Yes/No)
When the master connected to the car's BT did the Wifi launcher app started up (notification bar)?: (Yes/No)
Did the master turned on the hotspot?: (Yes/No)
Did the slave connected to the masters hotspot?: (Yes/No)
Getting rid of all automation and manually starting it all (regardless of Android version on master and slave):
Uninstall AAGW on the master
Start the headunit server from within Android Auto on the master
Create a hotspot on the master
Open AAGW on the slave and make sure it's not set to tether
in AAGW make sure you select the masters hotspot
If AAGW is set to non-root mode make sure you select the masters BT (just press the button AAGW will do a BT scan of nearby devices and you can pick it from the list)
Go to the car and plug the slave in
Start the car
If slave is running in ROOT mode, slave will first try to connect to the masters Wifi and you will see a notification on the master that AA is running, only then the car should recognise a plugged in device.
If the slave is running in non-root mode, first you will see a splash screen on the car, then you will see slave connects to masters Wifi (if not already connected), then you will see AA starting on the master.
How do I collect a bug report / logcat
Open Settings > About phone.
Scroll down to the Build number.
Tap the Build number 7 times in quick succession until "You're now a developer" appears.
Return to the Settings menu and select Developer options.
At the top of the screen, make sure 'Developer options' is set to On (green).
Scroll down to Debugging and enable both USB debugging and Bug Report Shortcut on (green).
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.
On slave make sure you enable debugging inside AAGW, on master open Android Auto go to developer settings and make sure force logging is enabled.
Reproduce the problem
Hold the Power button down until the menu appears.
Select Take bug report. and wait for the device to capture the bug report.
Tap the 'Bug report captured' notification when it appears.
Send the bug report by email to [email protected]
Know problems, workaround:
- Latency & lag. This will be really down to the devices you are using. I have tested it with a MK808B Plus, it work’s ok most of the time but occasionally you will get the odd lag. I’ve also tested it with a Nexus 7 tablet, and there was no lag at all, so device does matter, as well as probably ROM.
- I get random disconnection. There can be 2 causes for this, one the USB connection fails between the car and the auxiliary device, or the Wifi fails between the phone and the auxiliary device. In my tests I saw a few Wifi disconnections without any reason on the MK808, but non on the Nexus. Changing the tethering option from WPA2 to Open did help with this.
- App is closed without error or reason. The app runs in a background process, with a minimal interaction with the foreground, some devices/OS will kill background apps. I saw this happening on Nokia and I saw this happening on OnePlus as well. Try disabling battery optimisation for AAGateWay, that might help.
- I just cannot get it to work… Try using a phone, that will at least give you some visual guidance. Make sure that your device connects to the phone Wifi hotspot, make sure that AA Headunit server is running on the phone (try to force stop Goolge Play Services, stop and restart the headunit server)… All fails contact me
- Nothing happens on the master, using Wifi Launcher for HUR app. In this case, try to manually start the headunit server on the master, and manually turn on a hotspot, then reconfigure you're slave to connect to the masters hotspot (even if the master is running Pie or higher).
Device compatibility:
Master:
Any phone which normally works with Android Auto
Slave with ROOT:
- Tested and know to work: - MK809V, Nexus 7 (depending on rom), Sony X Compact (depending on rom)
-Tested and not working as expected: Pixel 2, MK808B
- While root is necessary, not all phones can toggle USB port on and off by software. And there can be other problems, for example on some devices when you turn off the USB the phone loses the ability to detect the power connection as well, which is use as trigger to start the whole process. It is almost impossible to predict if a phone will be a good slave candidate or not.
Other things
- Xiaomi phones (MIUI makes a mess), try not to use it for Slave
- Generally older phones (pre oreo) are more likely to work fine as a slave device.
Any suggested slave?
- Yes, use an MK809V TV stick, as the experience with it, is pretty slick and it should work out of the box. If you get a MK809IV try to get the one with Android 5.1.1 as the one with Android 7.1 has problems with the tethering.
FAQ.
Q: Can I use this with any car and phone combination?
A: Assuming your car is already Android Auto compatible, then YES.
Q: Can I also automate the start of the Headunit server?
A: Only with a rooted phone, using the following shell command: am startservice -W com.google.android.projection.gearhead/com.google.android.projection.gearhead.companion.DeveloperHeadUnitNetworkService
Q: Can I use Wifi-Direct to connect instead of WIfi?
A: No.
Q: Does the traffic come out from my monthly data allowance?
A: NO, traffic between auxiliary device and phone hotspot does NOT count as internet traffic, HOWEVER if you do have other apps on the auxiliary device which download updates, etc in the background that WILL be counted as internet traffic. So I suggest double check the apps on the aux device and disable all those which aren’t needed.
Q: Will the car/head unit provide enough power?
A: It should provide at least 500mA that’s the standard USB current, while I cannot guarantee that will be enough in all cases, it should do, assuming you do turn off all unneeded services on the TV stick.
Q. What about start up time?
A. It will depend a lot on the device you are using. A low-entry TV stick boot time is about 1 minute, which can be a bit too much for an initial car setup. As mentioned earlier, these devices usually have 2 USB ports, you can for example connect the power USB port to a continues power supply in the car, in which case the boot time will be non-existent since the device is always running. If you are using a phone, the phone battery will probably hold the charge just fine for a couple of days, if you disable all apps on it and you set up a profile to go into aeroplane mode when it’s not charging. Tasker or Automate are your friends for that. If you cannot connect the TV stick to a continues power source, you might consider using a small portable power pack which powers the tv stick (should hold power for a few days) and the power pack can be charged while the car is running.
Q. Can I decrease boot time for TV Sticks/Phones by removing all unrelated software.
A. Yes, actually quite a lot. Once you have your configuration ready and everything is working as expected, you can uninstall/disable all packages beside this ones:
package:android
package:com.android.apkinstaller
package:com.android.providers.settings
package:com.android.packageinstaller
package:com.notriddle.null_launcer (or any other launcher, but NULL launcher has no memory consumption, no app drawer no nothing, perfect for headless - see: https://github.com/notriddle/null-launcher )
package:com.android.inputmethod.latin
package:com.android.settings
package:uk.co.borconi.emil.aagateway
package:com.android.shell
package:com.android.systemui
Easy way to list / disable all apps will be using a computer and following commands
Code:
adb shell pm list packages
This will list all installed packages
Code:
adb shell pm disable xxxx
where you replace xxxx with the package name (Ex: com.android.shell )
Q. Will using Wifi 5Ghz give me better performance?
A. Well if both of your devices support it, SURE!
Q. Is the source code available?
A. Sort-of, please see: https://github.com/borconi/AAGateWay this is only for the sketch, however new version does contain code which lift restrictions on 3rd party apps in Android Auto. To prevent the abuse of this by some, further code won't be updated to GitHub, however if you want to build your own version, please do contact me for details.
Guarantee or Warranty
- Due to the fact that there are so many possibilities and combinations of cars, head units, slave and master devices, there is no way for me to test all of them, however if you did purchase the software and you are not able to get it to work for any reason, please email me on [email protected] and I'm more then happy to refund the purchase.
Teaser:
VERY interested in the progress on this, Emil. For one, this would allow me to charge my Samsung using the Quick Charge adapter in my cigarette lighter, rather than relying on the anemic power output of my truck's USB port. Or if I want to get fancy, I could install a wireless charger and use that.
Thanks for all of your hard work.
Sent from my SM-G935V using Tapatalk
Hi Emil,
What about original headunits that have integrated Wifi, but do not have Wireless Android Auto enabled? Is this something that you could enable to work as well?
Another great idea.
Definitely interested..
thanks.
Sent from my iPad using Tapatalk
I thought of you instantly when I saw this thread on Reddit, but didn't imagine that you were the creator.
Congratulations and thanks again!
Jackos said:
Hi Emil,
What about original headunits that have integrated Wifi, but do not have Wireless Android Auto enabled? Is this something that you could enable to work as well?
Click to expand...
Click to collapse
Sadly no, that will require altering the firmware on the car and each unit is different. It is possible that those unit might get an official update for Wifi support, but although I'm not 100% certain, I think it will only work with 5Ghz Wifi network, so if you're unit is 2.4Ghz only probably it won't get the update.
If I will ever have times (something which I never have ) I might look into adding this to some units out there, but that is so far down the line, that realistically speaking probably will never happen.
Very interesting idea. I have a couple of these android sticks here and maybe even a modern mediabox that might offfer a bit more performance. I guess you want to power it from the USB socket from the car. Not sure how much current you can draw from these ports.
What is the pc below the radio doing?
This is awesome news! looking forward to progress!
lukesan said:
Very interesting idea. I have a couple of these android sticks here and maybe even a modern mediabox that might offfer a bit more performance. I guess you want to power it from the USB socket from the car. Not sure how much current you can draw from these ports.
What is the pc below the radio doing?
Click to expand...
Click to collapse
Performance is not really needed the slowest device should work just fine. You can theoretically disable all processes and apps, so even a device with 512Mb ram will do.
Indeed I'm taking power directly from the headunit/car in the demo I use an MK808B powered directly from the Sony XAV-100 which only provides like 500mA, so should do (especially if you kill all apps which can use CPU and turn of everything but Wifi on the stick).
The PC is the power source , to lazy to make a separate power switch so I powered the Sony from my PSU directly
Emil Borconi said:
Performance is not really needed the slowest device should work just fine. You can theoretically disable all processes and apps, so even a device with 512Mb ram will do.
Indeed I'm taking power directly from the headunit/car in the demo I use an MK808B powered directly from the Sony XAV-100 which only provides like 500mA, so should do (especially if you kill all apps which can use CPU and turn of everything but Wifi on the stick).
The PC is the power source , to lazy to make a separate power switch so I powered the Sony from my PSU directly
Click to expand...
Click to collapse
Ok, got the Mk802, 808 etc etc so I might finally have a good destination for those. Lazy and working is a combo that also works. :good:
Wondering if there is like a beta test thing, or is it complex to get it up and running? I'm pretty sure a lot of people are seriously interested in this. It would offer the freedom of charging your phone the proper way.
lukesan said:
Ok, got the Mk802, 808 etc etc so I might finally have a good destination for those. Lazy and working is a combo that also works. :good:
Wondering if there is like a beta test thing, or is it complex to get it up and running? I'm pretty sure a lot of people are seriously interested in this. It would offer the freedom of charging your phone the proper way.
Click to expand...
Click to collapse
Not that far away, the only problem this will be braking my fix for obd2aa, so I need to make the 2 things compatible. I also need to do find a way to set the defaults without plugging into the car, you won't really be able to plug in a HDMI screen when you plug it in the car.
I've started fully rewriting my HUR app moving all the code from C to Java, once that is done and I fix other issues with obd2aa I will be pushing this forward
Ideally I will like to have a release available before I go on holiday on the 17th of July but not sure I will manage to do it all by that time.
Emil Borconi said:
Not that far away, the only problem this will be braking my fix for obd2aa, so I need to make the 2 things compatible. I also need to do find a way to set the defaults without plugging into the car, you won't really be able to plug in a HDMI screen when you plug it in the car.
I've started fully rewriting my HUR app moving all the code from C to Java, once that is done and I fix other issues with obd2aa I will be pushing this forward
Ideally I will like to have a release available before I go on holiday on the 17th of July but not sure I will manage to do it all by that time.
Click to expand...
Click to collapse
Yup, sounds like a bit of an issue that you can't really test since we'll have no screen. Well maybe a sort of a config txt file. Most of us will have to clear the thing on a tv screen or monitor anyway because a lot of crap is installed on these devices. I guess it makes sense to have something that can show if the stick is getting data from the phone. There is always a way.
Emil Borconi said:
Not that far away, the only problem this will be braking my fix for obd2aa, so I need to make the 2 things compatible...
Click to expand...
Click to collapse
No offense to obd2aa, I use it daily, but I'd be interested in this even without it
Where is the APK to give it a try ?
Emil Borconi said:
Currently only a placeholder for those interested in the project while working on development.
Background
- Couple of years ago Google have launched Android Auto, but up till recently the only way to connect your device to the car/head unit was to plug in a USB cable. As of 2018 this starts to change, BUT it looks like you will need to get new hardware for this and older cars/head units won't be upgraded to support this, neither phones with older OS.
Concept
- Since many of us will like to have this wire free but not ready / willing or have the possibility to upgrade the units/cars/phones I have thought of a way to achieve this, by using a small auxiliary device, like for example a very cheap and basic Android TV stick, which can be plugged in/mounted in the car and which can fulfil the roll of a Wifi antenna for your car.
This app should allow you to transform any android powered device into a Wifi receiver for your Android Auto compatible Car/Headunit. Please do not confuse Android Auto, with Android powered headunit (usually Chinese, like MTCB, MTCD, Joying, etc).
If you are interested in this project please simply subscribe to this thread and follow the updates.
Teaser:
Click to expand...
Click to collapse
I'm interested, I have a Tahoe with AA and an Android stick. Your project sounds great, can't wait!!
You should have it by the 17th of July, I'm just in the middle of rewriting another app, once I completed that I will focus on this one. I'm going away on a holiday on the 17th of July so I'm really pushing to have it out there by then.
Having the same XAV-AX100, and I was pissed off when I heard that in order to use wireless android auto it needs to be replaced.
Great idea, can`t wait to test it.
Do you think it can works also with windows stick.? Or only android?
Sent from my iPad using Tapatalk
jeromeo01 said:
Do you think it can works also with windows stick.? Or only android?
Sent from my iPad using Tapatalk
Click to expand...
Click to collapse
Never heard of a windows stick... Any link/reference? In theory it can work with almost anything but since Android Auto need Open Accessory, Android device will be the preferred option, having all the classes already available.
Emil Borconi said:
Never heard of a windows stick... Any link/reference? In theory it can work with almost anything but since Android Auto need Open Accessory, Android device will be the preferred option, having all the classes already available.
Click to expand...
Click to collapse
Its exactly the same.
Mini PC stick, but using windows 10 as OS.
Just a little bit more expensive. But I already have one to try. [emoji6]
https://www.windowscentral.com/best-stick-pcs
Sent from my SM-G965F using Tapatalk

Launch Android Auto on USB connect without unlocking phone

I would like Android Auto to be available directly after USB connection has been established. Right now I need to unlock my phone before I can select Android Auto on my cars head unit. Optimal would be that the phone does not unlock, but simply just lets the car communicate as what is needed for Android Auto to work.
Also it would be nice if phone "unmutes" automatically if muted before USB connection made. Or if possible to unmute on cars headunit.
This is because my phone is placed in a location in the car where it is difficult to operate when connected to USB.
Not sure if I am clear in my question, but please feel free to ask for further info if needed.
Regards, Lars.
If this isn't happening by default (it does on my devices), check Android Auto (Phone) > Settings > Connected Cars, your car should be "accepted".
If this still doesn't do it, you'll likely have to use Tasker, or change the USB settings on the phone itself

Categories

Resources