How to return factory settings to Xiaomi 7A: 3 working ways (including a locked phone)

Resetting the Xiaomi Mi A7 (or Xiaomi 7A, as it is sometimes mistakenly called) to factory settings is a procedure that may be needed in a variety of situations. Perhaps your smartphone started to brake after the Android 12 update, or you are preparing the device for sale, or faced with endless boot after a failed firmware. Unlike the models on MIUI, the Mi A7 runs on β€œclean” Android One, which changes the reset process a little – especially if it is about unlocking through Fastboot.

Many users confuse the Xiaomi Mi A7 (model 2019) with the budget Redmi 7A series, but these are fundamentally different devices: the first refers to the Android One line with guaranteed updates, and the second – to the MIUI ecosystem. This article is dedicated to the Mi A7 (codename lavender), and all instructions are checked on the current versions of firmware 2023-2026. If you have a different model, check its name before starting the procedure.

Before you start resetting, it’s important to understand that all data on your phone will be deleted, including photos, messages and installed apps. Even if you plan to restore the backup later, some settings (such as linking a Google or Xiaomi account) may require re-authorization, so the first step is to save important information.

In this article, we will discuss:

  • πŸ”„ Reset via the settings menu (if the phone turns on and responds to touch)
  • πŸ› οΈ Hard Reset via Recovery (if the smartphone is locked or not booting)
  • πŸ’» Fastboot reset (for power users if other methods don't work)
  • ⚠️ What to do if your phone requires an old Google account after a reset (FRP)

If you're not sure about your abilities, you'd better go to the service center, but most of the problems with the Mi A7 are solved by yourself, if you follow the instructions carefully.

1.Reset preparation: what to do before the procedure begins

Even if your Xiaomi Mi A7 is not running smoothly, there are a few critical steps to take before resetting, and ignoring this step can result in data loss or locking the device after recovery.

First, check the battery. Make sure the charge level is at least 50%. If the phone runs out during reset (especially through the Fastboot), it can lead to a "brick" (unable to turn on).

Second, back up. On the Mi A7, you can do this in a number of ways:

  • ☁️ Through Google Drive: go to Settings β†’ System β†’ Backup and enable copying of application, contacts and Wi-Fi data.
  • πŸ’Ύ Locally to your computer: connect your phone to USB in file transfer mode and copy the DCIM (photo), Downloads (downloads) and WhatsApp (if you use the messenger).
  • πŸ”„ Using the Mi PC Suite: Xiaomi’s official software allows you to create a full backup, but it doesn’t work stable on Android 12+.

The third thing is to make sure you remember the data from the Google account associated with the phone. After resetting, the Mi A7 will require you to enter the username and password from the last profile you used (FRP protection). If you forget the password, restore it in advance.

Battery level of charge β‰₯50%|Created backup of contacts and photos|Copyed important files on the PC|Data from Google Account is stored|Related: Xiaomi Account Linking Disabled (if any)-->

If you plan to sell or transfer your phone to another person, log out of all accounts in advance:

  1. Open Settings β†’ Accounts.
  2. Delete the profiles of Google, Xiaomi, Mi Cloud and other services.
  3. Turn off the Find the device function in the security settings.

Finally, if your Mi A7 was unlocked through a bootloader (for example, to install custom firmware), note that after resetting via Fastboot, the lock may return.

2. Method 1: Reset via the settings menu (if the phone is working)

This is the easiest and safest method that is suitable if the Xiaomi Mi A7 is turned on, touch-responsive and you have access to the menu.The procedure takes no more than 5-10 minutes.

Step instructions:

  1. Open the Settings app (the gear icon on the home screen).
  2. Scroll down and select the System section.
  3. Click on Settings Reset (or Additional β†’ Settings Reset in some versions of Android 11/12).
  4. Select Delete all data (reset to factory settings).
  5. When you request, enter PIN-code.
  6. Confirm the action by clicking Reset the phone or Delete everything.

The phone will automatically restart and start the cleanup process, the Xiaomi logo and progress indicator will appear on the screen, do not interrupt the process, this can damage system files. Usually, the reset takes 3 to 15 minutes depending on the amount of data.

Once completed, the Mi A7 will reboot to β€œout of the box” state, and you will only have to go through the initial setting: select a language, connect to Wi-Fi, and log in to your Google account.

πŸ’‘

If after resetting the phone hangs on the Xiaomi logo for a long time (more than 20 minutes), try forcibly rebooting it by holding the power button for 10-15 seconds. If this does not help, go to the reset method through Recovery.

This method is suitable in 90% of cases, but there are exceptions:

  • πŸ”’ The phone is locked with a pattern lock or PIN- code that you have forgotten.
  • 🐒 The smartphone is very slow and does not respond to touch.
  • πŸ”„ After a failed update, the system does not boot beyond the logo.

If any of these items are about you, read the next section.

Method 2: Hard Reset via Recovery Mode (for locked phone)

If the Xiaomi Mi A7 is not turned on, locked or stuck on the logo, the only way to bring it back to life is to reset it through Recovery mode.This method works even if you forget your password or your phone is unresponsive to the screen.

To log into Recovery on the Mi A7, do the following:

  1. Turn off the phone (press the power button for 10 seconds if it freezes).
  2. Press and hold at the same time: Power button Volume Up

Xiaomi

Recovery

In the Recovery menu, you can control volume buttons (Volume Up/Down for navigation) and power buttons (Power for confirmation of selection). On the Mi A7, the Recovery interface can be in English or Chinese - focus on icons.

Follow the instructions:

  1. Select the Wipe Data (or Chinese) option.
  2. Then click on Wipe all data (or ).
  3. Confirm the action by selecting Confirm or.
  4. Once completed, go back to the main menu and select Reboot() to reboot.
What to do if you recover in Chinese?
If the menu is displayed in Chinese, focus on the location of items: 1. The first item on top is (Reboot) 2. The second is (Wipe data) 3. The third is MIAssistant (Connect to MIAssistant) Select the second item, then the first subitem in the next menu for a complete reset.

Once you reboot, the phone will return to factory settings. If you see a request to enter a Google account (FRP protection), use the data from the last associated profile. If you can't remember the password, read the section on FRP bypass below.

⚠️ Warning: Some Mi A7 firmwares may have a "No command" error with the Android robot lying down after resetting via Recovery, in which case press the Power + Volume Up for 10 seconds to restart the phone to normal Recovery mode.

Method 3: Reset via Fastboot (for power users)

This method requires a computer and minimal knowledge of working with ADB and Fastboot.

  • πŸ”§ Recovery Mode is unavailable or damaged.
  • πŸ“± The phone does not respond to any combination of buttons.
  • πŸ”„ You need to reflash the device after a failed update.

First, prepare everything you need:

  • πŸ’» Windows computer 10/11 or macOS/Linux.
  • πŸ”Œ Cable USB Type-C (preferably original).
  • πŸ› οΈ Installed Xiaomi drivers and tools ADB/Fastboot.
  • πŸ“„ Firmware for Mi A7 (codename lavender) from the official Xiaomi website.

Steps to reset via Fastboot:

  1. Turn off the phone and put it into Fastboot mode, clamping Power + Volume Down before the screensaver with a rabbit in a hat-eared.
  2. Connect the Mi A7 to your computer via USB.
  3. Open the command prompt (CMD in Windows or Terminal in macOS/Linux) and check the connection command: fastboot devices If the device is determined (serial number appears), you can continue.
  4. Run the full reset command: fastboot erase userdata fastboot erase cache fastboot reboot

If the phone doesn't turn on after these commands or if it gives an error "Invalid sparse file format at header", you will need to completely flash through Fastboot using the official firmware image.

fastboot flash boot boot.img


fastboot flash system system.img




fastboot flash vendor vendor.img




fastboot reboot

⚠️ Warning: The wrong commands in Fastboot can turn your phone into a brick. If you're not sure what you're doing, contact the service center. Be especially careful with the boot and system sections.

Yeah, I dropped it a few times.|Yes, but only according to the instructions.|No, I'm afraid to break something.|What's Fastboot?-->

5.How to bypass FRP (Google Account Lock) after a reset

If after resetting Xiaomi Mi A7 Requires you to enter data from your previous Google account (Factory Reset Protection, FRP), And you don't remember them, that's a problem. FRP It is complicated, but there are several working methods.

Method 1: Restore access to your account

  • πŸ”‘ Go to the Google Account Recovery page.
  • πŸ“§ Enter the last known email and follow the password recovery instructions.
  • πŸ“± If a backup email or phone is tied, use them to confirm.

Method 2: Bypassing settings (does not work on all firmware)

  1. On the Google account entry screen, click on the email field.
  2. In the keyboard that appears, press and hold @, then select Keyboard Settings.
  3. In the keyboard settings, find Help or Help and try to download the APK- file through your browser to bypass FRP (for example, FRP Bypass APK).
  4. Install the downloaded application and follow its instructions.

Method 3: Reset via Fastboot (requires an unlocked bootloader)

fastboot erase frp

This command deletes FRP data, but only works if the bootloader is unlocked.

⚠️ Warning: Bypassing FRP may violate Google's terms of use. On newer versions of Android 12+, most methods have stopped working -- the only reliable way is to recall your account data.

6. Frequent errors and their solutions

When you reset the Xiaomi Mi A7, users face typical problems, and we have collected the most common ways to solve them:

Mistake.Possible causeDecision
The phone will not turn on after resettingData cleanup interrupted or battery drainedCharge your phone for 30 to 60 minutes, then try to turn on with a Power + Volume Up pinch for 15 seconds.
There is a β€œNo command” error with the Android robot.Recovery partition or incorrect button combination is damagedPress Power + Volume Up for 10 seconds to reboot in normal Recovery
After reset, there is no network (no SIM catches)Resetting the IMEI settings or communication moduleCheck IMEI in *#06#. If missing, restore the file to the service via QCN-.
Phone asks for old PIN- code after resetSome firmwares retain data encryptionRun the reset again via Fastboot with the fastboot format userdata command
The sensor does not work after resettingDamaged driver touchscreen or incorrect firmwareCheck the phone with the official firmware via the Mi Flash Tool

If your problem is not described in the table, try:

  • πŸ” Search for a solution on the XDA-Developers forums (section Xiaomi Mi A7).
  • πŸ“ž Contact the official Xiaomi service (if the phone is warranty).

πŸ’‘

If after the reset, the phone began to work slower than before the procedure, check the animation settings in Settings β†’ For developers (activated by taps on the build number in About Phone). Disable or reduce the animation scale to speed up the interface.

7.What to do after resetting: initial setup

After the successful reset of the Xiaomi Mi A7, you will have to go through the initial setup.

Step 1: Choosing a language and region

  • 🌍 Select Russian (or other language you want) and Russia (or your country).
  • ⚠️ If you select the wrong region (e.g. China), some Google services may not work properly.

Step 2: Connecting to the network

  • πŸ“Ά Connect to Wi-Fi – this will speed up downloading updates and restoring backup.
  • 🚫 Do not connect to mobile networks (3G/4G) without a SIM- card β€” this may cause activation errors.

Step 3: Signing in to your Google account

  • πŸ”‘ Enter the account that was linked to the phone before the reset (if required FRP).
  • ☁️ If a backup was created, the system will prompt you to restore the data – select the desired copy.

Step 4: Set up security

  • πŸ”’ Install a new PIN- code or pattern lock (do not use simple combinations like 1234).
  • πŸ‘† Turn on Find the device in Google settings – this will help in case of losing the phone.

Step 5: Optimizing the work

  • πŸ”„ Update the firmware to the latest version in Settings β†’ System system β†’ Updating the system.
  • πŸš€ Disable unnecessary apps in Settings β†’ Applications to save battery life.

If you sell a phone, don't restore your backup or log in to your accounts. Just complete the setup, select Skip at all stages, and pass the device to the new owner.

FAQ: Answers to Frequent Questions

❓ Can you return factory settings to Xiaomi Mi A7 without losing data?
No, a full reset always deletes all user data.However, you can back up through Google Drive or manually copy files to your computer before reset. Partial reset (e.g., network settings only) is available from the Settings menu β†’ System β†’ Settings reset, but it doesn't solve most problems.
❓ Phone after reset asks for password from old Xiaomi account?
This means that the phone was tied to Mi Account. If you don't remember the password: Go to the Mi Account site and restore access. If the phone is locked, try resetting it via Fastboot with the fastboot erase frp command (requires an unlocked bootloader).
❓ Why does Xiaomi Mi A7 not see SIM- card after resetting?
This may be due to: Damage to the modem partition when reset, improper firmware (for example, if you have stitched the version for another region), physical malfunction of the slot. SIM-Try: Reboot the phone. Insert it. SIM-card to another slot (if any) Update the firmware to the latest version. Reset the network settings to Settings β†’ System system β†’ Resetting settings β†’ Reset your network settings. If nothing works, contact the service.
❓ How to reset the Xiaomi Mi A7 if it doesn't respond to buttons?
If the phone doesn't respond to Power or Volume, try: Connect to charge for 30 to 60 minutes β€” maybe the battery is completely drained; pinch Power + Volume Down for 20 to 30 seconds to force reboot. If the screen is black, connect the phone to your computer and check if it's detected in Device Manager (Windows) or through the lsusb command (Linux/macOS). If so, try resetting via Fastboot. If the phone doesn't show signs of life, maybe the power charge or battery is faulty.
❓ Can I roll back the firmware on Xiaomi Mi A7 after resetting?
Yes, but with reservations: βœ… On Android One (as in Mi A7), a rollback is only possible via Fastboot with full flashing. ⚠️ A rollback to an older version can lead to problems with Google Services or data loss. 🚫 It is not recommended to roll back on versions older than Android 10 - this can disrupt the communication module. For rollback: Download the desired version of the firmware from the official website. Unpack the archive and swipe through Fastboot with the fastboot team all.