Guides · Published · Updated on
Fix Android Auto communication error 21 with a VPN
Wireless Android Auto can refuse to start while a VPN is connected on your phone. It shows Communication error 21 and says that being connected to a VPN may prevent Android Auto from starting. Turning the VPN off fixes it, but then every app on the phone loses the VPN while you drive.
The usual fix is to keep Android Auto itself off the VPN. Your other apps can stay on it.
Why it happens
Wireless Android Auto pairs over Bluetooth, then talks to the car over a local Wi-Fi link (Engadget). NordVPN notes that VPN routing can interfere with that connection, so the car may not find the phone. The error text suggests Android Auto also checks for a VPN. Google’s own Android Auto help doesn’t mention VPNs, so neither cause is confirmed.
VPN apps document the same workaround. NordVPN and ExpressVPN suggest excluding Android Auto with split tunneling, and the Tailscale app excludes Android Auto by default because it doesn’t work properly with a VPN on.
Keep Android Auto off the VPN in unbraid
- Find Android Auto. Open Apps. On your first visit, tap Show my apps, then Agree and continue. If Apps says you’re editing a profile that’s not in use, tap Back to followed by the name of the profile in use (or Back to current setup). Android Auto is built into the phone; if it isn’t listed, tap Show on the line under the filters that says how many system apps are hidden. Search for “Android Auto”, or its package name
com.google.android.projection.gearhead. - Set it to Direct. Tap Android Auto and choose the Direct tile itself, not Follow default. Your default route can be a VPN or Direct: an app that only follows a Direct default still passes through unbraid, while an app you set to Direct is left out. If Filter its lookups appears, turn it off, because filtering brings an app back through unbraid.
- Check Android’s blocking. In unbraid, open Settings, VPN behaviour, then Open Android VPN settings. Open unbraid’s settings there and check that Block connections without VPN is off. With it on, Direct apps pass through unbraid, so Android Auto would still be on the VPN connection.
- Check the result. With unbraid connected, open Apps and tap Android Auto again. It should say Outside unbraid: no filter, no home network. If it says it shares its Android user id with other apps, those apps can’t take separate routes: Android Auto goes as they do. To keep it outside, set each app named there to Direct too, only if you’re happy for them to skip the VPN as well.
- Reconnect your phone to the car.
After your first connection, unbraid may offer Stay protected when unbraid is off. For this setup, leave Block connections without VPN off. Then apps use your normal connection while unbraid is paused or stopped. The kill switch guide explains what that setting does.
Apps you open through Android Auto, such as maps or music, keep their own routes. If one of them doesn’t work in the car, set it to Direct too. NordVPN gives the same advice for maps and music apps.
What we know and don’t
- This setup follows from how unbraid excludes Direct apps in its code. It hasn’t been tested in a car yet. If Android Auto still shows error 21, email info@unbraid.app with your phone and car model, so the guide can be corrected.
- Some people report that wired Android Auto works with a VPN on when wireless doesn’t. That’s not documented by Google.
- With Block connections without VPN off, every app uses your normal connection while unbraid is paused or off.
Questions
Does Android Auto see my location without the VPN? Android Auto runs on your phone and uses your phone’s location for navigation either way. A VPN changes the public IP address services see; it doesn’t hide your phone’s GPS location.
Do I have to turn the VPN off before driving? No. With Android Auto on Direct, your other apps keep their VPN exits.
Can I use Android Auto with a VPN for one app only? Yes. Keep Direct as the default and put the one app on a VPN route. Then follow the steps above for Android Auto until it says Outside unbraid: no filter, no home network. Following the Direct default isn’t enough, because those apps still pass through unbraid.
Bring your own VPN
unbraid is a VPN client with no servers of its own. You sign in with an account you already have, or add your own server. It has built-in support for AirVPN, ExpressVPN, IVPN, Mullvad, NordVPN (affiliate link), Private Internet Access, Proton VPN (Free included), Surfshark (affiliate link) and Windscribe. For CyberGhost, you import config files from your account, with step-by-step help in the app.
We earn a commission if you subscribe through a link marked (affiliate link). It helps keep unbraid free. If you're about to subscribe to a VPN service, thank you for considering doing it through one of them.