1) Plug your phone to your computer without allowing transfert files or photos (keep "charge only" mode)
2) Go in phone's settings => My Device => All specs =>
Tap 7~10 times on the "MIUI Version" tile (until you see "You are now a developer" message)
3) Go back in main settings menu => Additional settings => Developer options (at the bottom) => Enable
BOTH "
USB debugging (Security Settings)" and "
USB debugging" option (
tick, then "OK" to confirm)
4) A pop-up will ask you to authorize ADB via USB =>
Allow
5) On your computer, open a command-prompt window and type this command:
adb devices
6) If you see - for the last line - something like this:
12345678________device then you can continue!
7) Type this command:
adb shell settings put secure qs_media_resumption 0
8)
Done! You can unplug your phone from your computer and disable "
USB debugging (Security Settings)" and "
USB debugging" options (in developer options page). Then you can also
hide the "Developer options" menu => Disable the first option in developer options page then tap "back arrow" icon (top-left) 2 times.