How to remove the certificate from the phone Xiaomi: step-by-step instructions

Modern Xiaomi smartphones running on Android have an advanced data protection system that periodically requires user attention. Sometimes, third-party or outdated digital signatures can enter the device's storage, which cause errors when running banking applications or working with corporate profiles. Deleting such a certificate is often the only way to restore the normal operation of the gadget and ensure the proper level of privacy.

The process of cleaning the credential storage does not require root rights or complex technical knowledge, but it requires careful attention. In this article, we will discuss in detail where exactly the security settings are hidden in the shell of MIUI or HyperOS and how to correctly perform the reset without risking system files.

Before you start taking action, you need to understand the difference between system and user certificates. System certificates are responsible for operating system operation and deleting them can lead to instability of the smartphone. User certificates are installed by you or applications (for example, VPNs, antiviruses, corporate clients) and they are the ones we will delete.

Why to remove certificates on Xiaomi

The main reason why security may need to be tampered with is the appearance of alerts from the system or banking applications. Many financial institutions use advanced environment verification protocols, and the presence of suspicious or self-signed certificates can be considered a sign of hacking, in which case the application will simply refuse to run.

Another common scenario is the use of VPN-When an application is removed, it can be stored in memory as a certificate, creating potential vulnerabilities or conflicts with new network settings.

⚠️ Note: Before deleting, make sure you do not disable a critical certificate that is required for corporate mail or specific work software. IT-department.

Cleaning the storage can also help address issues of misidentified date and time or inability to connect to certain enterprise-authorized Wi-Fi networks, and the digital footprint of older connections sometimes prevents a new secure connection from being established.

📊 What problem are you facing?
The banking application is not working.
Error of Wi-Fi connection
Safety risk warning
I just want to clean my phone.

Search for the Security Settings section

The interface of the MIUI shell and the new HyperOS may vary slightly depending on the Android version, but the logic of the menu layout remains the same. You need to get into deep system settings that are hidden from the eyes of the average user. The standard path usually lies through the general settings of the device.

Open the settings menu and scroll down to the section that might be called Passwords and Security, Privacy Protection, or just Security. In some versions of the firmware, the option you want is inside Advanced Settings. Look for the encryption and credentials subsection.

💡

Use Settings Search: Type the word “certificate” or “credential” in the search bar from the top of the main settings menu to instantly jump to the desired item.

If you’re using an older version of Android (like Android 10 or lower), the path can look like Settings → Security → Emergency Call and SOS (sometimes it hides settings) or Settings → System → Language and input. However, on modern Xiaomi with Android 11-14, the path is standardized and is in the privacy block.

It's important not to confuse this section with the Wi-Fi certificate settings that are in the network connection menu, but we need the trusted credentials management section of the system where the root certificates are stored.

Instructions for removing user certificates

Once you have found the section you want (often called “Privacy” or “Special Features” in older versions, but look for “Certificates” or “Accounts”), you will see a list of established profiles, and you will see all trusted roots that have been added by the user.

To delete a particular certificate, click on the name in the list, a detailed window will open with information about the publisher and expiration date, at the bottom of the screen or menu (three dots in the corner) will be a button "Delete" or "Revoke." Confirm the action by entering PIN-screen unlock code or fingerprint.

☑️ Deletion algorithm

Done: 0 / 4

If you want to delete all user certificates at once, look for the "Clean Storage" or "Delete all user certificates" buttons, and the system will warn you that this action is irreversible and may affect the operation of some applications.

⚠️ Warning: After cleaning the storage, you may need to reconfigure your corporate mail or re-authorize in applications that use certificates to log in.

The deletion process takes only a few seconds. Once the operation is complete, it is recommended to restart the device so that the changes take effect and system services update the security cache.

Working with Superuser Rights and ADB

In rare cases, when a certificate is not deleted through a standard menu or hidden by the system (such as malware), more advanced methods may be needed, one of which is using USB debugging and the Android Debug Bridge (ADB) tool on a computer.

To do this, activate Developer Mode. Go to Settings → About Phone and press 7 times on the build number (MIUI Version). Then, in the Developer Menu, turn on "Debugging on USB." Once you connect the phone to your PC, you can use commands to manage certificates, although the standard Android interface is usually more efficient.

adb shell pm revoke com.android.certinstaller android.permission.INSTALL_CERTIFICATES

This command (example, syntax may vary) can revoke the rights of the certificate installer, which will prevent them from being re-installed automatically, but for simple deletion of the file, it is usually enough to find the menu described above.

What to do if the removal button is inactive?
If the delete button is gray, then the certificate is system, and its removal is possible only with root rights and rewiring the system partition, which is not recommended for ordinary users and can lead to loss of warranty.

Using third-party certificate management apps on Xiaomi is often limited by the system’s own security policies, and it’s better to rely on built-in tools as they have the necessary privileges to modify the key store.

Impact on Applications and Network

After deleting certificates, some applications may be unexpected, such as banking programs that used to be wary of security, now have to work correctly, but parental control apps or enterprise clients (MDMs) may require re-installing the profile.

Network connectivity can also change, and if you used specific certificates to connect to enterprise Wi-Fi (WPA2-Enterprise), the connection will stop working until you download and install a new certificate from the network administrator.

Type of applicationReaction to removalAction required
Banking applicationsImprovement of work, elimination of errorsNo.
VPN-clienteleConnection break, connection errorReinstallation of the annex
Corporate mailRequirement for reauthorizationRe-entering the password
AntivirusesReduced protectionScanning setup

Special attention should be paid to remote access applications (e.g. TeamViewer, AnyDesk) if they used certificates to encrypt the session.

💡

Deleting user certificates is a safe operation that returns the system to the original trust state recommended by the manufacturer.

Frequent problems and their solution

Users often find themselves in a situation where the certificate reappears after deletion, which is typical for deep-system-enabled applications or malware, in which case you need to find and remove the application itself that regenerates the certificate.

Another problem is that you can't go to the certificate menu. MIUI This item can be hidden if you don't have a lock screen installed. PIN-code or pattern lock to allow access to account management.

⚠️ Warning: Never download certificates from unverified sources on the Internet.Installing an unknown root certificate allows attackers to intercept your traffic, even if sites are using the site. HTTPS.

If after all the manipulations the phone started to work incorrectly, you can always reset the settings to the factory, this is guaranteed to delete all user certificates and return the device to the state of "out of the box", but require backup data.

Remember that checking your trusted certificate list regularly is a good digital hygiene practice: remove anything you don't know or that's left over from long-deleted programs.

Questions and answers

Can I remove system certificates on Xiaomi?
You can't delete system certificates without root rights, and trying to do it through ADB without superuser rights will not work because the partition is protected from writing, and interfering with system certificates can make the phone unusable.
Why does the bank application still write about an error after deleting the certificate?
The error may not be just about certificates, but it may be about checking if USB debugging is enabled, whether it's about modified firmware or root rights, and it may be on the bank's side.
Is it safe to use certificate cleaning apps?
Using third-party apps for this purpose carries risks: they may ask for unnecessary permissions, it is better to use the built-in Android functionality, which is in the security settings.
What happens if you delete all user certificates?
Nothing critical will happen. You just reset the list of trusted user keys, and the applications that require them will ask you to re-install them the next time you run them.