question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Android Auto rejected because of audio not ducking

See original GitHub issue

ExoPlayer Version

2.18.1

Devices that reproduce the issue

I have no idea which device google is using for testing Android Auto.

Here is my code.

player = ExoPlayer.Builder(context).build()
        player?.setHandleAudioBecomingNoisy(true)
        val audioAttributes: AudioAttributes = AudioAttributes.Builder()
            .setUsage(C.USAGE_MEDIA)
            .setContentType(C.AUDIO_CONTENT_TYPE_MUSIC)
            .setAllowedCapturePolicy(C.ALLOW_CAPTURE_BY_ALL)
            .build()
        player?.setAudioAttributes(audioAttributes,true)
        player?.addListener(this)

Devices that do not reproduce the issue

Android auto Head unit with Android 9

Reproducible in the demo app?

No

Reproduction steps

Eligibility issues

Eligibility Issue 1: Driver distraction features -> Your app includes features that distract the driver. For example, your app does not pause or reduce the volume of the audio being played while the microphone is active. App does not perform as expectedYour app does not perform all functions properly or as expected from a user perspective.For example, when attempting to test audio functionality in Android Auto, two sets of audio are played at the same time. Driver distraction features Your app includes features that distract the driver. For example, your app does not pause or reduce the volume of the audio being played while the microphone is active.

Expected result

My app should not rejected because i am using exoplayer to handle audio focus itself.

Actual result

My App rejected due to audio focus

Media

I have no SC for this issue

Bug Report

  • You will email the zip file produced by adb bugreport to dev.exoplayer@gmail.com after filing this issue.

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Tolriqcommented, Nov 10, 2022

@wasmedia96 just to reassure you a little, it’s frustrating as hell, it makes everybody loose time but you get used to it, because you have no choice 😃

image

Same exact random rejection the 28th September, updated version code and it passed as with now nearly 30 times happened in the last 7 years of Android Auto support in that app.

Even if you appeal and they redo the tests they will ask you to republish a new APK so don’t waste time if you can’t reproduce what they say.

Good luck with your app.

1reaction
toniheicommented, Nov 10, 2022

Then there is probably not much we can do in this issue tracker because the player is doing the right thing. If you think the certification isn’t testing their requirements correctly, you probably need to get in touch with them to clarify that.

Read more comments on GitHub >

github_iconTop Results From Across the Web

audio ducking not working with android car stereo, solved.
Found the solution. The radio has a factory menu, guarded with a keycode. Inside the menu, there is another menu called apps.
Read more >
I experience audio ducking when using Android Auto
I have tested with music applications youtube music and amazon music but I would believe any audio music application would be ducked by...
Read more >
Audio Focus | Android Open Source Project
Since the focus request is rejected, no focus loss of any type is dispatched to the current focus holder. Concurrent interaction. Most unique...
Read more >
Android Auto Google Play Rejection - Stack Overflow
Google keeps rejecting my app for the following reason: "During review, we found that if audio is playing on the device while plugging...
Read more >
Audio no longer working in Android Auto (music, videos ...
Finally found a fix: It seems like the car wasn't properly switching to the media mode for it. So to fix it, after...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found