Xiaomi Redmi Note 7 is a popular device with flexible security settings, but open access to installing applications from unknown sources can be a tasty target for malware. APK-Hand-held files often become a security breach for most owners. If you notice unfamiliar apps suddenly appearing on your device or the system is warning you of potential threats, the first thing you should do is disable the ability to install from unverified sources.
In this article, we will not only break down the standard way to deactivate an option through settings, but also look at the nuances for different versions of MIUI, including hidden developer settings. We will focus on how this feature interacts with ADB rights and why disabling it may require additional steps on some firmware. If you use Redmi Note 7 as a working tool or as a store of sensitive data, this guide will help minimize the risks of virus infection and unauthorized access.
Why shut down the installation from unknown sources?
Installation function APK-It is designed for developers and advanced users who are testing applications outside of Google Play, but in everyday use it creates several critical vulnerabilities:
- ๐ก๏ธ Malware risk: Viruses, spyware, and adware modules are often spread through fake software. APK-files disguised as useful utilities.
- ๐ฑ System instability: Applications from unverified sources may conflict with official services MIUI, causing malfunction or overheating of the device.
- ๐ Data breach: Some APK requesting excessive permissions (e.g. access to the SMS geolocation, which leads to theft of personal information.
- โ ๏ธ Warranty Violation: Installation of modified firmware or pirated applications may cause denial of warranty service.
Kaspersky statistics for 2023 The year shows that more 30% Infections of mobile devices occur through manual installation APK. At the same time, Xiaomi is in the top-5 Brands whose users are most likely to face such threats due to open default security settings.
โ ๏ธ Note: Even if you are sure of the source APK-For example, popular games or applications are often repackaged with the addition of mining scripts or advertising. SDK.
Standard way to disable via MIUI settings
The easiest way to deactivate the installation from unknown sources is to use the built-in security menu. The instructions are valid for the Redmi Note 7 on all versions of MIUI (including MIUI 12/13/14):
- Open the Settings app (the gear icon on the home screen).
- Go to the Appendix section โ Application management.
- In the upper right corner, press three dots (โฎ) and select Special Access.
- Slip on the item Installation from unknown sources.
- In the application list, disable sliders for all programs that are allowed to install APK (e.g., Browser, File Manager, Google Chrome).
If there are no active sliders on the list, the function is already off globally, but it is worth checking the alternative path:
- Back to Settings โ Memory.
- Select Memory Settings (or additionally, depending on the version of MIUI).
- Check for Installation from unknown sources โ if you have one, deactivate it.
โ๏ธ Verification of the deactivation of the installation APK
Once disabled, the system will block APK installation attempts from any source other than Google Play. If you still want to install the application manually, you will have to temporarily enable permission for a particular program (for example, a file manager) and immediately after installation, disable it again.
Disconnecting through the developer settings (for advanced users)
On some versions of MIUI (especially custom firmware), the standard method may not work due to modified security settings, in which case you will need access to the developer's settings:
- Activate Developer Mode: Go to Settings โ About Phone and tap the MIUI Version 7 times until a notification appears You became a developer!.
- Return to the main Settings menu and open a new section โ For developers.
- Find the USB Debugging option and turn it on (this is temporary, to access hidden options).
- Scroll down to Security and check for the option to Disable Installation from Unknown Sources or Block Unsigned APKs.
โ ๏ธ Attention: Including Debugging by USB Opens additional attack vectors if the device is connected to an unverified computer!
If there is no explicit item in the developer menu to block APK, can be used ADB-A computer (a computer is required and USB-cable):
adb shell settings put global install_non_market_apps 0This command globally prohibits installation from unknown sources at the system level. To return the opportunity, replace 0 with 1.
- Download Platform Tools from the Android Developers website.
- Connect Redmi Note 7 to your PC and enter in the command line (in the adb folder):
- After execution, restart the smartphone.
๐ก
If the option is activated again after disabling via ADB, check for viruses using Malwarebytes or Dr.Web CureIt!. Some Trojans independently enable the APK installation to spread.
What to do if the option is not turned off?
In rare cases, users will find that the sliders in the MIUI settings are inactive or automatically return to the "On" position.
| Reason. | Signs. | Decision |
|---|---|---|
| Viral contamination | Spontaneous installation of applications, advertising in the status line | Scan the device with antivirus, reset to factory settings |
| Device policy (corporate phone) | Message "Managed by the organization" in settings | Contact the administrator or delete the job profile (Settings โ Accounts โ Delete the work profile) |
| Custom firmware | Non-standard settings menu, lack of OTA updates | Reflash the device to the official MIUI via Fastboot |
| System failure | Settings are reset after rebooting | Clear the recovery cache or perform a reset |
If the problem is related to a virus, try the following:
- Start Safe Mode (hold the power button) โ "Safe regime").
- Remove suspicious apps through Settings โ Apps.
- Clear the cache and data of Google Play Services and Google Play Services.
- Install an antivirus (such as Bitdefender) and scan the device.
How to get into safe mode if the phone is getting stuck?
If none of these methods work, the last resort is factory resets, and before that, you have to save important data, because all files will be deleted.
- Go to Settings โ About the phone โ Reset settings.
- Choose Delete all data and confirm the action.
- After restarting, set the device as new.
How to check if the installation from unknown sources is actually disabled?
To make sure that the settings are applied correctly, perform the test:
- Download any one. APK-file (for example, with APKPure) via browser.
- Try to open the file through File Manager or Downloads.
- If the message โInstallation is blockedโ or โInstallโ โ enable unknown sources โ the setting worked.
You can also use ADB to check your current status:
adb shell settings get global install_non_market_appsIf the command returns 0, the installation is blocked. 1 means the function is active.
adb shell dumpsys package | grep "INSTALL_NON_MARKET_APPS"This command will display a list of programs that are allowed to install APK, and if the list is empty, it's okay.
Frequent Mistakes and How to Avoid Them
When you turn off the installation from unknown sources, users often make mistakes that negate all security efforts.
- ๐ Incomplete shutdown: Forget to check all the apps in the Special Access list. For example, leaving permission for Telegram, you risk installing malicious APK, messenger-based.
- ๐ฒ Ignoring Updates: An Outdated Version MIUI It may contain vulnerabilities that circumvent restrictions. Always install the latest security patches.
- ๐ Public Wi-Fi Connection: In open networks, attackers can swap downloadable files. VPN or mobile internet for downloading APK.
- ๐๏ธ Uncleaned cache: Residual files from previously installed malicious applications can re-activate vulnerabilities.Cache regularly through Settings โ Memory. โ Cleanup.
On the Redmi Note 7 with firmware older than MIUI 11, disabling the APK installation through the settings may not work due to a bug in the system, in which case only resetting or manually editing the /system/build.prop file (requires root rights) will help.
โ ๏ธ Note: If you are using Redmi Note 7 as a business device with a MDM-solutions (e.g. MobileIron or VMware Workspace) ONE), The administrator can remotely enable the installation APK. Please clarify the security policy with IT-division.
FAQ: Answers to Frequent Questions
Can I temporarily turn on the APK installation and then turn it off again?
Why did the MIUI update change the settings?
How to disable APK installation on Redmi Note 7 without access to settings (for example, if the phone is locked)?
Will Google Play work if I disable the installation from unknown sources?
Can I turn off APK installation only for certain applications?
๐ก
Disabling your installation from unknown sources is not a 100% security guarantee, but always combine this method with antivirus, regular updates and careful file download behavior.