Forgotten password on a smartphone Sony Xperia is a problem that even experienced users face. It is especially unpleasant when the phone is locked after several unsuccessful entry attempts, and access to important data - photos, contacts or work files - is at risk. Fortunately, there are several ways to unlock your device, and not all of them lead to complete loss of information.

In this article we will consider 5 working methods password resets on Sony Xperia - from the most gentle (with data preservation) to radical (full reset via Recovery Mode). We will pay special attention to the nuances for different versions of Android and series models Xperia (including Xperia 1, XZ3, XA2 and budget ones Xperia 10/5). We will also look at how to avoid blocking in the future and what to do if the phone requires account confirmation Google FRP after a reset.

Before you begin, please note: some methods require preliminary preparation (for example, USB debugging is turned on or a linked Sony account). If you are not sure of your actions, it is better to contact a service center - especially if critical data is stored on the phone.

1. Unlocking via Google account (for Android 4.4โ€“7.1)

This method works on Sony Xperia Android versions up to 7.1 Nougat inclusive. If you have entered the pattern key or PIN code incorrectly several times, the system will offer the option of unlocking through the account Googlelinked to the device.

Instructions:

  • ๐Ÿ”น After 5 unsuccessful attempts to enter the password, a button Forgot your pattern key? or Forgot pattern? (on English firmware). Click on it.
  • ๐Ÿ“ง Enter the email address Gmailthat was associated with the phone and its password. If you used two-factor authentication, you will need to enter the code from SMS or application Google Authenticator.
  • ๐Ÿ”“ After successful authorization, the system will prompt you to create a new pattern or PIN code. Come up with one and confirm.
โš ๏ธ Attention: Starting Android 8.0 OreoGoogle removed this feature due to security vulnerabilities. If your Xperia runs on a newer version of the OS, proceed to the following methods.

If the button Forgot your pattern key? does not appear, try entering the password incorrectly 2-3 more times. On some Sony firmware, this option is activated only after 7-10 unsuccessful attempts.

๐Ÿ’ก

If you do not remember the password for your Google account, try recovering it via your computer using the link accounts.google.com (will open in a new tab). Use a backup email or phone number linked to your account.

2. Password reset via Sony Companion (official software)

The Company Sony offers a proprietary utility Sony Companion (previously - PC Companion), which allows you to restore access to a locked phone. This method is suitable for most models Xperia, but requires pre-synchronization a device with a PC.

What you will need:

  • ๐Ÿ’ป Computer with Windows or macOS;
  • ๐Ÿ”Œ Original USB cable (preferably included);
  • ๐Ÿ“ฅ Installed app Sony Companion (you can download from the official website).

Step-by-step guide:

  1. Connect the locked one Xperia to the computer via USB.
  2. Run Sony Companion and wait until the app detects the device.
  3. In the main menu, select Phone recovery (Phone Software Repair).
  4. Follow the instructions of the wizard. The app will prompt you to reinstall the firmware, which will lead to a complete data reset.
  5. After the process is completed, the phone will reboot to its factory state.
โš ๏ธ Attention: This method erases all data on the phone, including photos, messages and installed applications. If Xperia the function Sony backupwas enabled, you can restore some of the data after unlocking.

Install Sony Companion on PC|Connect the original phone cable|Battery charge > 50%|Save phone IMEI (on the box or under the battery)|Disable antivirus (may block drivers)

-->

Sony Xperia model Sony Companion support Is bootloader unlocking required?
Xperia 1/5/10 (2019โ€“2022) Yes No
Xperia XZ3/XZ2 Yes No
Xperia XA2/XA1 Yes No
Xperia Z5/Z4 Yes (old software version required) Yes (for some firmware)

3. Hard Reset via Recovery Mode (full reset)

If the previous methods did not work, a radical solution remains - hard reset through recovery mode (Recovery Mode). This method is suitable for all Sony Xperia models, but has two significant disadvantages:

  • ๐Ÿงน Complete deletion of data from internal memory;
  • ๐Ÿ”’ Possible activation FRP locks (request for Google account after reset).

How to perform a Hard Reset:

  1. Turn off the phone by long pressing the power button.
  2. Hold and hold the combination of buttons:
    • For Xperia 1/5/10: Volume up + Power;
    • For Xperia XZ/XA: Volume down + Power;
    • For older models (Xperia Z3 and earlier): Volume Up + Volume Down + Power.
  • When the logo appears Sony, release the Power button, but continue to hold the Volume buttons until you see the menu Recovery.
  • Use the Volume buttons to select item Wipe data/factory reset and confirm the selection with the power button.
  • After resetting, select Reboot system now.
  • On some Sony Xperia models (for example, Xperia XZ2), the Recovery menu may not be available. In this case, use the combination Volume down + Connect the USB cable to the PC with the phone turned off - this will launch the mode Fastbootfrom where you can flash the stock firmware via Flashtool.

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

    If your Sony Xperia after Hard Reset requires you to enter the details of the Google account that was linked earlier, this is called Factory Reset Protection (FRP). It is impossible to bypass it legally - you will need to enter the exact email and password that were used on the phone before the reset. If you don't remember them, try:

    1. Restore access to your account via accounts.google.com.

    2. If the phone was purchased secondhand, contact the previous owner.

    3. Provide proof of purchase (receipt) to a Sony service center for unlocking.

    4. Unlocking via ADB (for advanced users)

    If your Sony Xperia was USB debugging is enabled before blocking, you can try resetting the password via Android Debug Bridge (ADB). This method saves data, but requires command line skills.

    What you will need:

    • ๐Ÿ’ป Computer with drivers installed Sony i ADB Tools;
    • ๐Ÿ”Œ USB cable;
    • โš™๏ธ Enabled USB debugging (setting For developers โ†’ USB debugging).

    Instructions:

    1. Connect the phone to PC.
    2. Open a command line (Windows) or terminal (macOS/Linux) and enter:
      adb shell
      

      su

      rm /data/system/gesture.key

      rm /data/system/password.key

      reboot

    3. After rebooting, the phone will be unlocked, but you may need to set a new password.
    โš ๏ธ Attention: On newer versions of Android (9.0 and above), this method may not work due to changes in the storage system passwords. Also, to execute commands su requires root accesswhich are rarely found on stock firmware Sony.

    Reset via Google|Hard Reset|Sony Companion|ADB|None of the above

    -->

    5. Bypassing the blocking through the Sony service center

    If all independent unlocking attempts are unsuccessful, all you have to do is contact official Sony service center. This is the most reliable, but also the most expensive method. Advantages:

    • ๐Ÿ”ง Guaranteed data preservation (in some cases);
    • ๐Ÿ“„ Official guarantee for work;
    • ๐Ÿ”’ Bypass FRP locks without loss of functionality.

    What you will need:

    • ๐Ÿ“„ Check or warranty card (to confirm ownership);
    • ๐Ÿ†” Passport (to identify the owner);
    • ๐Ÿ’ฐ Payment for the service (the cost varies from 1,500 to 5,000 rubles depending on the model).

    How to find a service center:

    1. Go to the official website Sony Mobile in the support section.
    2. Enter your phone model and select Find a service center.
    3. Check by phone whether they do password unlocking (not all centers provide this service).
    ๐Ÿ’ก

    Contacting a service center is the only legal way to unlock if FRP locking is activated on your phone and you don't remember your Google account details.

    How to avoid being blocked in the future

    To avoid the problem of a forgotten password again, follow these tips:

    • ๐Ÿ” Use password manager (for example, Google Password Manager or 1Password) for storing PIN codes;
    • ๐Ÿ“ฑ Set up fingerprint unlocking or face recognition (available on Xperia 1/5/10);
    • ๐Ÿ“ง Link to phone backup email and phone number for recovery;
    • ๐Ÿ”„ Regularly create backups via Settings โ†’ System โ†’ Backup;
    • ๐Ÿ”ง Enable USB debugging (in case unlocking via ADB is required).

    It is also useful to write down the PIN code or pattern in a safe place - for example, in an encrypted file on a cloud drive or in a notepad. Avoid obvious combinations (date of birth, sequences. like 1234), which are easy to pick up.

    FAQ: Frequently asked questions about unlocking Sony Xperia

    Is it possible to unlock Sony Xperia without losing data?

    Yes, but only if:

    • On phone is turned on USB debugging and has access to ADB;
    • Used Android 4.4โ€“7.1 (unlock via Google account);
    • You previously synchronized data with Sony Companion and there is a backup copy.

    In all other cases, resetting the password will lead to data deletion.

    What should you do if, after resetting, the phone asks for the old PIN code?

    This means that the reset was performed incorrectly, and the system still requires confirmation. Try:

    1. Run repeat Hard Reset;
    2. Flash the phone through Flashtool with complete cleaning;
    3. Contact the service center for flashing with removal FRP.
    Are the instructions suitable for Sony Xperia with custom firmware (for example, LineageOS)? summary

    No, for custom firmware (for example LineageOS, Resurrection Remix) the unlocking methods are different. In most cases it will help:

    • Reset via TWRP Recovery;
    • Deleting files password.key or gatekeeper.password.key manually;
    • Flashing via fastboot.

    Specific actions depend on the firmware and kernel version.

    Is it possible unlock Sony Xperia via Find My Device?

    No, the service Find My Device from Google only allows delete all data from the phone (analogous to Hard Reset), but not to reset the password without losing information. To do this:

    1. Go to the site google.com/android/find;
    2. Select blocked Xperia;
    3. Click Erase device.

    After this, the phone will be reset to factory settings, but all data will be deleted.

    Why After resetting, the network or Wi-Fi does not work on Xperia?

    This is a typical problem after Hard Reset or flashing. Solutions:

    • ๐Ÿ“ถ Reboot the phone;
    • ๐Ÿ”„ Manually select the network operator in Settings โ†’ Network and Internet โ†’ Mobile network;
    • ๐Ÿ”ง Reset network settings: Settings โ†’ System โ†’ Reset โ†’ Reset Wi-Fi, mobile network and Bluetooth settings;
    • ๐Ÿ“ฑ Update the firmware via Sony Companion.