Stealing Audio Focus from you

Audio Focus with ExoPlayer

AUDIOFOCUS_LOSS

AUDIOFOCUS_LOSS_TRANSIENT

AUDIOFOCUS_LOSS_TRANSIENT_MAY_DUCK

Now What?

adb shell am startservice --ei AUDIO_REQUEST_KEY [audioRequestKey] your.package.name/com.takusemba.audiothief.AudioFocusGainService
adb shell am stopservice --ei AUDIO_REQUEST_KEY [audioRequestKey] your.package.name/com.takusemba.audiothief.AudioFocusGainService

--

--

Android Engineer at AbemaTV Github: https://github.com/takusemba

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store