You must trick the XML if you want to KEEP notification in notification shade.
No need for any tweak if you want to clean BOTH status bar and noticifation shade.
Thank you for your additional methods, must be helpful for others.
I myself didn’t know it is possible to modify XML with script.
I didn’t trick “locked” but installed Customiuizer and go to System/Notifications/Bugfixes to enable the options so that true minimized view to be enabled.
Yeah the true minimized view is missing. Fortunately customiuizer does the trick.
For devices with no TWRP, creating magisk module folder to virtually replace it might work.
I forgot to mention.
You have to replace xml when MIUI is not running.
I copy it to PC or internal storage, edit it, then replace on TWRP file manager.
If your editing is appropriate, it should have effect.
I loved to minimize notifications from some background services so that they don't appear on statusbar while I can check if they were running by peeking notification shade.
Now it became impossible.
From MIUI12 on Android11, Xiaomi deleted notification importance settings from any notification...
I got MIUI 12.5 20.12.28 on Mi9T/android11. Still there no notification importance setting.
It's really annoying some background apps' constant icon occupying my status bar and I can't minimize them. From first Android11 update.