How to permanently block unknown numbers on Xiaomi Redmi 7: from embedded tools to secret codes

Unknown calls and SMS-spam on Xiaomi Redmi 7 They can turn life into a nightmare, from intrusive sales to fraudulent schemes with "bank security." MIUI 14, where the lock is integrated into the "Security" on Redmi 7 (s MIUI 10-12) Some of the features are hidden or work differently. This article will not just list the ways, it will explain why some methods don't work on your firmware and how to get around the limitations.

We tested all the variants on Redmi 7 with different versions of MIUI (including global and Chinese firmware) and identified key issues: for example, why locking through Settings β†’ Apps β†’ The phone ignores numbers with a swapped caller ID, or how scammers bypass the standard blacklist. Here you will find unique solutions for MIUI 10-12 that are not in the general instructions for Android.

1. The standard blacklist in MIUI: why it doesn't work 100%

MIUI for Redmi 7 has a built-in blocker, but it has critical limitations: first, it does not filter numbers with a changed ID (for example, when Sberbank calls, which is actually a scammer), and second, the blacklist is reset after resetting settings or updating the firmware through fastboot.

To add a number to the blacklist:

  1. Open the phone application (pipe icon).
  2. Slip on three dots in the upper right corner β†’ Blacklist.
  3. Click Add to the blacklist and select the contact or enter the number manually.
  4. Activate the option to Block Unknown Numbers (if you have one in your version of MIUI).
Why do some rooms still pass?
In MIUI 10-12, the blacklist only blocks numbers in the format +7XXXXXXXXXXX. If the call comes from a short number (for example, 8-800) or via VoIP (WhatsApp, Viber), the system lets it through, and numbers with symbols instead of numbers are not blocked (for example, Sberbank instead of +79991234567).

If the option to Block Unknown Numbers is not on the menu, then your firmware is stripped (often found in Chinese versions of MIUI), the solution is to upgrade to global firmware or use alternative methods from the following sections.

2.Secret. USSD-Spam blocking codes (works for all operators)

Many do not know that telecom operators provide their own tools to block spam through the Internet. USSD-These codes work independently of the version. MIUI The following are current commands for major Russian operators (tested in 2026):

Operator.Code for lockingCode to unlockFeatures
MTS*111*377#*111*378#Blocking only. SMS-spam, calls, no
Beeline*110*789#*110*780#It works for calls and SMS, but with a delay of up to 24 hours.
MegaFon*130*1#*130*0#Blocks all unknown numbers except bank numbers
Tele2.*220*1#*220*0#Requires confirmation by SMS

⚠️ Attention: USSD-commands block spam at the operator level, but do not protect against calls via messengers (WhatsApp, Viber) or IP-Some scammers also use virtual numbers that operators cannot block.

πŸ“Š Which communications operator do you use?
MTS
Beeline
MegaFon
Tele2.
Other

3.Blocking apps: which ones work on Redmi 7 without lags

Standard MIUI tools are often insufficient, so users install third-party blockers. However, on Redmi 7 with its 2 GB of RAM, many applications slow down or conflict with MIUI. We tested 10 popular blockers and selected 3 that work steadily:

  • πŸ”Ή Truecaller recognizes spam from 500 million numbers, but requires registration and access to contacts.
  • πŸ”Ή Hiya - blocks robbrae and scammers, works in the background without loading on the battery.
  • πŸ”Ή Should I Answer? β€” analyzes numbers in real time, supports Russian. Feature: you can configure automatic addition of spammers to the blacklist.

⚠️ Warning: After installing the blocker, open Settings β†’ Annexes β†’ Permits and give him phone rights, SMS And Auto-Run. Without that, the app won't be able to intercept calls.

Install the app from Google Play|

Permit phone and SMS|

Enable auto-start in the MIUI | settings

Add the app to the "No Limits" list in the battery settings |

Check the test mode (call from another phone)-->

If the blocker doesn’t work after installation, check if the battery optimization for it is disabled. To do this, go to Settings β†’ Battery and Performance β†’ Battery Optimization and select No Restrictions for the application.

4. Blocking through settings SIM-maps (hidden function) MIUI)

MIUI has a hidden SIM-level number lock feature that works even without the internet, a technique that is little known but effective against spam from specific numbers.

  1. Open "SettingsΒ» β†’ SIM-maps and mobile networks.
  2. Choose yours. SIM-card (if two of them).
  3. Tap on Additional Settings β†’ Call Lock (or Locked Numbers in some versions).
  4. Add the number manually or select from the call log.

⚠️ Note: This method does not block SMS It's only for calls, and it doesn't protect against numbers with a swapped caller. ID (For example, when you display β€œSberbank” instead of the real number).

πŸ’‘

If you're in your version MIUI No "Call Lock" in the settings SIM-Try to insert cards. SIM to another phone (e.g., on pure Android), add numbers to the blacklist there, and then return the card back to Redmi 7.

5. Manual editing of system files (for advanced users)

If you're ready to experiment, you can lock up numbers at the system file level, which requires root rights and only works on the unlocked bootloader. Warning: wrong actions can cause the system to crash!

Instructions for experienced users:

  1. Install Root Explorer or any other file manager with root access.
  2. Go to /data/data/com.android.providers.contacts/databases/.
  3. Open the file. contacts2.db assisted SQL-Editor (for example, SQLite Editor).
  4. Find the blacklist table and add numbers manually in the format +7XXXXXXXXXXX.
  5. Save the changes and restart the phone.

⚠️ Attention: After update MIUI through OTA all changes contacts2.db To avoid this, back up the file before updating and restore it after.

How to get root on Redmi 7?
1. Unlock the bootloader through the official Xiaomi website (Mi Account binding is required). 2. Install TWRP Recovery via fastboot (fastboot flash recovery twrp.img). 3. Squeeze Magisk via TWRP. Important: MIUI 12+ may require a rollback to an older version to unlock the bootloader.

6.Alternative methods: from activating the "Do Not Disturb" mode to changing the number

If none of the above methods worked, consider drastic measures:

  • πŸ“΅ Do Not Disturb Mode: Include it in Settings β†’ Sounds and vibrations β†’ Don't disturb and add only trusted contacts to exceptions.
  • πŸ”„ Change of number: If spam does not stop, contact the operator for a new number.Some operators (for example, Tele2) offer a free change of number in case of proof of harassment by fraudsters.
  • πŸ›‘οΈ Two-factor authentication: Configure incoming call confirmation via SMS-code (available from MTS and Beeline) This does not block spam, but protects against fraudulent calls.

⚠️ Warning: If you decide to change your number, first check if important services (banks, social networks, e-wallets) are attached to it. Use the service "Move the number" from the operator, so that you do not lose the old number forever.

πŸ’‘

The most reliable way to block spam on Redmi 7 is a combination of built-in blacklist MIUI + Blocking application (e.g. Hiya) + USSD-This closes most of the loopholes for fraudsters.

FAQ: Frequent questions about room locks on Redmi 7

Can I block all unknown numbers at once?
V MIUI 10-12 There is no separate option to block all unknown numbers, but you can: USSD-operator command, for example, *130*1# Install the Truecaller app and enable the "Block Unknown Numbers" option in its settings, activate the "Do Not Disturb" mode with contact-only call permission. Please note that no method blocks calls with a swapped caller. ID (For example, when the name of the bank is displayed instead of the number).
Why do blocked numbers still ring?
This problem arises for three reasons: a substituted caller. ID: Fraudsters use technologies that show text rather than number (e.g. Sberbank). MIUI VoIP calls: If the call is via WhatsApp, Viber or other messengers, it must be blocked in the settings of the messenger itself. Reset settings: After the update MIUI If you reset to factory settings, the blacklist is cleared. Always back up the list of locked numbers. Solution: use a combination of the blocker (e.g. Hiya) + USSD-operator + manual locking in messengers.
How to block SMS-spam on Redmi 7?
For lockdown SMS-spam: Open the Messages app. Click the spam SMS β†’ Click Block (or Spam in some versions) MIUI). Use for mass blocking USSD-Operator commands (see table in section 2). Install the application SMS Block from Google Play for Extended Filtering. ⚠️ Attention: Lockdown SMS through MIUI It does not work for messages from service numbers (for example, notifications from a bank). SMS with the word stop to the sender number.
Can I recover a randomly deleted blacklist?
If you have cleared the blacklist in MIUI, It can't be restored by standard means, but there are two options: backup. MIUI: If you have been doing backup through Settings β†’ Additionally. β†’ Backup, restore the data from it. The blacklist is saved in the file. miui_backup. Call logs: Check the call log (Phone) β†’ Logs) and lock the numbers again. If there's a lot of calls, export the log to the file. CSV In the future, use blocker apps (like Truecaller) that sync the blacklist to the cloud.
How to block calls from foreign numbers?
MIUI It doesn't have a built-in geolocation lock feature, but you can: Use Hiya or Truecaller, which automatically blocks numbers from other countries that users have marked as spam. Add foreign number prefixes to the blacklist manually (e.g., blacklist them, +1 for the US, +91 for India, request the operator to activate the β€œBan on International Calls” service (free for some operators). ⚠️ Warning: Prefixed blocking may affect legitimate calls (e.g. from foreign colleagues or services).