When Spotify plays over Bluetooth with the aptX Adaptive codec, audio drops out
for a moment every time the screen is locked or unlocked. While the screen is on,
the phone shows "Snapdragon Sound • Low latency mode" and the codec stays in its
low-latency (lower quality) mode. aptX Lossless is never enabled for Spotify, so
Spotify Lossless is not delivered to the headphones.
Tidal and YouTube Music on the same phones and headphones are not affected.
Cause (confirmed from logcat):
Spotify outputs audio through AAudio. Motorola's system app
com.bluetooth.aptxmode treats every USAGE_MEDIA stream with player type "AAudio"
or "OpenSL ES" as game audio, and switches aptX Adaptive to Low Latency mode
whenever the screen is on. Apps that use AudioTrack are not affected. The only
exception hardcoded by Motorola is com.amazon.mp3.
Log line for Spotify:
pacName:com.spotify.music usage:1 content:0 playerTypeStr:AAudio
-> isGameAudioStarted: true -> setLLMode on SCREEN_ON, setHQMode on SCREEN_OFF
Similar reports exist for other apps with native audio output on Asus and Sony
phones with aptX Adaptive, so this may affect more Qualcomm devices.
What I already tried (no effect): reinstall, clearing app data, unrestricted
battery, re-pairing, Bluetooth reset, lower streaming quality. Switching the
codec to SBC removes the dropout.
Request: please consider using AudioTrack for Bluetooth A2DP output (or offering
it as an option), and/or raising this with Motorola so com.spotify.music is
excluded from their low-latency rule. I have reported it to Motorola as well.
Full logs available on request.