I wanted to keep listening to music/video while using Grokās live chat. Background play worked when I switched apps, but as soon as I started talking to Grok, the it would pause paused.
I got it working with the official **YouTube and YouTube Music apps** on my **POCO M5s running MIUI 14 / Android 13**. Thereās sometimes a brief pause when live chat starts, but playback resumes on its own and I can hear both the music and Grokās reply. I tested YouTube Music on the phone speaker, wired headphones, and Bluetooth headphones. I also confirmed regular YouTube works.
## Xiaomi Sound Assistant settings
Under **Settings ā Sound & vibration ā Sound Assistant**, I had **Multiple audio sources** and **Adjust media sound in multiple apps** enabled. Some Xiaomi versions call the first option **Allow multiple sounds**. The second lets you adjust each appās volume separately if one is too quiet.
Both were already on when I was having the problem, and I left them on for the successful tests. I havenāt tested whether the ADB fix works with either setting off.
## The ADB change
Enable USB debugging, connect your phone to a computer with ADB, and accept the authorization prompt on the phone. Run `adb devices` and check that the phone shows up as `device`.
Check and save the original setting for whichever app you use. Both showed `allow` on my phone.
```bash
adb shell cmd appops get com.google.android.apps.youtube.music TAKE_AUDIO_FOCUS
adb shell cmd appops get com.google.android.youtube TAKE_AUDIO_FOCUS
```
Set the app you want to use to `ignore`, then force-stop it. You only need the pair of commands for your app.
```bash
# YouTube Music
adb shell cmd appops set com.google.android.apps.youtube.music TAKE_AUDIO_FOCUS ignore
adb shell am force-stop com.google.android.apps.youtube.music
# Regular YouTube
adb shell cmd appops set com.google.android.youtube TAKE_AUDIO_FOCUS ignore
adb shell am force-stop com.google.android.youtube
```
Run the `get` command again to verify it says `ignore`. Reopen YouTube or YouTube Music, start something playing, then start a fresh Grok live chat and ask a question. **Restarting the player mattered on my phone.**
## Why I left Grok alone
The ADB audio logs showed Grok requesting audio focus just before the music paused. I tried blocking Grokās request first. Speech-to-text still worked, but live chat got stuck on **Resume**. Putting Grok back on `allow` brought spoken replies back. Blocking Gboardās request also stopped its mic from opening, so I reverted that too.
The setup that worked for me was `ignore` on the YouTube apps and Grok on its original `allow` setting. This setting controls the selected appās own audio-focus requests, so your results may vary by phone and Android version.
## How to undo it
If your original setting was `allow` like mine, run the matching command and restart the app. If you recorded a different mode, restore that instead.
```bash
adb shell cmd appops set com.google.android.apps.youtube.music TAKE_AUDIO_FOCUS allow
adb shell cmd appops set com.google.android.youtube TAKE_AUDIO_FOCUS allow
```