Forgot your pattern key on Android and canโ€™t get into your phone? Do not rush to reset the settings to factory settings - this will delete all your data. There are several ways to unlock your device via emergency call, saving photos, contacts and applications. The method works on most smartphones Samsung, Xiaomi, Huawei and other brands, but requires precise execution of the instructions.

This method is based on a vulnerability in the emergency dial interface, which allows you to access system settings by bypassing the lock. Important: The method may not work on devices with Android 12+ and recent security updates, since manufacturers are actively closing such loopholes. If you have a modern flagship, you will most likely need alternative solutions.

Before you begin, check:

  • ๐Ÿ”‹ Battery charge level (must be at least 30%)
  • ๐Ÿ“ถ Availability of a SIM card (some methods require a call)
  • ๐Ÿ”„ Android version (the method works more stable on versions 8-11)
๐Ÿ“Š What brand of your smartphone?
Samsung
Xiaomi
Huawei
Honor
Other

Why the method with emergency call works

The emergency dial interface (Emergency Call) on Android was originally conceived as a tool for quick access to rescue services even on a locked device. However, in some versions of the OS, this screen has access to system functions, which allows you to bypass the graphic key.

Technically, the method exploits two points:

  1. The lack of complete isolation of the emergency mode from the main system
  2. The ability to call system dialogs through special commands

For example, on Samsung Galaxy before version One UI 3.1 it was possible to open the camera through the emergency dial, and from there access to the gallery and settings. On Xiaomi s MIUI 12 the combination with calling the accessibility menu worked.

๐Ÿ’ก

If the method described below does not work on your device, try first entering the wrong pattern 5 times - this sometimes activates alternative unlocking methods (for example, through a Google account).

Preparing the device before unlocking

Before trying to bypass the pattern, follow these steps:

โ˜‘๏ธ Preparing to unlock

Done: 0 / 5

Pay special attention IMEI โ€”this 15-digit code may be required if you have to prove ownership of the device to an operator or service center. You can find it out:

  • ๐Ÿ“„ On the phone box (usually on a sticker)
  • ๐Ÿ”ข Through the command *#06# (if the phone is unlocked by a friend)
  • ๐Ÿ’ป In the operatorโ€™s personal account (if the phone is linked to a number)

If the message โ€œForgot your pattern?โ€ is displayed on the lock screen, but the button is inactive, this means that:

โš ๏ธ Attention: The recovery function through a Google or Samsung account is disabled on the device. In this case, the emergency call method may be the only way to unlock without losing data.

Step-by-step guide: unlocking via emergency call

Follow these instructions exactly. If any step does not work, do not repeat it many times - go to alternative methods.

Step 1. On the lock screen, tap the button Emergency call (Emergency Call).

Step 2. In the dialing field, enter the combination:

##4636##

If nothing happens, try alternative codes:

  • ๐Ÿ“ฑ ##7594## (for Samsung)
  • ๐Ÿ“ฑ ##2664## (for Huawei)
  • ๐Ÿ“ฑ ##36446337## (universal)

Step 3. After entering the code, the testing menu should open. If instead, The message "Code is not supported" means:

  • ๐Ÿ”„ Your version of Android is too new
  • ๐Ÿ”ง The manufacturer has blocked this method
  • ๐Ÿ“ฑ The device has custom firmware

Step 4. In the testing menu, find the section Usage statistics or Use. Tap on it and hold for 3-5 seconds until the menu appears App info.

Step 5. In the information window that opens application, click on the three dots in the upper right corner and select Uninstall updates (Delete updates).

Step 6. Return to the lock screen. Now, instead of the pattern, a field for entering a PIN code should appear. Enter any 4-digit code (for example, 0000 or 1234).

What to do if the testing menu does not open?

If nothing happens after entering the code, try:

1. Enter the code slowly, with pauses between characters

2. Use the Google keyboard (if you have a third-party one)

3. Reboot the device and try again

4. Try entering the code in airplane mode (disabling all networks)

Alternative methods via emergency call

If the standard combination does not work, try these options:

Method Suitable devices Instructions
Through the camera Samsung (One UI up to 3.1), LG In an emergency call, swipe up for the camera โ†’ open gallery โ†’ settings
Via call Xiaomi, Redmi (MIUI 10-12) Call from another phone โ†’ during a call, open the notification menu
Via S Voice Samsung (until 2018) Double tap on Home โ†’ voice command "Open settings"
Via Bixby Samsung (with the Bixby button) Hold Bixby โ†’ say "Open settings" โ†’ confirm access

On Huawei i Honor sometimes the following trick works:

  1. In an emergency call, enter 112 (do not press call!)
  2. Swipe down to open the notification panel
  3. Tap on the "Settings" icon (gear)
  4. In the settings, disable the pattern in the security section
โš ๏ธ Attention: On devices with Android 13+ and recent security patches (released after October 2023), these methods most likely will not work. Manufacturers are actively closing such vulnerabilities in new updates.

What to do if the method did not work

If none of the methods helped, you have three alternatives:

1. Unlocking via Google/Samsung account

On the lock screen, after 5 incorrect attempts to enter the key, the โ€œForgot your pattern key?โ€ button should appear. Click it and follow the instructions to restore via:

  • ๐Ÿ”‘ Google Account (for most devices)
  • ๐Ÿ”‘ Samsung Account (for gadgets Samsung)
  • ๐Ÿ”‘ Huawei ID (for Huawei/Honor)

2. Using ADB (for advanced users)

If the phone was enabled USB Debugging, you can try to delete the key file via ADB:

adb shell

su

rm /data/system/gesture.key

reboot

After a reboot, the pattern key will be reset, but this method requires root access or previously activated debugging.

3. Contacting the service center

If critical data is stored on the device, it is better to contact the official service center of the brand. To confirm ownership you will need:

  • ๐Ÿ“„ Receipt or warranty card
  • ๐Ÿ†” Owner's passport
  • ๐Ÿ“ฑ Phone box with IMEI
๐Ÿ’ก

The emergency call method only works on devices without recent security updates. If the phone has recently been updated over the air, the likelihood of success is minimal.

How to protect data after unlocking

After successful unlocking, immediately follow these steps:

1. Create a backup one. copy

Transfer all important data to PC or cloud:

  • ๐Ÿ“ Photos and videos (folder DCIM)
  • ๐Ÿ“‡ Contacts (export to .vcf)
  • ๐Ÿ“ Messages (use SMS Backup & Restore)
  • ๐ŸŽต Music and documents (check the folder Download)

2. Set up alternative unlocking methods

In the security settings (Settings โ†’ Screen lock) add:

  • ๐Ÿ”ข PIN code (minimum 6 characters)
  • ๐Ÿ”‘ Fingerprint (if there is a scanner)
  • ๐Ÿ‘ค Face recognition (as an additional method)

3. Activate the Smart Lock function

Enable unlocking by:

  • ๐Ÿ  Trusted places (home, work)
  • ๐Ÿ”Š Trusted devices (smart watches, headphones)
  • ๐Ÿ‘ค Voice recognition (on some models)

4. Install an application for emergency access

Applications like Emergency Info or ICE (In Case of Emergency) allow you to:

  • ๐Ÿš‘ Show medical information on the locked screen
  • ๐Ÿ“ž Add emergency contacts call
  • ๐Ÿ”“ Create alternative unlocking methods

Common mistakes and how to avoid them

Many users make these mistakes when trying to unlock:

1. Repeatedly entering incorrect codes

After 10-15 unsuccessful attempts, the device may:

  • ๐Ÿ”’ Be blocked for 30 minutes - 24 hours
  • ๐Ÿ“ด Require mandatory linking to a Google account
  • ๐Ÿ”„ Automatically reset settings

2. Using dubious apps

apps like "Android Multi Tools" or "FRP Bypass" often:

  • ๐Ÿฆ  Contain viruses and spyware
  • ๐Ÿ’ป Requires connection to a PC with antivirus software disabled protection
  • ๐Ÿ“ต They can permanently block the device
  • 3. Attempts to flash a device without experience

    Independent firmware via Odin or Fastboot is fraught with:

    • ๐Ÿ”ฅ Loss of all data without the possibility of recovery
    • ๐Ÿ“ต Transformation phone in "brick"
    • ๐Ÿšซ Loss of warranty
    โš ๏ธ Attention: If you see the message "Custom binary blocked by FRP lock" on the screen, this means that factory reset protection is activated on the device (Factory Reset Protection). In this case, unlocking without losing data is almost impossible - you will need to enter the account data that was linked to the phone.

    FAQ: Answers to frequently asked questions

    Is it possible to unlock a phone if the Internet is turned off?

    Yes, the emergency call method works without connecting to the network. However, if recovery through a Google account is required, the Internet will be necessary. On some devices (Xiaomi, Realme) without a network, the testing menu may not open.

    Will this method work on an iPhone?

    No, on iPhone s iOS this method is not applicable. To unlock Apple devices, other methods are used (DFU mode, iTunes, iCloud), which almost always lead to data loss.

    What to do if some data is missing after unlocking?

    Check the folder Lost.Dir on the internal drive - sometimes files are moved there after system failures. Also try using data recovery apps (DiskDigger, Recuva), but do not write new files to the phone before recovery.

    Can you unlock your phone through the Find My Device service?

    The service Find My Device from Google only allows you to lock or erase data from the device, but not unlock it. It works similarly Find My Mobile from Samsung. These services will not help save data if the pattern is forgotten.

    Why did some functions stop working after unlocking?

    If you used the method of removing system application updates (step 5 in the instructions), some functions may not work correctly. To fix this, go to Settings โ†’ Applications โ†’ Three dots โ†’ Reset application settings. This will return the standard versions of system apps.