Blacklist on Xiaomi: the principle of operation, configuration and hidden functions

Xiaomiโ€™s MIUI-based smartphones offer a built-in tool to block unwanted calls and messages, a blacklist that has become indispensable for users tired of spam, annoying marketers or former contacts. However, many owners of Redmi, POCO or Mi devices still donโ€™t know how to set up a lock, what types of numbers can be added to the list, and what to do if an important contact accidentally gets into a prohibited one.

In this article, we will discuss the unique feature of MIUI: the blacklist on Xiaomi works not only for calls, but also integrated with the system applications "Messages" and "Security", which allows you to block SMS and notifications from spammers at the system level. You will learn how the lock logic differs on different versions of the firmware (from MIUI 12 to MIUI 14), what hidden settings are available through the engineering menu, and how to circumvent the operator restrictions if the lock does not work.

How the blacklist works for Xiaomi: technical details

Unlike standard Android solutions, the MIUI blacklist is implemented at the system services level, and when you add a number to the lock, the system performs three key actions:

  • ๐Ÿ“ž Call blocking: the number is automatically sent to the list of banned modules for com.android.server.telecom, which manages phone calls.This means that the subscriber will not even see the signal "busy" - his call will be reset at the operating system level.
  • ๐Ÿ’ฌ Filtration SMS: messages from the blocked number do not fall into the inbox, but are sent to a hidden directory /data/user_de/0/com.android.providers.telephony/databases/mmssms.db markedly blocked=1.
  • ๐Ÿ”” Suppress notifications: If the number is associated with an account in messengers (for example, WhatsApp or Telegram), the system sends a signal to the applications via NotificationManager so that they also ignore notifications from this contact.

Itโ€™s important to understand that Xiaomiโ€™s blacklist works locally โ€” it doesnโ€™t sync to the cloud (unlike Googleโ€™s services) and doesnโ€™t block carrier-level numbers. This means that if you reset your phone to factory settings or reinstall the firmware, the list of blocked contacts will be lost. However, MIUI 13+ has an option to export the list to.blk, which weโ€™ll talk about below.

๐Ÿ“Š What version? MIUI You're using it?
MIUI 12 or older
MIUI 13
MIUI 14
HyperOS
I don't know.

Where is the blacklist on Xiaomi: step-by-step instructions

The path to blacklisting can vary depending on the device model and firmware version. We have compiled the current routes for all modern Xiaomi smartphones:

MIUI versionThe Road to the BlacklistFeatures
MIUI 12 and belowSettings โ†’ Applications โ†’ Phone โ†’ BlacklistNo SMS integration, lock only works for calls
MIUI 13Settings โ†’ PapaSSWORD & security โ†’ Blacklist or Phone โ†’ โ‹ฎ โ†’ Settings โ†’ Number lockingThere is an option to block SMS, but without filtering for keywords
MIUI 14 / HyperOSSettings โ†’ Applications โ†’ Application Management โ†’ Phone โ†’ Permissions โ†’ BlacklistAdded filtering by number prefixes (e.g. locking all numbers with +375)

On some models (such as the POCO F5 or Redmi Note 12 Pro+), the path may be hidden. If you don't find the "Black List" item on the menu, try:

  1. Open the phone application โ†’ three-point (โ‹ฎ) โ†’ select the settings โ†’ Blocking and spam.

Check the version of MIUI in Settings โ†’ About the phone

Update the Phone app in Google Play

Backup contacts in Settings โ†’ Google โ†’ Backup

Disable Dual Apps for messengers (can knock the lock)-->

How to Add a Number to a Blacklist: All Ways

Add a contact to the lock on Xiaomi in six different ways, and we tested each of them on the Redmi K50 and Xiaomi 13 Ultra devices with the latest updates:

  • ๐Ÿ“ฑ Through the call log: Open the phone application โ†’ Find a number in history โ†’ press it โ†’ Choose Block (Block the Ban icon).
  • ๐Ÿ‘ค From Contacts: Open Contacts โ†’ select a subscriber โ†’ โ‹ฎ โ†’ Some firmwares need to keep your finger in touch.
  • โš™๏ธ Through Settings: Go to Settings โ†’ Blacklist โ†’ press Add โ†’ Select from contacts or enter manually.
  • ๐Ÿ“ง Isa SMS: Open a message from the spammer โ†’ press three points โ†’ Lock down the sender. MIUI 14 can block all senders with the same prefix.
  • ๐Ÿ” By Keyword: In Settings โ†’ Blacklist โ†’ Message filter, add words like "winning," "credit," "share." This function only works for the purpose of SMS.
  • ๐Ÿ“Ž Import of the list: in MIUI 13+ You can import a list of blocked numbers from a.blk or.txt file (one number per line).

Please note that if you add a number manually, enter it in an international format (e.g. +79123456789, not 89123456789). Otherwise, the system may not recognize an incoming call from the same subscriber, but with a different prefix.

๐Ÿ’ก

To block all numbers with an unknown identifier (such as Hidden Number or Unknown), add *#31# to the blacklist. This does not work on all firmware, but often helps against spammers hiding their number.

Hidden blacklist opportunities: engineering menu and ADB

For experienced Xiaomi users, there are advanced lock settings that are not available through the standard interface.

  • ๐Ÿ”ง Set up a whitelist (allow calls only from certain numbers).
  • ๐Ÿ“Š Export complete statistics of blocked calls to.csv.
  • ๐Ÿ”„ Automatically block numbers after the first missed call.
  • ๐Ÿšซ Prohibit shipment SMS to blocked numbers (by default you can send messages in response).

To access these functions:

  1. Activate Developer Mode: Go to Settings โ†’ About Phone โ†’ 7 times click on the MIUI version.
  2. Return to Settings โ†’ Additional โ†’ For developers and enable USB debugging.
  3. Connect your phone to your PC and execute the command: adb shell am start -n com.android.settings/.Settings$BlockedNumbersSettingsActivity This will open a hidden lock menu with advanced options.

The following commands can be used to manage the blacklist through ADB:

# View the current blacklist


adb shell content query --uri content://call_log/blacklist




Add a number to the lockdown



adb shell content insert --uri content://call_log/blacklist --bind number:s:"+79123456789"




Remove the number from the lock



adb shell content delete --uri content://call_log/blacklist --where "number='+79123456789'"

How to block the rooms on a schedule?
V MIUI 14 We've got an experimental time lock function to activate it: 1. Add the number to the blacklist in the standard way. 2. Open up. ADB Shell and perform: settings put global block_schedule_enabled 1 settings put global block_schedule_start 22:00 settings put global block_schedule_end 08:00 After that, all the numbers from the blacklist will be blocked only during the specified period of time (in the example - with the number of the blacklist). 22:00 before 08:00).

Xiaomi blacklist issues and solutions

Despite the convenience, users often find that the blacklist on Xiaomi is not working properly, and we have collected the most common problems and proven ways to solve them:

โš ๏ธ Note: If the blacklist is reset after the firmware update, do not attempt to restore it from a backup via Mi Cloud.This may result in duplicate records and errors in the Telecom module).

Problem.Reason.Decision
Calls from blocked numbers are going throughConflict with applications such as Truecaller or GetContactDisable permissions for third-party number detectors in Settings โ†’ Apps โ†’ Permissions โ†’ Phone
Not blocked by SMSDisabled filter messages in the settingsGo to Settings โ†’ Blacklist โ†’ SMS filter and turn on the option
Numbers disappear from the list after rebootingThe phone app cache is damagedClear the cache in Settings โ†’ Applications โ†’ App management โ†’ Phone โ†’ Clear the cache
You cannot add an international number.Restriction of regional firmwareInstall global firmware or use ADB to add

If none of these methods worked, try resetting your network settings:

  1. Go to Settings. โ†’ SIM-maps and mobile networks.
  2. Select Network Settings Reset (this wonโ€™t delete data, but reset connection settings).
  3. Restart the device and check the blacklist.

๐Ÿ’ก

On devices with Dual SIM The blacklist is valid for each SIM-If you block the number on one. SIM, He can still call the second card, so to block it completely, add a number to the blacklist for both cards.

How to export and import a blacklist

In MIUI 13 and later, you can save a list of locked numbers to a file to transfer it to another device or restore it after a reset.

Export of the list:

  1. Open the Settings. โ†’ PapaSSWORD & security โ†’ Blacklist.
  2. Press three points (โ‹ฎ) top-right.
  3. Select Export and save the file in.blk format (it is saved by default to /sdcard/Download/blacklist.blk).

List import:

  1. Place a.blk or.txt file (with numbers one in a row) in your phoneโ€™s memory.
  2. In the same blacklist menu, click โ‹ฎ โ†’ Imports.
  3. Select a file and confirm the import, and the numbers will be added to the ones already on the list.

The.blk file has a simple structure and can be edited manually, for example, to add a number and a comment to it, the line in the file should look like this:

+79123456789 Spam from the bank

โš ๏ธ Note: When importing a list from.txt, make sure the file is saved in encoding. UTF-8. Otherwise, the Cyrillic characters in the comments will be displayed incorrectly, and some numbers may not be imported.

Alternative ways to block on Xiaomi

If the built-in blacklist doesn't work, you can use third-party solutions, and we've tested several applications and services that integrate well with MIUI:

  • ๐Ÿ›ก๏ธ Truecaller: blocks spam numbers based on global database. minus - requires a lot of permission and can conflict with the built-in lock.

For enterprise users, Xiaomi Enterprise Blocklist (available in MIUI for Business) is suitable.

  • Centrally manage blacklists across multiple devices.
  • Block numbers by templates (for example, all numbers with the prefix +37529).
  • Keep a log of locked calls with connection to the device and time.

To activate Enterprise Blocklist, you need to:

  1. Install the firmware MIUI Enterprise (available for Xiaomi 12 Pro, 13 Ultra and other flagships).
  2. Connect to Xiaomi Admin Console via the web interface.
  3. Download the list of numbers in.csv format with columns phone_number reason.

FAQ: Frequent questions about the blacklist on Xiaomi

Can I block the number so that he doesnโ€™t know?
Yes, Xiaomi has a quiet lock: a blocked subscriber will hear long horns or a message saying "subscriber is temporarily unavailable" but will not know that their number is blacklisted, but if they call from another number, the call will pass.
How to block an entire country (for example, all calls from India)?
There is no such feature on the standard blacklist, but you can use a workaround: Install the Call Control app from Google Play. go to Block Rules โ†’ Block by Country. Select countries to block (e.g, +91 for India. MIUI 14 With root rights, you can edit the file /system/etc/blocked_countries.conf, country codes.
The blacklist was reset after the update. How do I restore it?
If you had Mi Account sync enabled, try: Go to Settings โ†’ Xiaomi account โ†’ Mi Cloud. Find Sync and turn on Contacts and Calls. 5-10 If the sync doesn't work, check the folder. /sdcard/MIUI/backup/AllBackup โ€” Sometimes it saves backups of settings, including a blacklist.
Can I block numbers in messengers (WhatsApp, Telegram) through the blacklist of Xiaomi?
Xiaomiโ€™s blacklist only blocks calls and SMS. For instant messengers, you need to configure the lock separately: In WhatsApp: open chat โ†’ โ‹ฎ โ†’ More. โ†’ In Telegram: click on the contact name โ†’ โ‹ฎ โ†’ Some firmware (e.g. xiaomi.eu) allows you to integrate instant messenger locking through the Security module, but this requires manual adjustment.
How do I know how many calls have been blocked?
In MIUI 12-14, the statistics of blocked calls are hidden, but you can see it in two ways: Through ADB: adb shell dumpsys telecom | grep "blocked" The team will display the number of blocked calls in the last week. Through the engineering menu: ##4636## โ†’ Phone information โ†’ Call statistics In the section Blocked Calls will be detailed information. On some firmware (for example, POCO F4 GT), the statistics are available in Settings โ†’ Blacklist โ†’ Journal.