Open
Description
Problem:
I am integrating the Media3 library (1.7.1) into my app and currently experiencing the following errors when the playback state transitions to PLAYING
:
MediaBrowserService com.example.package I No root for client com.android.systemui from service android.service.media.MediaBrowserService$ServiceBinder$1
MediaBrowser pid-17694 E onConnectFailed for ComponentInfo{com.example.package/com.example.package.data.playback.PlaybackService}
ResumeMediaBrowser pid-17694 D Connection failed for ComponentInfo{com.example.package/com.example.package.data.playback.PlaybackService}
MediaResumeListener pid-17694 E Cannot resume with ComponentInfo{com.example.package/com.example.package.data.playback.PlaybackService}
- These errors usually appear on Pixel devices running Android 30+.
- I also tested on a Samsung A52 API level 33 and did not encounter these errors there.
- Despite the errors, playback works fine — media notifications and Android Auto behave as expected.
- This only happens if I add the action
android.media.browse.MediaBrowserService
in the AndroidManifest:
What I tried so far:
- Attempted to intercept
onGetLibraryRoot()
for thecom.android.systemui
package, but this callback was never invoked. - I could not reproduce this issue in the UAMP sample app — likely because UAMP uses a
MediaBrowser
, while in my case, I am using a plainMediaController
to start theMediaLibraryService
.
Question:
- What is the cause of these errors?
- Is it expected that
MediaBrowser
connections fromcom.android.systemui
will fail in this case? - Is there something wrong in the way I am starting the service using
MediaController
directly (without aMediaBrowser
)? - Is this a known limitation/behavior of the Media3 library, or is it likely a bug in my app's integration?
Any advice or clarification would be greatly appreciated! 🙏