BT Auto play with Android 17

Issue description:

Hey, probably something on my end, but can you have a look at the logs I just uploaded?

I can’t seem to get Auto play to work as it used to since Android 17.

I can manually start it, but its not auto starting reliably with Android Auto and BT devices.

Logs:

Upload description: telrod11

Additional information:

 
More than likely something I have set wrong, but I don’t remember making any changes.

I also, uninstalled, reinstalled, and restored my backup before sending this up, and I still am seeing the same issue.
 

Reproduction steps:

 
Just have an existing queue, and then pause it for a period of time. I can get BT / AA to work, if I delete that queue, and start a new one, but it is struggling to start the existing queue.
 

Media provider:

Local device

Screenshots:

     

Don’t use Android beta 1 just out and full of issues ? :wink:

Fair point….

MAy I ask, was there anything on the logs that would point to something I could change to get it working?

I don’t have time to help on that as you probably know I’m preparing version 14 … Reading logs is not a passion you know :wink:

well….

I’ll live with whatever is going on then, as I really don’t want to rebuild my Pixel

This release is suitable for development, testing, and general use. However, Android 17 is still in active development, so the Android system and apps running on it might not always work as expected .

You play with fire not me , the … might be misinterpreted on my side as blaming me for your actions :wink:

Well, I guess I just like living on the edge, kinda like beta testing Symfonium!! :slight_smile:

JK, your betas are usually rock solid

They broke it in Android 15 without warning, they reverted some changes after to fix, and now they officially block this. Considering I’ve tried to get some attention on the needs many times, I have no doubt that they absolutely don’t care and won’t support this use case.

Poweramp has the same issue now. I uninstalled SF to test and see if it was 17, and it does appear it is.

I have shikuzu installed, do you think running this would help?

To disable enforcement on devices running Android 17, run the following command:

adb shell cmd audio set-enable-hardening 0

Anyone that winds up finding this with Android 17, the shell command did not fix the autoplay issue.

I wound up “rigging” autoplay with Tasker and a test as to whether music actually starts on Bluetooth or Android Auto connect.

Hoepfully Google can get this resolved in teh next beta

As always hard to get you read things :wink:

The linked document shows that Google removed that ability on purpose and will probably not bring it back unless you have more power than me to contact high level Googlers on AOSP to change their mind and add those uses cases as allowed.

So, not to get your feathers ruffled, please don’t take this personally.

If it was broken in Android 15, why would it only show up in 17?

I never had any issues with playback on Android 15 or 16.

Again, not trying to trigger anything, just wanted to add a workaround for anyone else who might experience the issue.

Read what I write and the links and the history and use Google search after all you are still an engineer no ? :wink:

In Android 15 they did what they are doing now in Android 17 but did not announce it as such and so updated the code to match the description of their docs so we could workaround after their patch.

They have now officially disabled the feature as they wanted in Android 17 and properly documented the change …

Some history Android 17 AudioFocus · Issue #1815 · androidx/media · GitHub.
As you can see in January 2025 I perfectly anticipated what would happen (Android 17 AudioFocus · Issue #1815 · androidx/media · GitHub) and asked for a confirmation to prepare the removal of the feature if it was sure to be removed later.

As always no answer, and now we have the consequences of their constant refusal to listen to users and devs.

Very good read. Thank you for going to bat for us with Google!

From what I’ve read on your conversation, we can probably expect no real fix for Auto play on 17.

Grasping at straws here, as I have “brute” forced play, as I said, with Tasker and AutoNotification.

Again, I realize this is out of your hands now, but is there an intent or anything built in that I might play with?

Thanks for trying to help on this.

I’ve opened an issue with Google on the auto play in Android 17.