An attempt to unlock a Huawei smartphone after you have forgotten the pattern password immediately results in an access error and a screen lock, leaving the owner without contacts, photos and banking applications.

Fortunately, the operating system architecture Android and proprietary shells EMUI or HarmonyOS provide for several legal scenarios for restoring access. The choice of a specific method depends on the software version, the presence of an account Google or Huawei ID, and whether USB debugging was enabled in advance. In this article we will look at all the current methods, from cloud services to hard reset.

Using the Find My Device service from Google

The most civilized and safest way to regain access to your phone is to use remote control via a Google account. This method will only work if a number of conditions are met: the device must be turned on, connected to the Internet (Wi-Fi or mobile data), and must be logged into your Google account.

Log in from your computer or other smartphone to the official website of the device management service. After authorization, the system will show a map with your location Huawei. In the control menu, select the “Erase Device” function. It is important to understand: this command will delete the pattern, but will also erase all data from the internal memory.

After sending the command, the phone will reboot and return to factory settings. The password will be removed automatically during the initial setup process. If there is no Internet on the locked phone, the command will be executed as soon as the device appears online.

⚠️ Attention: The remote wipe function does not work if the phone is completely turned off or is in airplane mode for more than 24 hours without connecting to the network.

💡

If you see the “Offline” status in the Google service, do not try send the command multiple times. Just leave a request in the queue - it will work automatically the first time a connection appears.

Unlocking via Huawei Find My Phone

Owners of brand smartphones Huawei have the advantage of their own security ecosystem. The service Huawei Find My Phone often turns out to be more effective than standard Android tools, especially on devices without Google services. For this method to work, you must have an account activated on your phone Huawei ID and the device search function has been enabled.

Go to the Huawei cloud services portal and log in with your credentials. In the management interface, select your device from the list. The “Erase data” option is available here, which is similar to the Google method, but works at the system level EMUI. Some older firmware versions had a feature to change the password without losing data, but in modern security updates it has been removed in favor of a full reset.

The data deletion process is initiated remotely. The smartphone will receive a signal, wipe the user partition and reboot. After this, you can set up your phone as new by coming up with a new, more memorable pattern.

📊 Which account is active on your phone?
Google only
Huawei ID only
Both accounts
There are no accounts

Resetting settings via Recovery Mode (Hard Reset)

If there is no access to the Internet or accounts are not linked, the only solution is a forced reset through the recovery menu (Recovery Mode). This method is universal and works on all models, from budget series to flagship series. To enter recovery mode, you must completely turn off the smartphone. Then hold down the key combination. On most Huawei models, this is holding down the volume up button and the power button at the same time. Hold them until the brand logo appears, then release the power button, but continue to hold the volume up until the menu appears. Y to flagship P And Mate.

To enter recovery mode, you must completely turn off your smartphone. Then hold down the key combination. On most Huawei models, this is holding down the volume up button and the power button at the same time. Hold them until the brand logo appears, then release the Power button, but continue to hold the volume up until the menu appears.

In the Recovery menu, navigation is carried out using the volume buttons (up/down), and the selection is confirmed with the power button. You need to find the item Wipe data/factory reset. Confirm the action by selecting Yes or Factory data reset. The system will warn you that the process is irreversible.

☑️ Algorithm of actions in Recovery

Done: 0 / 4

After the process is completed, select the option Reboot system now. The phone will reboot and the lock will be removed. Remember that this method deletes absolutely all files not saved in the cloud.

⚠️ Attention: On devices with Android 5.1 and higher, FRP (Factory Reset Protection) protection may work after a reset. You will need to enter the login and password for the Google account that was synchronized with the phone before blocking.

Unlocking features on different versions of EMUI and HarmonyOS

The interface and logic of the blocking system vary significantly depending on the version of the shell. Users of older devices based on EMUI 4.x - 8.x could encounter the possibility of resetting the password after five unsuccessful entry attempts, after which the “Forgot the key?” button appeared. In modern versions, including EMUI 10, 11, 12 and HarmonyOS 2.0/3.0, this function is completely removed for security reasons.

On new devices with processors Kirin and recent security updates, the data encryption algorithm is tied to the pattern key. This means that without entering the correct key, the data physically cannot be decrypted, even if the memory is removed. Therefore, the only correct way is to delete the key along with the data.

It is also worth considering regional features. Global firmware versions (Global ROM) strictly require Google services for unlocking, while Chinese versions (CN ROM) can rely solely on the Huawei ecosystem. If you bought a gray imported phone, recovery methods may differ from the official instructions for your region.

Shell version Password reset method Risk of data loss Account requirement
EMUI 4.x - 5.x Button "Forgot the key" / Reset Low (save possible) Google account
EMUI 8.x - 9.x Find My Device / Recovery High (full wipe) Google or Huawei ID
EMUI 10 - 12 Recovery Mode / Cloud 100% data loss Required for FRP
HarmonyOS 2.0+ Recovery Mode / Cloud 100% data loss Huawei ID preferred
Why did the “Forgot Password” button disappear?

Starting with Android 6.0, Google’s security policy has become more stringent. Full disk encryption (FDE) and later file encryption (FBE) made it impossible to reset the password without losing the encryption keys. Data becomes unreadable garbage without the original password.

Unlocking via computer and ADB

For advanced users, there is an unlocking method via USB debugging (ADB). This method allows you to delete the file storing the graphic key without losing user data. However, it only works in one case: if the function USB debugging was enabled in the developer menu before you forgot the password.

Connect your smartphone to a computer with ADB drivers installed. Open a command prompt or terminal in the platform tools folder. Enter the command to obtain superuser rights and delete the key file:

adb shell

rm /data/system/gesture.key

reboot

After executing the command and rebooting the phone, you can enter any pattern key, and it will be accepted by the system, or the screen will be unlocked by swiping. If an error appears when entering the command device unauthorized, it means that access from the computer is denied, and this method will not work.

It is worth noting that on modern versions of Android with enhanced protection, this file can be blocked at the kernel level, and even having root access does not always guarantee success. However, this is the only chance to save photos and documents without formatting.

⚠️ Attention: Do not try to use third-party password cracking apps that promise to “save data.” In 99% of cases, this is a scam that installs malware on your computer or simply requires payment for non-working functionality.

💡

The ADB method is effective only if USB debugging is enabled in advance. If you have not enabled this option before, this method is useless.

Frequently asked questions (FAQ)

Will my photos and contacts be saved after unlocking?

Unfortunately, no. All modern methods for removing a pattern key on Huawei, including resetting via Recovery and cloud services, imply complete deletion of user data (Wipe Data). The only exception is the ADB method, but it requires preliminary configuration.

What to do if the phone asks for a Google account after a reset (FRP Lock)?

This is protection against theft. You need to enter the login and password for the Google account that was last synchronized with this device. If you do not remember this data, you will need to contact the service center with a purchase receipt to prove ownership.

Is it possible to unlock Huawei without losing data through the service center?

Official Huawei service centers, as a rule, do not remove screen locks while saving data due to privacy and encryption policies. They will offer the same flashing or resetting procedure that you can do yourself.

How to avoid this problem in the future?

Set up a biometric unlock (fingerprint or facial recognition) in addition to the pattern. Also regularly back up your data in Huawei Cloud or Google Photos so that in case of a reset you don’t lose important information.

Will calling a locked phone help?

On older versions of Android there was a bug that allows you to get into the settings through the call menu. This trick does not work on modern Huaweis with updated security. The call will only help you find the phone by sound, but will not remove the lock.