Getting Android Auto to automatically connect to car headunit - OnePlus 6 Questions & Answers

Each time I get into my car and connect my OnePlus 6 via USB, I have to change the USB connection type on the phone to MTP in order for Android Auto to connect. Once I change the setting and it connects, Android Auto runs well and stays connected until I turn off my car. Without changing the USB setting, the phone will stay in charging mode and Android Auto does not connect.
My car is a 2016 Honda Accord EX and I am using an OEM cable. The phone is rooted, developer options are enabled, and USB debugging is off. When I go into the developer options and try to change the default USB connection mode to something other than charging, the setting change doesn't seem to take.
Is there a way to automatically use MTP mode when I connect the phone to my car? Or something else I can do to get it connected without having to change a setting on my phone each time I get in my car?

I would clear data, force stop, and reinstall Android Auto. I use it every day and have no problems at all. Connects automatically.
My HTC M9 had no end of problems with AA. Would not connect half time time unless I replugged it in, and the voice-to-text function was buggy as hell. My OP6 is smooth as silk.

Thanks. I tried that and even deleted the phone from my car. It didn't work. I had to change the mode to mpt to get it to do the initial connection. Same for reconnecting. Doh!

Do you use Tasker? I wrote a task that will automatically change the setting to MTP. It requires the Tasker plugin - AutoInput as well.

I do have tasker. How do I set it up to do that? Thanks.

theman22 said:
I do have tasker. How do I set it up to do that? Thanks.
Click to expand...
Click to collapse
So I actually created two different profiles/tasks.
1) Detects when USB power is plugged and then opens developer settings and scrolls automatically to usb configuration and makes the change. This profile/task requires the plugin AutoInput.
2) Uses AutoNotification to detect when there is a notification in your tray stating that the device is being charged. Then it will use AutoInput again to click on the notification and change it to 'USB for file transfer'.
I only attached #1. Import it into to Tasker and see if that works. If not, I can add the second option.

theman22 said:
Each time I get into my car and connect my OnePlus 6 via USB, I have to change the USB connection type on the phone to MTP in order for Android Auto to connect. Once I change the setting and it connects, Android Auto runs well and stays connected until I turn off my car. Without changing the USB setting, the phone will stay in charging mode and Android Auto does not connect.
My car is a 2016 Honda Accord EX and I am using an OEM cable. The phone is rooted, developer options are enabled, and USB debugging is off. When I go into the developer options and try to change the default USB connection mode to something other than charging, the setting change doesn't seem to take.
Is there a way to automatically use MTP mode when I connect the phone to my car? Or something else I can do to get it connected without having to change a setting on my phone each time I get in my car?
Click to expand...
Click to collapse
God, it's annoying. It happens in all the modern androids. My S8+ 5T and now my OP6

My OP6 has no issues connecting to my Pioneer AVH-2330NEX. Just plug it in and AA starts right up. Bluetooth is pretty reliable as well, which is how I connect most of the time.

It usually takes a minute or 2 for my AA to come up on my screen (2017 Charger). Once it's connected, it runs super smooth. But I wish it was a little more responsive once I plug in the cable. Now I have to wait for it to come up before I can launch any app (Maps, Spotify, etc)
I"m going to see if the MTP method makes it connect "faster". If so, I'll look into building a Tasker Profile as well like @azsl1326

azsl1326 said:
So I actually created two different profiles/tasks.
1) Detects when USB power is plugged and then opens developer settings and scrolls automatically to usb configuration and makes the change. This profile/task requires the plugin AutoInput.
2) Uses AutoNotification to detect when there is a notification in your tray stating that the device is being charged. Then it will use AutoInput again to click on the notification and change it to 'USB for file transfer'.
I only attached #1. Import it into to Tasker and see if that works. If not, I can add the second option.
Click to expand...
Click to collapse
This is really close. I had to add one more scroll down step in the developer menu and change the mode to MIDI. It doesn't work 100% though. If the developer options menu is already open, it reopens wherever it was and sometimes the scroll down goes too far... Perhaps there is a more stable way to do this?
Attached is my modified tasker profile.

theman22 said:
This is really close. I had to add one more scroll down step in the developer menu and change the mode to MIDI. It doesn't work 100% though. If the developer options menu is already open, it reopens wherever it was and sometimes the scroll down goes too far... Perhaps there is a more stable way to do this?
Attached is my modified tasker profile.
Click to expand...
Click to collapse
I have another profile that uses AutoNotifications to detect when there is a notification in the tray regarding USB charging. It will then use AutoInput to select this option from the notification tray and change it to 'Transfer files'. I can post that here if you are interested. It does require two paid plugins.
You could add a task to clear recents before running the AndroidAuto task - that way it should ensure that Developers Option screen is no longer active.

azsl1326 said:
I have another profile that uses AutoNotifications to detect when there is a notification in the tray regarding USB charging. It will then use AutoInput to select this option from the notification tray and change it to 'Transfer files'. I can post that here if you are interested. It does require two paid plugins.
Click to expand...
Click to collapse
If it works reliably, I'm interested.

theman22 said:
If it works reliably, I'm interested.
Click to expand...
Click to collapse
Here you go. I think both of these Auto plugins have free trials, so you should be able to try it before you buy it.

Disabling USB debugging has helped me

theman22 said:
Each time I get into my car and connect my OnePlus 6 via USB, I have to change the USB connection type on the phone to MTP in order for Android Auto to connect. Once I change the setting and it connects, Android Auto runs well and stays connected until I turn off my car. Without changing the USB setting, the phone will stay in charging mode and Android Auto does not connect.
My car is a 2016 Honda Accord EX and I am using an OEM cable. The phone is rooted, developer options are enabled, and USB debugging is off. When I go into the developer options and try to change the default USB connection mode to something other than charging, the setting change doesn't seem to take.
Is there a way to automatically use MTP mode when I connect the phone to my car? Or something else I can do to get it connected without having to change a setting on my phone each time I get in my car?
Click to expand...
Click to collapse
I replied to you in the other thread, OnePlus 6 and Android Auto
But to fix your issue, this MIGHT be the solution for you specifically. Setup an appointment with your local Honda dealer, and ask to get Technical Service Bulletin 16-059 installed.
This fixed my issue for my '16 Accord when AA wasn't working at all with my PH-1

Or you can just simply choose this option to mtp as default on USB connection. It's in developer settings.

Berlifan said:
Disabling USB debugging has helped me
Click to expand...
Click to collapse
I have read about this and disabled USB debugging. It does sound like it works for some users but it didn't make a difference for me, unfortunately...
surface13 said:
I replied to you in the other thread, OnePlus 6 and Android Auto
But to fix your issue, this MIGHT be the solution for you specifically. Setup an appointment with your local Honda dealer, and ask to get Technical Service Bulletin 16-059 installed.
This fixed my issue for my '16 Accord when AA wasn't working at all with my PH-1
Click to expand...
Click to collapse
I will go ahead and do this. Thank you for the suggestion!
Joyarup said:
Or you can just simply choose this option to mtp as default on USB connection. It's in developer settings.
Click to expand...
Click to collapse
I've tried this as well. The setting does not seem to stick. It sometimes works the next time I plug my phone into my car but the 2nd time I plug my phone in, the default in developer settings is back to USB.

azsl1326 said:
Here you go. I think both of these Auto plugins have free trials, so you should be able to try it before you buy it.
Click to expand...
Click to collapse
This did not work when I tried it today. I'm guessing there is some difference on my phone that would require the setting to be tweaked. I'll look into this.

theman22 said:
I have read about this and disabled USB debugging. It does sound like it works for some users but it didn't make a difference for me, unfortunately...
I will go ahead and do this. Thank you for the suggestion!
I've tried this as well. The setting does not seem to stick. It sometimes works the next time I plug my phone into my car but the 2nd time I plug my phone in, the default in developer settings is back to USB.
Click to expand...
Click to collapse
Didn't know that..

I had the same issue with a VW Passat 2016, and the solution was to enable USB debugging, and after that everything is working ok.
Unfortunately I'm facing another issue. If I'm initiating a call with the phone connected to AA, usually by voice command, the sound is routed randomly on the headset, speaker and sometime to Bluetooth.
Every time I have to set manually from phone app in AA on the car screen to route the sound to Bluetooth, and this is annoying. . Do you experience this issue as well?
Thanks!

Related

set Android 6.0 default USB config to MTP rather than “charging only”?

Whenever my device (Nexus 5, Android 6.0) connects via USB, the USB config always defaults to "charging only".
This is a big problem since whenever I'd like to listen mp3 connecting nexus 5 to my car stereo I have to manually set the mode to MTP.
The big annoyance is that whenever I turn off the car engine and then restart it the nexus 5 USB connection go back to "charging only" !!!
I already tried debugging mode:
Develop settings -> USB Configuration is set to MTP.
Any chance to set USB default as MTP?
Thanks
i want that too..its very anoying..
try this: http://stackoverflow.com/questions/...t-usb-config-to-mtp-rather-than-charging-only
_PeTiT_ said:
try this:
Click to expand...
Click to collapse
Sorry, this is not helping me in solving this issue.
I want this the other way around. I want it to default to Charging Only and not MTP...which it always does on my unit. This happened since the last update, before that it always defaulted to Charge Only, which was fine for me as I don't MTP often.
Annoying to me for different reasons. Point is we should be able to set a default action, and I can't for the life of me work out how to change this behaviour. In Dev Options, I can change the default behaviour, but it doesn persist or stick. As soon as I pull the USB cord, it flips back to MTP for me every time. Very annoying.
...so bumpity bump bump.

USB does not recognize my phones

I have a MTCD head unit MX (witson) with Android 5.1, my problem is that the USB port cannot recognize my phones, A note 4 with Android 6.0 (eRobot ROM) and a Samsung GT386T no rooted with stock ROM 4.4.2. The USB port works find with a usb stick, I can play music, pictures, etc. but not my phones. Both have the USB debugging enable.
When I plug a phone it is charging but nothing happens, my note 4 after a few minutes pop a windows saying that there is a problem with the connection MTP and that I need to download samsung Sync etc.
What I want to do is to use the mirror link function.
Any of you know something about this issue?
Thanks in advance for your help.
paniqueado said:
I have a MTCD head unit MX (witson) with Android 5.1, my problem is that the USB port cannot recognize my phones, A note 4 with Android 6.0 (eRobot ROM) and a Samsung GT386T no rooted with stock ROM 4.4.2. The USB port works find with a usb stick, I can play music, pictures, etc. but not my phones. Both have the USB debugging enable.
When I plug a phone it is charging but nothing happens, my note 4 after a few minutes pop a windows saying that there is a problem with the connection MTP and that I need to download samsung Sync etc.
What I want to do is to use the mirror link function.
Any of you know something about this issue?
Thanks in advance for your help.
Click to expand...
Click to collapse
I believe i read that there is a specific app that you have to run on these to do the mirror link...easy connect, maybe? Did your HU come with an instruction booklet? I was looking through mine earlier and it went over in detail how to setup mirroring through that app.
Yes, when I tried to use EasyConnected is when I saw the problem. The app waits for my phone to be connected, It says that it must be turned on USB debugging, but it is on. Then I checked in the File manager and the USB was not enable there, like if nothing is plug it. If I plug a USB memory it works fine.
I will try today to do a factory reset.
Thank you!
paniqueado said:
Yes, when I tried to use EasyConnected is when I saw the problem. The app waits for my phone to be connected, It says that it must be turned on USB debugging, but it is on. Then I checked in the File manager and the USB was not enable there, like if nothing is plug it. If I plug a USB memory it works fine.
I will try today to do a factory reset.
Thank you!
Click to expand...
Click to collapse
You ever get this solved? My easyconnected never stays connected. WiFi and USB both are garbage.
WiFi randomly disconnects.
USB also disconnects asks me to allow USB debugging every couple of minutes. The phone never remembers the headunit, so it constantly asks me again to allow connection. Must be a crap RSA fingerprint coming from the headunit.
JordanB said:
You ever get this solved? My easyconnected never stays connected. WiFi and USB both are garbage.
WiFi randomly disconnects.
USB also disconnects asks me to allow USB debugging every couple of minutes. The phone never remembers the headunit, so it constantly asks me again to allow connection. Must be a crap RSA fingerprint coming from the headunit.
Click to expand...
Click to collapse
Nope, Still does not work for me. Same symptoms as you. I already tried with 3 differents phones, factory reset and different versions of easyconnected.
I seem to have USB connection working now with only one "allow USB Debugging?" popup, only when I first connect.
What I did was turn wifi off on the headunit. I am not sure why it worked, but I just wanted to turn everything not needed off, and see if the headunit would stop disconnecting all the time. So far so good. I can probably live with one annoying popup, instead of one every few minutes.
Of course you have to keep the screen on the phone on, and the battery in the phone will deplete faster than the headunit charges it, but still an improvement. I had a 30 minute drive today, and the USB never disconnected!
paniqueado said:
Nope, Still does not work for me. Same symptoms as you. I already tried with 3 differents phones, factory reset and different versions of easyconnected.
Click to expand...
Click to collapse
paniqueado, try the da_anton ROM. I just installed it and easyconnect finally works as it should. I just plug in my phone to the USB and it fires right up! One prompt if any on the head unit, and NO disconnects whatsoever.

Android Auto on Mate 9

Hi,
I am not sure if this problem is related to
- Mobile Phone
- Android Auto
- Car
So my question is: Does someone already has a working Android Auto connection with a car´s radio with this phone?
If so, I will continue this in Android Auto section.
Today I upgraded build to: MHA-L29C432B138
Car/Radio: Opel Astra K (MY2017)/ Intellilink R4.0
The connection could be established. But screen of car stays black. When touching screen or saying "OK Google" it accepts voice command.
My Mate 7 works perfectly...
Best regards,
Robert
no idea... working oke on my golf 7 2015 mib2 unit..
u using original cable... i also try ith lumia 950 cable, also usb-c but random disconnecting with this cable.
P9 is also working. I guess the problem is Mate 9.
Mine works with Pioneer but doesn't work well. It Will not play anything already downloaded to the device unless you connect phone to head unit forest and actually play something through Bluetooth first and THEN connect it. All permissions are set correctly etc. And what is with having to give it permission to use the data on the phone EVERY SINGLE TIME?
US model working flawlessly with 2016 VW Golf R... I did have to reinstall audible and spotify after connecting the first time in order for them to show up in the menu, but other than that, no issues with connecting, audio skips, etc. Very happy! Samsung S7 Edge was unusable with AA.
Got the International Mate 9 Pro and AA is working perfectly fine with my Pioneer 4100nex. I'm on the latest Pioneer firmware 1.09 if that helps anyone.
Works like a charm
What settings do you guys have? Do you have usb debugging or anything like that enabled in dev settings? Every time I hook up it comes up with the dialogue box to enable data access. Whether I click enable or not it will not play anything stored on phone. I've had this confirmed by Huawei Australia. They couldn't get it going either.
I have all the correct permissions set for all apps including android auto.
Any hints?
MontAlbert said:
What settings do you guys have? Do you have usb debugging or anything like that enabled in dev settings? Every time I hook up it comes up with the dialogue box to enable data access. Whether I click enable or not it will not play anything stored on phone. I've had this confirmed by Huawei Australia. They couldn't get it going either.
I have all the correct permissions set for all apps including android auto.
Any hints?
Click to expand...
Click to collapse
In developer options I do have "Always prompt when connecting to USB" turned off and "Select USB Configuration" set to MTP. I don't get prompted for anything on the phone. USB Debugging is off. I don't try to play anything from USB though, just use AA, Spotify, and Audible.
Other than that, I do have an Automagic script that when car ui mode is entered, the screen gets turned on, Waze is launched, slide to unlock keyguard is dismissed, and wifi is turned off. I won't need to do most of this when Waze is AA compatible, but until then, I can't live without it. This script works about 90% of the time, still haven't finished tweaking it for 100% success. Worst case, I have to turn the phone back on, swipe down on the notification panel, then select waze from "Notification Shortcuts".
bwillet said:
In developer options I do have "Always prompt when connecting to USB" turned off and "Select USB Configuration" set to MTP. I don't get prompted for anything on the phone. USB Debugging is off. I don't try to play anything from USB though, just use AA, Spotify, and Audible.
".
Click to expand...
Click to collapse
Seems this is possibly the issue. Whenever I connect usb it automatically changes the usb connection type to charge only. Won't let me change it to mtp, audio or anything else. Wonder if there is a hidden setting somewhere in emui that does this... Tried it in dev settings. Same issue. Charge only
MontAlbert said:
Seems this is possibly the issue. Whenever I connect usb it automatically changes the usb connection type to charge only. Won't let me change it to mtp, audio or anything else. Wonder if there is a hidden setting somewhere in emui that does this... Tried it in dev settings. Same issue. Charge only
Click to expand...
Click to collapse
I couldn't find anything else that I changed that seems relevant. I'm just using a standard USB to USB-C cable (Anker PowerLine+) plugged into the USB port in my VW Golf.
Did you change both of those settings I mentioned? If so, when you go back into dev settings does "Select USB Configuration" still say MTP, or did it default back to Charge Only? Maybe you have to reboot after? dunno...
bwillet said:
I couldn't find anything else that I changed that seems relevant. I'm just using a standard USB to USB-C cable (Anker PowerLine+) plugged into the USB port in my VW Golf.
Did you change both of those settings I mentioned? If so, when you go back into dev settings does "Select USB Configuration" still say MTP, or did it default back to Charge Only? Maybe you have to reboot after? dunno...
Click to expand...
Click to collapse
I changed those 2 you said but as soon as I plug in the Huawei cable (thought maybe it needed the Huawei cable) it changes itself to charging...
I'll keep looking into it. Thanks for your help though. This is obviously the issue.
I'm having the same issue in the US version on a 2017 VW GLI. My last two phones worked flawlessly.
MontAlbert said:
Seems this is possibly the issue. Whenever I connect usb it automatically changes the usb connection type to charge only. Won't let me change it to mtp, audio or anything else. Wonder if there is a hidden setting somewhere in emui that does this... Tried it in dev settings. Same issue. Charge only
Click to expand...
Click to collapse
Mine goes to charge only as well however my android auto is working perfectly.
It connects and on the phone side it seems fine but the head unit screen goes black and doesn't do anything.
Hi.. Is there anyway to prevent WhatsApp notifications showing up in android auto?
Mate 9 L29 - B156 in a Seat Ibiza 2016.
Android auto working fine.
You have reviewed android permissions, or if Google app or maps are set to close when the screen is turned off And enable activation?
In my old zenfone 3 that was the problem
Did any of you guys tried to enable the USB debugging mode?
Emil Borconi said:
Did any of you guys tried to enable the USB debugging mode?
Click to expand...
Click to collapse
JA! This was first thing, but no success.
I am also disappointed by Huawei customer care. They just point at Google and say it is not their fault.
Does anyone know how to log / where to find the log when "Force logging" is enabled in dev options in AA?
debart said:
JA! This was first thing, but no success.
I am also disappointed by Huawei customer care. They just point at Google and say it is not their fault.
Does anyone know how to log / where to find the log when "Force logging" is enabled in dev options in AA?
Click to expand...
Click to collapse
Open android auto, go to about, tap the Android auto title 10 times, you will see a toast saying your developer. Now from the 3 dotted menu on the right select developer options locate force logging and make sure it's enabled

New modal dialog appears when connected to USB in car

Ever since the Oreo update my phone displays a modal dialog when I connect to the USB port in my Subaru for charging. The dialog suggests that the phone resources can't be accessed and that I should download a samsung app (the one you use to port data to a new phone). All I want is to charge the phone like I've been doing for the past 6 months. It's inconvenient because I have to wake up the phone and hit OK to dismiss the dialog box. Is there any way to tell the phone to just use the USB for charging only by default? I tried changing to charge phone only in the drop down notification panel but it doesn't stick for the next session. I looked through the very extensive list of settings and couldn't find anything relevant. I know that I could try to find a cable that offers charging only or perhaps connect the phone to a cigarette style charger. These are inconvenient as I already have the appropriate USB-C cable and charging port. Am I missing the setting or solution? Thank you.
Here is a picture of the annoying message that recently appeared on my phone after updating the OS. The message appears when connecting my phone to my car's USB port for charging. Does anyone know how to stop this message from coming up? Thanks.
Have you tried plugging it in, acknowledging the popup, then switching usb mode to charge-only? It should remember that mode for future plug-ins.
xpersimmon said:
Here is a picture of the annoying message that recently appeared on my phone after updating the OS. The message appears when connecting my phone to my car's USB port for charging. Does anyone know how to stop this message from coming up? Thanks.
Click to expand...
Click to collapse
I get that same message when I plug into the airplane media system USB to charge. I just switch USB option to charge and it goes away.
eregev said:
Have you tried plugging it in, acknowledging the popup, then switching usb mode to charge-only? It should remember that mode for future plug-ins.
Click to expand...
Click to collapse
I tried the same thing to see if it would work and it doesn't save your preference. Tested via both the notification and via developer options.
mjones73 said:
I tried the same thing to see if it would work and it doesn't save your preference. Tested via both the notification and via developer options.
Click to expand...
Click to collapse
Let's see if it works for OP.
eregev said:
Have you tried plugging it in, acknowledging the popup, then switching usb mode to charge-only? It should remember that mode for future plug-ins.
Click to expand...
Click to collapse
Yes, good suggestion. I tried that but the setting isn't sticky (it asks everytime).
rsfinsrq said:
I get that same message when I plug into the airplane media system USB to charge. I just switch USB option to charge and it goes away.
Click to expand...
Click to collapse
Yes, extra fiddling with my phone in this way is inconvenient and unsafe while driving.
It is a rather inconvenient, and annoying, situation.
Drunkula said:
It is a rather inconvenient, and annoying, situation.
Click to expand...
Click to collapse
One of the things that bugs me about Samsung is that the number of settings available are enormous but many don't work the way I want.
This seems like a simple problem that was recently introduced. I guess I need a charging only cable....

Android auto

HI,
i tried my Nord on my Opel and Android Auto not work.
My old 5t, wiht Android 10 work well!
Why?
Only mine?
Think so, in my megane works like a charm
Nope i am having problems as well. There seem to be lots of problems with OP, for a long time
(I am also having problems with bluetooth and Ford Sync3)
https://forums.oneplus.com/threads/android-auto-not-working.942920/
https://support.google.com/androidauto/thread/4455995?hl=en
I set USB to file transfer but it immediately switches to 'No data transfer' and AA crashes
As for the solutions suggested in the above threads
I tried disabling battery optimization for AA
I tried to delete working profile / parallel apps, but there was none
I tried removing data access restrictions
I tried using USB mode MIDI, and only this seems to work for now...
For whatever reason, Android Auto would not launch on the car side until I set the USB mode to MIDI on the phone. I know, this seems to make absolutely no sense, but I tried it twice to test the theory and indeed it solves the problem in my case.
I'm not even sure where the USB setting is found, but if one searches the Settings panel, it appears as "USB Preferences".
Strangely enough, when I select MIDI and Android Auto launches, the radio button selection changes automatically to "No data transfer" and cannot be changed while connected.
In any case, I found this solution to be unexpected and strange and thought it to be worth sharing. I was ready to give up!
Click to expand...
Click to collapse

Categories

Resources