Mask locking on Xiaomi: the complete guide to MIUI 14/15

Spam calls from numbers disguised as banks, government services or well-known companies have become a real attack for smartphone owners. Xiaomi with the MIUI shell has built-in tools to combat them, but masked locking numbers (such as +79123 or 8800*) requires knowledge of hidden functions. Unlike locking a specific number, template filtering allows you to automatically screen out entire groups of fraudulent calls - but not all users know how to configure this correctly.

In this article, we will break down the unique mask blocking methods on Xiaomi, including little-known features. MIUI, You will learn how to work with the built-in blocker, which third-party applications are really effective, and why some masks (such as those with the # symbol) may not be blocked by standard means. Special attention is paid to the nuances for the latest versions MIUI 14 and MIUI 15, where the lock interface has changed.

What is a mask lock and why you need it

The number mask lock is a filtering of incoming calls and SMS by pattern, not by exact match. For example, the +7903* mask will block all numbers starting with +7903, and *123# - all calls ending with 123# (the kind often used by fraudsters to simulate service numbers).

This feature is especially relevant on Xiaomi for three reasons:

  • πŸ“ž Fraudulent schemes: Attackers often use dynamic numbers with the same prefix (e.g, +7999123*) The mask lock allows them all to be cut off at once.
  • πŸ“Š Spam from operators: Many mobile operators send ads from the number 8800* or 900*. the Mask blocks them all without affecting important notifications.
  • πŸ” Hidden numbers: B MIUI You can even block calls with a changed caller. ID (For example, the Bank or public services, if they correspond to a given template.

It's important to understand that mask locking doesn't replace the standard blacklist, it complements it. For example, if you add +79123456789 to the blacklist and then create a mask of +7912*, the first number will be blocked twice - but it will not affect performance.

πŸ“Š How often do you get calls from masked numbers?
Every day.
Several times a week
Nearby
Never.

MIUI Integrated Mask Locking Tools

In MIUI 14/15, the mask lock function is hidden in the phone app settings to find it:

  1. Open the phone application (pipe icon).
  2. Slip on three dots in the upper right corner β†’ select Settings.
  3. Go to the section "Number Lock" (or "Spam and Lock" on some models).
  4. Select Add Mask (may be called a template filter).

Here you can enter the mask manually. The following symbols are supported:

SymbolMeaningExample
Any sequence of numbers (including empty)8800 – All numbers starting at 8800
?One number.+79??1234567 - any numbers with 1234567 at the end and two arbitrary digits after 9
#Only at the end of the mask - ignores everything after the symbol+7903# – blocks all numbers starting at +7903, regardless of the extension
!Exception (not applicable to all MIUI versions)8800*!88005553535 - blocks all 8800* except 88005553535

⚠️ Note: On some firmware (especially global) the symbol! for exceptions does not work.

Enter the mask in +79*** format (for Russian numbers)

Make sure there are no extra gaps or dashes

Check the mask on your friend's number (temporarily add it to the exceptions)

Save the mask and restart the phone (sometimes required for use)-->

Hidden MIUI settings for advanced filtering

If standard masks do not help (for example, do not block numbers with a changed caller ID), you can use hidden MIUI codes.

Open the Phone app and enter the following combinations:

  • πŸ”’ ##64663## β†’ MTK Engineer Mode β†’ Telephony β†’ Call Blocking (for devices running MediaTek processors).

⚠️ Note: Use of the Engineering Menu (MTK Engineer Mode can cause a communication module to malfunction. Don't change settings unless you're sure they're there. For example, a bad Band Selection setup can take your network out of your hands.

For devices on Qualcomm Snapdragon (most flagships Xiaomi) available alternative method:

adb shell settings put global block_unknown_callers 1


adb shell settings put global block_private_callers 1

These commands block all hidden and unknown numbers. To unlock the lock, replace 1 with 0.

πŸ’‘

If nothing happens after you enter the code, try using the Google Play Activity Launcher app, which allows you to run hidden system menus without codes.

Third-party applications for mask blocking

If the built-in MIUI tools don't work (for example, they don't block numbers with a changed name), you can install specialized applications.

AnnexFeaturesCons
TruecallerSpam number database, mask lock, caller ID identificationRequires access to contacts, advertising in the free version
Call BlockerSupport for regular expressions (e.g. ^\+79\d{9}), lock logPaid (~300β‚½), interface
Should I Answer?Cloud database of scammers, blocking by prefixes, no advertisingNo SMS blocking, only calls
Blacklist PlusSupport for masks with * and?, backup rulesOutdated design, rare updates

For maximum efficiency, it is recommended to combine Truecaller (to identify the caller ID) and Call Blocker (for flexible masks).

  1. In Truecaller, set up a lock on all numbers marked as β€œSpam” or β€œCracker”.
  2. In Call Blocker, add masks for operator numbers (e.g. 8800* or +7900*).

⚠️ Note: Some applications (such as Truecaller) may conflict with the built-in blocker. MIUI. If after installation, numbers from the standard blacklist cease to be blocked, disable duplicate functions in the application settings.

How to check which app blocks calls?
Open Settings β†’ Applications β†’ Permissions Management β†’ Phone. See which apps have access to Read Call Log and Change Phone Settings. Turn off permissions one by one to find conflict.

Why masks may not work and how to fix them

A common problem is that the user added a mask (e.g. +7903*), but calls from these numbers still pass.

  • πŸ”’ Wrong Mask Formatting: MIUI It's format sensitive. For example, 8903 and +7903 are different masks. Always use the full international format (+7...).
  • πŸ› οΈ System service failure: Enter the phone code ##4636##, select Phone Information and click Run the ping test. If the test fails, restart the device.

If the problem persists, check if the lock is disabled in the power saving mode:

  1. Go to Settings β†’ Battery and Performance β†’ Energy Saving Mode.
  2. Click Mode Settings β†’ Background Limits.
  3. Make sure that the phone application is not limited.

πŸ’‘

On some firmware (e.g. MIUI Global for Europe), mask locking is disabled at firmware level, in which case only MIUI China firmware or third-party applications will help.

Blocking masks in SMS and messengers

The built-in MIUI blocker can filter not only calls, but also SMS.

  1. Open the Messages app.
  2. Tap three points. β†’ Settings β†’ Blocking and spam.
  3. Enable the option to block messages from unknowns.
  4. Add masks to the Blacklist section (similar to blocking calls).

For messengers (WhatsApp, Telegram, Viber) blocking mask works differently:

  • πŸ’¬ WhatsApp: It doesn't support masks, it only supports exact numbers. You can use bots like this. @SpamBlockBot.
  • πŸ“§ Telegram: In the privacy settings there is an option Who can write to me β†’ My contacts (blocking everyone else).
  • 🎧 Viber: Supports locking by prefix in Settings β†’ Confidentiality β†’ Blacklist. β†’ Add the template.

⚠️ Note: Telegram does not block "unknown" channels and bots. Fraudsters often use bots with names of the species @Bank_Support_Bot β€” They need to be locked manually.

Backup and transfer masks to the new Xiaomi

If you change your smartphone or reset your settings, save the block list:

  1. For the built-in MIUI blocker: Open Settings β†’ Google β†’ Backup. Make sure App Settings are backed up. After reset, restore your Google account data.

Call Blocker

  • Export the rules to a file (usually in.csv or.json format).
  • Save the file to Mi Cloud or Google Drive.

If you use Truecaller, log in to it on a new device – all locks are synchronized automatically through your account.

⚠️ Warning: When you transfer masks from one device to another, consider the difference in firmware. +79* can be used for MIUI China, but ignored by the MIUI Global due to different blocking policies.

FAQ: Frequent questions about mask blocking on Xiaomi

Can I block numbers with a changed name (for example, SberBank)?
Yes, but not all of the ways. The built-in MIUI blocker doesn't filter by the name of caller ID. Use Truecaller (it recognizes swapped names) or Call Blocker with the "Block Unknown Numbers" option.
Why did the masks stop working after the MIUI update?
The new versions of MIUI 14/15 have changed the syntax of masks, for example, the 8800* mask used to work, and now you need to specify +7800*. Check the format and resave the rules. Also, after major updates, application permissions are reset β€” check access to call logs.
How to block all international numbers (for example, +375, +380)?
Add masks like +375*, +380*, etc. to the blocker. If you want to block all foreign numbers except certain countries, use the Call Blocker app with the White List function.
Can I block numbers that start with a certain number (e.g. 9)?
Yes, add a mask of +79*** (for Russian numbers). * will replace any numbers after 9. Note that this will block all numbers starting at 9, including legitimate ones.
How do I know which number has been blocked?
The built-in MIUI blocker does not keep a log of blocked calls, but use Call Blocker (there is a section called "Block History") or Truecaller (shows notifications about blocked calls).