Closed Tr736 closed 4 weeks ago
Thanks for your report.
I can't repro this with with the demo app on a Pixel 8 emulator with API 34 I'm afraid.
Some observations:
In the Media3 code base runtime receivers are supposed to be registered with the util method Util.registerReceiverNotExported
that, nomen est omen, correctly takes care of setting the not exported flag above API 33. This is done here, for instance in MediaSessionLegacyStub
. From that, Media3 does indeed follow the requirements regarding RECEIVER_NOT_EXPORTED
that the issue title complains about.
The stack trace above doesn't mention Media3 code being involved. Instead it says that the exception is caused when an Automotive OS class tries to register a receiver:
at androidx.car.app.connection.CarConnectionTypeLiveData.onActive(CarConnectionTypeLiveData.java:63)
It appears to me this bug report should be targeted to Automotive OS that doesn't set that flag. I can see to make the team know about to hear what they say.
I think if you want to verify my guess, then you can disable Automotive support or, in case fm.fountain.audio.module.internal.CarConnectionManager
is your app, make sure to not call CarConnectionTypeLiveData.onActive
. This should prevent that exception because the receiver isn't reported in that case.
We can't really help you with this I'm afraid, because I think we do the right thing when registering runtime receivers.
I leave this bug open until I hear back from Auto folks and can report here if that's possible. It may also be I just close after a while given we are not really involved. I hope I'll be able to help you by internally signaling and listening.
Side question: Can you give me the version number of the Android Auto app that is installed on your device and if it's not yet updated upgrade to the most recent version. I see in the internal source code that the Auto class from above is already updated.
An easy fix would then be you update that app on your test device to the newest version, try again, and if it works close this issue.
I'll wait with contacting the Auto team until I know that version number as this may be an important information.
Hey @marcbaechinger
Thanks for the rapid response!
I was using Android Auto 1.2.0 bumping it to 1.4.0 resolved the issue!
Version
Media3 main branch
More version details
1.4.0
Devices that reproduce the issue
pixel 5
Devices that do not reproduce the issue
No response
Reproducible in the demo app?
Not tested
Reproduction steps
Happens on Launch
Expected result
No error to show
Actual result
The following error is thrown
Media
This is what part of my manifest looks like
and its started like this..
If I comment out either the code the manifest or session token then the app dosnt throw the message
Bug Report
adb bugreport
to android-media-github@google.com after filing this issue.Note: This was working until I set the targetSDK from 33 to 34