How to make Xiaomi phone accept calls only from the contact list: 5 working ways

Tired of intrusive calls from unknown numbers, spam and scammers? On Xiaomi smartphones, there are several ways to customize calls exclusively from your phone book β€” from standard MIUI features to hidden features that few know about. This guide will suit all modern models, from the budget Redmi Note 12 to the flagship Xiaomi 14 Ultra, running on MIUI 12-14 or HyperOS.

We will not only analyze the basic call filtering settings, but also advanced methods – for example, how to bypass operator restrictions or why sometimes locking does not work on double-dealing. SIM-Important: some features may vary depending on the firmware version and regional build (global, Chinese, European). If your phone doesn't support the described way, there are alternatives in the article.

Why the standard lock of unknown numbers does not work on Xiaomi

Many users try to enable filtering through the Settings menu. β†’ The number locks, but they're not sure if the calls are going through, because it's architecture. MIUI:

  • πŸ“± Operator restrictions: some mobile operators (e.g. MTS or Beeline) ignore phone settings and skip calls at the network level. ID (For example, "Your bank").
  • πŸ”„ Double. SIM-card: if you have two SIMs activated, lock settings can only apply to the main one (SIM The second card will have to be configured separately.
  • πŸ”„ Updates MIUI: after major updates (for example, transition from MIUI 13 on HyperOS) some filtering parameters are reset.
  • πŸ› οΈ Third-party apps: If you have installed alternative phone apps (like Truecaller or Google Phone), they may conflict with standard locking.

Another common problem is that calls from hidden numbers (defined as "Unknown" or "Private") cannot be blocked through the standard blacklist, but in this article we will show you a workaround.

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

Method 1: Enabling Contacts Only filtering in a standard phone application

The easiest way is to use the built-in MIUI function, which automatically rejects all calls except those saved in the phone book.

  1. Open the Phone app (the tube icon on the home screen).
  2. Slip on three dots in the upper right corner and select Settings.
  3. Go to Blocking and Spam Protection (some models may call Protection and Blocking).
  4. Activate the switch to Lock Unknown Numbers.
  5. Below, turn on the option to Accept Contacts Only (or Phone Book Only in older MIUI versions).

After that, all incoming calls from numbers that are not in your contacts will be automatically deflected, and the caller will hear short beeps, as if your phone is turned off.

β˜‘οΈ Checking filtration operation

Done: 0 / 4

⚠️ Warning: If you have "Do Not Disturb" mode enabled" (DND), It may conflict with the lock settings. β†’ Sounds and vibrations β†’ Do not disturb and make sure that there are no additional restrictions for calls activated.

Method 2: Manually add all numbers to the blacklist (alternative method)

If the first method didn't work (for example, because of the firmware), you can go the other way: allow all calls, but manually block ranges of numbers that are not in the contacts, which takes longer, but more reliably bypasses the restrictions of operators.

Instructions:

  1. Open Settings β†’ Applications β†’ Application Management.
  2. Find your phone in the list and tap it.
  3. Select Number Blocking (or Spam and Lock).
  4. Click Add to the blacklist and manually enter the number masks: To block all unknowns: enter +* (asterisk means any character). To block hidden numbers: enter Unknown or Private (depending on the display in the log). To block spam bands: add prefixes of +7900* (where 900 is the spam operator code).

Save the changes and restart the phone.

Type of numberLock maskExample
All unknowns+*Blocks any numbers not stored in contacts
Hidden numbersUnknown or PrivateRejects calls with suppressed Caller ID
International+37*, +1*, etc.Blocking calls from specific countries
Spam bands+7900*Prohibits calls from suspicious prefixes

Importantly, if you block all unknown numbers through a +* mask, you won’t be able to receive calls even from new contacts you haven’t added to your phone book yet, which is only suitable for those who are willing to manually update the blacklist.

Method 3: Use of Do Not Disturb Mode with Exceptions

The Do Not Disturb (DND) feature in MIUI allows you to flexibly configure rules for incoming calls, and unlike standard locking, you can specify exceptions, such as allowing only calls from selected contacts or repeat calls.

How to set up:

    The best apps for Xiaomi:

    AnnexPlusesConsReference
    TruecallerLargest spammer database, identification of unknown numbersRegistration is required, sometimes misdefining spamGoogle Play
    Should I Answer?It is offline, there is no mandatory registrationLess number base, less user-friendly interfaceGoogle Play
    Calls BlacklistSupport for blocking by SMS, log of blockedAdvertising in the free version, complex settingsGoogle Play

    To make these applications work properly, they need to be given permissions to access the call log and contacts.

    1. Open the application and go through the initial setup.
    2. Enable the option to Block Unknown Numbers (the name may vary).
    3. In MIUI settings, go to Apps β†’ Permissions β†’ Auto Run and add the application to the autorun list (otherwise it won’t work in the background).
    4. Reboot the phone.

    ⚠️ Note: some antiviruses (e.g. Avast or Kaspersky) may conflict with third-party call blockers. If calls stop blocking after installing the app, temporarily disable antivirus protection.

    Method 5: Hidden MIUI settings for power users (via engineering menu)

    If you’re ready to dive into the technical details, you can activate hidden filtering features through Xiaomi’s engineering menu, a method that is suitable for advanced users and requires caution – incorrect settings can disrupt the phone.

    Instructions:

    1. Open the Phone app and enter the code: ##4636## This will open the testing menu.
    2. Select Phone Information (or Phone Information).
    3. Scroll down to the Set Radio Band or Network Type section.
    4. Some firmware has a hidden Call Blocking Mode option here, tap it and select Whitelist Only (whitelist only).
    5. Save the changes and restart the phone.

    If this method doesn’t work, try an alternative method using ADB (computer required):

    1. Turn on USB Debugging in Settings β†’ About Phone β†’ MIUI version (tap 7 times on build number, then go back to Additional β†’ For Developers).
    2. Connect your phone to your PC and execute the command: adb shell settings put global call_blocking_enabled 1 Adb shell settings put global settings call_blocking_whitelist_only 1
    3. Reset the device.
    What if the sound is lost after the changes in the engineering menu?
    If you have lost sound during calls after manipulating the engineering menu, return the default settings: 1. Re-enter the code ##4636##. 2" β†’ "Reset to Default.” 3. Restart your phone. If the problem persists, reset your network settings to Settings β†’ SIM-maps and mobile networks β†’ Resetting network settings.

    Frequent problems and solutions

    Even after you set up your filtering correctly, Xiaomi users face typical problems, and here are the most common ways to fix them:

    Problem.Possible causeDecision
    Calls still pass.Conflict with an application from the operator (for example, "My MTS")Remove or disable the operator’s application in Settings β†’
    There are no exceptions for the elected.Contacts are not synced with Xiaomi/Google accountGo to Contacts β†’ Settings β†’ Accounts and update sync
    Hidden numbers are not blockedOperator restriction (the call goes through the server number swap)Call the operator and request the service "Disallowed numbers" (paid from some operators)
    After the MIUI update, the settings resetResetting system configurationReconfigure filtering and disable automatic MIUI update in Settings β†’ About Phone β†’ System Update

    If none of these methods helped, check:

    • πŸ“Ά Operator network: some operators (e.g. Tele2) ignore phone settings. SIM-card.
    • πŸ”„ Double. SIM-map: lock settings can only apply to one SIM.
    • πŸ› οΈ Firmware: on custom firmware (for example, LineageOS) standard functions MIUI You may not be able to work.

    πŸ’‘

    If you use two of them SIM-maps, lock settings should be applied separately for each. β†’ SIM-maps and mobile networks, select SIM and customize filtering individually.

    Can I block all incoming calls except one number?
    Yes, for this: Enable Do Not Disturb (see Method 3). In exceptions, select Only Favorite Contacts. Add the desired number to Favorites in the phone book. Alternatively, you can use the Truecaller app and manually add a number to the whitelist.
    Why do I not receive an SMS after blocking unknown numbers?
    The call blocking function in MIUI does not affect SMS. If messages do not arrive: Check if the Do Not Disturb mode is activated for messages (in the Sounds and Vibrations settings). Make sure you have enough space in memory to receive SMS (go to Messages β†’ Settings β†’ Memory). If you use Google Messages, check the spam filter settings in the app itself.
    How to unlock a number if I accidentally blacklist it?
    To remove a number from the blacklist: Go to Settings β†’ Lock numbers. Find a number in the list and swipe it left (or tap it on the basket). If the number does not appear, check the Lock Log section in the same menu. For third-party applications (like Truecaller), the process is similar: open the application, go to Lock β†’ Blacklist and delete the number.
    Will the caller know that his number is blocked?
    No, the caller will not receive a lock notification. Depending on the settings: With a standard lock in MIUI, the subscriber will hear short horns as if the phone is off. When using Do Not Disturb, the call can go to voicemail (if it is activated by the operator); In applications like Truecaller, you can configure behavior: silent deviation or simulated employment. The operator does not inform the subscriber about the cause of the failed call.
    Does the lock work on Xiaomi with two? SIM-map?
    Yes, but with reservations: The lock settings apply separately for each SIM-If you've set up filtering only for SIM 1. SIM 2 calls will pass. On some models (for example, Redmi Note 11 Pro), when you activate the lock on one SIM, filtering automatically turns on on the second one, but this depends on the firmware version. β†’ SIM-maps and mobile networks, select the SIM and set the lock individually.