My car has an annoying habit. Spotify keeps playing when I turn the engine off and leave the key in accessory mode, but it pauses as soon as I start the engine again. Android Auto never disconnects. The music just stops.
DrivePlay Keeper is the workaround I made for it. The app watches Spotify's Android media session and sends Play once after the unwanted pause.
Spotify must be playing for at least four seconds before protection is armed. While Android Auto is connected, the next Pause is treated as the car's ignition pause and playback resumes after 900 milliseconds.
An intentional pause still works. Press Pause again within eight seconds and the app leaves it alone. DrivePlay Keeper only reacts to a paused session, so a stopped session or the end of a playlist stays stopped.
DrivePlay Keeper requires Android 9 or newer.
- Download the APK from the latest release.
- Allow your browser or file manager to install unknown apps when Android asks.
- Install and open DrivePlay Keeper.
- Tap Grant notification access and enable DrivePlay Keeper media monitor.
- Leave Only act while Android Auto is connected enabled.
- Start Spotify through Android Auto and let it play for at least four seconds.
The live status section shows whether the app can see Android Auto and Spotify.
For reliable background operation, open the app's battery settings and select Unrestricted or Allow background usage. On phones with Sleeping or Deep sleeping app lists, make sure DrivePlay Keeper is not in either list. The media monitor is managed by Android and does not require a permanent notification.
Android only lets approved notification listeners control another app's active
media session. DrivePlay Keeper uses that access to find the session belonging
to com.spotify.music and send Play.
The app does not read message content, collect data, or make network requests. There are no analytics or accounts.
Android Auto reports whether it is connected, but it does not expose the position of the ignition key. If the car's pause looks identical to a button press, DrivePlay Keeper may resume after the first intentional pause. Pressing Pause a second time within eight seconds overrides it.
The optional power-change setting is stricter. It only permits a resume after the phone starts or stops charging, which helps in cars that briefly interrupt USB power during startup. Some cars do not expose that change, so the setting is off by default.
Run the checks and create the APK on Windows:
.\gradlew.bat testDebugUnitTest lintDebug packageDebugApkGradle puts the finished APK in artifacts/. Android build intermediates go to
the system temporary directory to avoid OneDrive file-locking problems.
Release builds require the original DrivePlay Keeper keystore and the four
DRIVEPLAY_* signing environment variables. The build checks the signing
certificate against the one used for version 1.0.0 and refuses to create a
release APK if a different key is configured.
DrivePlay Keeper is available under the MIT License.