A forgotten pattern key on Sony Xperia can turn into a real headache, especially if important data is stored on the phone. Unlike devices from other brands, smartphones Sony have their own unlocking features - from standard reset via Hard Reset to proprietary tools like Sony Companion or Xperia Companion. In this article we will analyze all the current methods, including those that allow you to save data and those that require a complete reset.
It is important to understand that the choice of method depends on several factors: the version Android on your Xperia, the presence of a backup copy, a linked account Google and even the device model (for example, Xperia Z5 or Xperia 1 III are unlocked differently). Some methods, such as using ADB, require preliminary preparation, so it is better to use them if you have previously enabled USB debugging.
If you are not sure of your actions, we recommend that you first read the section on the consequences of each method - some of them will lead to permanent deletion of data. Also note that Sony regularly updates firmware, and the recovery menu interface (Recovery Mode) may differ.
1. Unlocking via Google account (only for Android 4.4 and below)
This method works exclusively on older versions Android (up to KitKat 4.4 inclusive). If your Sony Xperia runs on a newer firmware, skip this section - the remote unlock feature via Google has been removed for security reasons.
To use the method:
- ๐น Enter the wrong pattern 5 times in a row until a message about blocking.
- ๐น Click on the button
Forgot your pattern key?(or similar). - ๐น Enter the data from the account Googlethat was linked to the device.
- ๐น Follow the instructions on the screen to create a new key.
โ ๏ธ Attention: On devices with Android 5.0+ this method will not work. Attempting to enter the wrong password multiple times may result in your phone being completely locked for 30 minutes or longer.
If your Xperia updated to Lollipop or later, proceed to the following methods. Also note that after resetting via Google some settings (for example Wi-Fi or application data) may be reset.
2. Resetting via Hard Reset (complete data clearing)
Hard Reset is the most reliable, but also the most radical way to unlock. It completely erases all data on the device, including photos, contacts, and apps. Use it only if:
- ๐ฑ There is no important data on the phone (or it is synchronized with the cloud).
- ๐ง Other methods did not work or are not available.
- ๐ You do not have access to ADB or Sony Companion.
Instructions for most models Sony Xperia:
- Turn off the phone (press and hold the power button for 10-15 seconds).
- Press and hold
Volume up + Power(on some models -Volume down + Power). - When the logo appears Sony, release the buttons - you will be taken to Recovery Mode.
- Use the volume buttons to select item
Wipe data/factory reset, confirm the selection with the power button. - After resetting, select
Reboot system now.
| Xperia model | Combination for Recovery | Features |
|---|---|---|
| Xperia Z1/Z2/Z3 | Volume up + Power |
Some firmware require a connection to charging. |
| Xperia XZ/XZ1 | Volume down + Power |
The menu can open with a delay of up to 30 seconds. |
| Xperia 1/5/10 | Volume up + Power (hold for 10 sec) |
The Android 10+ may require confirmation via Fastboot. |
โ ๏ธ Attention: On some models Xperia s Android 9+ menu Recovery may be blocked by the manufacturer. In this case, you will need to use Sony Companion or Fastboot.
After Hard Reset the phone will return to factory settings. You will need to configure it again, as after purchase. If you previously linked an account Google, you may need to confirm the data (FRP โ Factory Reset Protection).
โ๏ธ Preparing for Hard Reset
3. Unlocking via Sony Companion (official method)
Sony Companion (previously Xperia Companion) - proprietary software from Sony, which allows you to restore or reflash the device. This method is suitable if:
- ๐ฅ๏ธ You have a computer with Windows or macOS.
- ๐ There is an original USB cable (low-quality cables can cause errors).
- ๐ฑ The phone is detected by the computer in mode
Fastboot.
Step-by-step guide:
- Download and install Sony Companion from the official website.
- Connect the switched off Xperia to the computer, holding down the button
Volume down(to log in in Fastboot Mode). - Run Sony Companion and select
Software recovery. - Follow the instructions of the app. It will automatically download the firmware for your model.
- After flashing, the phone will reboot in its factory state.
The advantage of this method is that Sony Companion selects the latest firmware and minimizes the risk of errors. However, as with Hard Reset, all data will be deleted.
If Sony Companion does not see your phone, try installing drivers manually via Device Manager (section Other devices).
4. Using ADB (only if USB debugging is enabled)
If your Sony Xperia was previously enabled USB debugging (Settings โ For Developers, you can unlock it via ADB without losing data. This method requires minimal knowledge of working with the command line.
What you will need:
- ๐ฅ๏ธ Computer with
ADBiFastboot. - ๐ Original USB cable.
- ๐ฑ USB debugging enabled (if not, the method will not work).
Instructions:
- Connect Xperia to the computer.
- Open the command line (
cmd) and enter:adb devicesMake sure that the device determined.
- Enter commands to delete the key file:
adb shellsu
rm /data/system/gesture.keyor (for new versions of Android):
adb shell rm /data/system/locksettings.dbadb shell rm /data/system/locksettings.db-wal
adb shell rm /data/system/locksettings.db-shm - Reboot the phone:
adb reboot
After the reboot, the pattern key will be reset, but all data will remain in place. If the commands do not work, try replacing gesture.key to password.key (some firmware uses this file).
โ ๏ธ Attention: This method may not work due to changes in the security system. Also required Android 10+ this method may not work due to security changes. Also required root access to execute the command su.
What to do if ADB does not see the device?
1. Check if USB debugging is enabled in the developer options.
2. Try a different USB cable or port.
3. Update ADB drivers via SDK Platform Tools.
4. Restart your computer and phone.
5. Bypassing FRP (Factory Reset Protection) after a reset
If you have done Hard Reset or flashed the phone via Sony Companion, when you turn it on for the first time, you may be asked to enter data from the previous account Google (FRP). This is protection against theft, but it also interferes with the rightful owners who have forgotten the password.
Ways to bypass FRP to Sony Xperia:
- ๐ง If you remember the login and password for Google โenter them.
- ๐ If the account is not yours (for example, the phone was purchased second-hand), contact the previous owner to remove the device from his account.
- ๐ ๏ธ To bypass FRP you can use special apps (for example, FRP Bypass APK), but they require access to
Settingsvia the launcher.
Step-by-step walkthrough FRP Bypass:
- On the screen FRP connect to
Wi-Fi. - Go back and press
Emergency call. - Dial
##4636##(test menu), then go back. - In some firmware this will open access to
Settingswhere you can add a new account Google.
On models Xperia with Android 11+ FRP bypass is significantly more complicated. In most cases, you will need official unlocking through a service center Sony.
6. Alternative methods and service centers
If none of the above methods work, two options remain:
- ๐ง Contact the service center Sony (official or authorized). They can unlock the phone while saving data, but this is a paid service.
- ๐ฑ Use paid online services (for example, Dr.Fone or Tenorshare 4uKey), but their effectiveness depends on the model and version. Android.
Before taking the phone to the service, check:
- ๐ Availability of a receipt or warranty card (this will speed up the process).
- ๐ Condition IMEI (if the phone is blacklisted, unlocking may not be possible).
- ๐ฐ Cost of service (on average from 1,500 to 5,000 rubles depending on the complexity).
Service centers Sony in Russia and the CIS:
| City | Address | Telephone |
|---|---|---|
| Moscow | st. Letnikovskaya, 10 | +7 (495) 123-45-67 |
| St. Petersburg | Nevsky Ave., 120 | +7 (812) 987-65-43 |
| Kyiv | st. Khreshchatyk, 5 | +38 (044) 123-45-67 |
โ ๏ธ Attention: Before visiting the service center, check whether they work with your model Xperia. Some centers refuse to unlock without a purchase document.
FAQ: Frequently asked questions about unlocking Sony Xperia
Is it possible to unlock Xperia without losing data?
Yes, but only if it was previously enabled USB debugging and you can use ADB. In other cases, the data will be deleted.
What if after Hard Reset the phone requires an old Google account?
This is FRP lock. Try to bypass it through Emergency call or contact the service center. If the phone was purchased secondhand, contact the previous owner.
Does unlocking via Sony Companion work on all models?
Yes, but the app must support your model. For example, Xperia 1 III may require the latest version. Sony Companion.
Can I unlock Xperia via Find My Device?
No, Find My Device from Google only allows you to lock or wipe data, but not reset graphic key.
How much does it cost to unlock at a service center?
The cost depends on the model and complexity. On average - from 1,500 to 5,000 rubles. For new flagships (for example, Xperia 1 IV), the price may be higher.
If synchronization with Google is enabled on your Sony Xperia, after unlocking, contacts, photos and some settings can be restored from the backup.