应用介绍
A small Android app that intercepts media-button presses (play / pause / headset hook) on wired and Bluetooth headphones, so that other apps (for example TeamTalk, which uses that button to mute/unmute the mic) don't react to them.
How it works
The app starts a foreground service that registers a MediaSessionCompat with FLAG_HANDLES_MEDIA_BUTTONS and FLAG_HANDLES_TRANSPORT_CONTROLS, keeps it active, and plays a short silent audio file in a loop (volume 0) so Android treats our session as "live
How it works
The app starts a foreground service that registers a MediaSessionCompat with FLAG_HANDLES_MEDIA_BUTTONS and FLAG_HANDLES_TRANSPORT_CONTROLS, keeps it active, and plays a short silent audio file in a loop (volume 0) so Android treats our session as "live

评论区 (0)