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 channel.
That is the most terrible thing about current MIUI.
I know the minimized view is stiil alive because when I upgrade from Android10, the apps have minimized notification importance in Android10 still keep minimized after being updated to Android11.
We just lost the "access" to notification importance setting.
So, can we trick notification importance on current MIUI?
I did some research then found, notification impotance is defined on any notification channel by like
"val importance = NotificationManager.IMPORTANCE_DEFAULT"
If we can override importance to IMPORTANCE_MIN, we should get minimized notification.
However, I have no idea how to override it.
Is it stored in xml or something? Or any adb shell command to do it?
Any solution include root method is welcome.
EDIT:
I browsed root storage and found "/data/system/notification_policy.xml" has notification priority value!!
Copied an line from another MIUI phone, which has working minimized notification, worked.
Just change notification priority seems not working. Some additional values needed to add.
For example, This line successfully minimized greenify notification.
<channel flags="0" id="background_service" name="Background Service" orig_imp="2" content_type="4" usage="5" importance="1" fgservice="true" locked="6" desc="To hide the sticky notification, please turn off this notification category completely." visibility="-1"/>
important:
Replacing xml must be done on TWRP and so on, when MIUI is not running. Or change will be reverted.
If just changing priority value doesn't work, try changing also orig_imp to 1.
Now it became impossible.
From MIUI12 on Android11, Xiaomi deleted notification importance settings from any notification channel.
That is the most terrible thing about current MIUI.
I know the minimized view is stiil alive because when I upgrade from Android10, the apps have minimized notification importance in Android10 still keep minimized after being updated to Android11.
We just lost the "access" to notification importance setting.
So, can we trick notification importance on current MIUI?
I did some research then found, notification impotance is defined on any notification channel by like
"val importance = NotificationManager.IMPORTANCE_DEFAULT"
If we can override importance to IMPORTANCE_MIN, we should get minimized notification.
However, I have no idea how to override it.
Is it stored in xml or something? Or any adb shell command to do it?
Any solution include root method is welcome.
EDIT:
I browsed root storage and found "/data/system/notification_policy.xml" has notification priority value!!
Copied an line from another MIUI phone, which has working minimized notification, worked.
Just change notification priority seems not working. Some additional values needed to add.
For example, This line successfully minimized greenify notification.
<channel flags="0" id="background_service" name="Background Service" orig_imp="2" content_type="4" usage="5" importance="1" fgservice="true" locked="6" desc="To hide the sticky notification, please turn off this notification category completely." visibility="-1"/>
important:
Replacing xml must be done on TWRP and so on, when MIUI is not running. Or change will be reverted.
If just changing priority value doesn't work, try changing also orig_imp to 1.
Last edited: