Page 1 of 1

Android 12 (Google Pixel) and Play/Pause

Posted: 2021-11-07, 00:21 UTC
by GeroZ
Hi,

Not sure if it's related to the update, but all I can say is: I recently updated my Google Pixel 4a-5G to Android 12, and I can't really control audio playback via the Play/Pause button anymore. This applies to both my car (Ford Fiesta, regular BT connection, not Android Car) and my Anker Soundbuds Flow. — I think the problem existed before Android 12 as well, but I'm not sure.

Thanks in advance!

Re: Android 12 (Google Pixel) and Play/Pause

Posted: 2021-11-09, 09:45 UTC
by ghisler(Author)
Thanks for your report. I do not currently have any devices with Android 12, so I can only test with the emulator. The play/pause buttons in the player and in the notification area work, so I assume that you mean bluetooth buttons. Play/pause can be simulated via
adb shell input keyevent 85
and indeed there is no reaction on Android 12. There are two methods to handle these buttons, an old and a new method. So far, both have worked on all Android versions, but the new one wasn't supported by some Samsung devices, so I still use the old method everywhere.
I will switch to the new method for Android 12, this does seem to work.