Hi all, I got wired Android Auto running from Sailfish OS App Support: plug the phone into the car’s USB, and Android Auto (Maps, media, calls…) shows up on the car screen. It’s a small open-source package with on/off switches in Settings. GPL-3.0, source included.
Status: works on my Xperia 10 V (XQ-DC54), Sailfish OS 5.1.0.11, App Support (Android 13), Android Auto 17.9. Tested with Google’s Desktop Head Unit acting as a USB car (same handshake as a real head unit). Not yet tested in a real car, so reports from real cars are very welcome!
Download: sfos-androidauto-0.1.zip
Everything is in that one zip:
- sfos-androidauto-0.1-1.aarch64.rpm – the package
- 1-install.bat, 2-status-and-logs.bat, 3-uninstall.bat – optional Windows helpers (install over Wi-Fi, logs, uninstall)
- source/ – source code (GPL-3.0-or-later)
- README.txt – the same steps as below
What you need first (once)
- Settings › Android AppSupport › turn on “Allow running microG services”, install microG (GmsCore + Companion), check that microG’s Self-Check passes
- Install with Aurora: Android Auto, Google Maps, Google app, Speech Services by Google. Android Auto’s own first-run setup won’t continue without them; the package itself doesn’t need them. For navigation in the car you can then also use other Android Auto map apps, e.g. HERE WeGo or Waze.
- Open Android Auto once on the phone
Install
- Settings › Untrusted software › allow untrusted software
- Unzip the download and copy sfos-androidauto-0.1-1.aarch64.rpm to the phone’s Downloads
- Files › Downloads › tap the .rpm › Install (Or from a Windows PC: run 1-install.bat from the zip.)
- Settings › Community › Android Auto:
- turn on 1. > Prepare App Support – restarts App Support, wait about a minute until it says “on”
- turn on 2. Car mode
- Plug the phone into the car
Or from the terminal:
devel-su
pkcon install-local /home/defaultuser/Downloads/sfos-androidauto-0.1-1.aarch64.rpm
sfos-androidauto setup on
sfos-androidauto car on
sfos-androidauto status
How it works
- The car asks the phone for USB “accessory mode”. A small service sees that, switches the phone’s USB into accessory mode, starts Android Auto’s head unit server inside App Support and relays the USB data to it. Unplug, and USB goes back to normal.
- “Prepare App Support” makes Android Auto a privileged app via an extra /product mount from /var/lib/sfos-androidauto, and enables App Support’s ro.appsupport.render_screen=1 so the car screen is actually rendered. Both are drop-ins in /etc/appsupport.conf.d/. No Jolla files are modified.
- No Google or Android Auto files are included. You install those yourself with Aurora.
Known limits
- Wired only. Wireless Android Auto isn’t possible because App Support has no Android Bluetooth.
- While the car is connected, the car’s buttons may also show over Android apps on the phone. This is a side effect of render_screen; Sailfish apps aren’t affected.
- The first connection may show a loading screen in the car for ~10 s.
- Built and tested on the Xperia 10 V. The USB part detects the gadget generically, so other devices with an accessory function in configfs may work. Please report!
Uninstall
Turn both switches off, or:
devel-su
pkcon remove sfos-androidauto
Removing the package turns everything off, removes the App Support drop-ins and restarts App Support.
If it doesn’t work, please post:
your device and Sailfish version
- car / head unit model
- devel-su sfos-androidauto status
- the logs ~/androidauto.log and ~/androidauto-car.log
Source: in the zip (source/), GPL-3.0-or-later. Contents:
- shell scripts
- a tiny static USB relay (C, no libc)
- the Settings page (QML)
Unofficial community package, not from Jolla or Google. No warranty, so use it at your own risk. Android Auto is Google’s app and their terms apply. Feedback and real-car reports welcome!