Reputation: 59
I am trying to hide some status bar icons on MIUI 13.
Do you know of a way to hide icons such as Roaming, Mute, DND...?
I tried these without success:
adb shell settings put secure icon_blacklist zen,mute,volume
Upvotes: 2
Views: 5249
Reputation: 1
I just went through the same on a POCO X5 5G and got the "requires:android.permission.WRITE_SECURE_SETTINGS" error.
Went looking for that "second USB debugging" that @peterkodermac mentioned and found it labelled "OEM unlocking".
The command
adb shell settings put secure icon_blacklist nfc
then worked well. No need to have the "zen" and "volume" things there... I'm not sure they do anything.
Don't forget to re-enable OEM unlocking after this. The phone will say that it needs to reboot in order to enable it again... fine!
Upvotes: 0
Reputation: 402
Old question but I faced the same issue so here is how I fixed it.
First you must have the Developer status enabled.
Then enable the following settings in the Developer options:
USB debugging
Wireless debugging
USB debugging (Security settings)
Restart phone and connect it to your computer where ABD
is downloaded
Open terminal where ADB
is unzipped
Do the following commands:
./adb devices
This should list the device and show it connected
./adb shell settings put secure icon_blacklist nfc,zen,volume
This will hide, respectively, the nfc icon, the dnd moon crescent icon and the muted bell icon
Upvotes: 1