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:
- Open Settings β Accounts.
- Delete the profiles of Google, Xiaomi, Mi Cloud and other services.
- 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:
- Open the Settings app (the gear icon on the home screen).
- Scroll down and select the System section.
- Click on Settings Reset (or Additional β Settings Reset in some versions of Android 11/12).
- Select Delete all data (reset to factory settings).
- When you request, enter PIN-code.
- 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:
- Turn off the phone (press the power button for 10 seconds if it freezes).
- 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:
- Select the Wipe Data (or Chinese) option.
- Then click on Wipe all data (or ).
- Confirm the action by selecting Confirm or.
- Once completed, go back to the main menu and select Reboot() to reboot.
What to do if you recover in Chinese?
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:
- Turn off the phone and put it into Fastboot mode, clamping Power + Volume Down before the screensaver with a rabbit in a hat-eared.
- Connect the Mi A7 to your computer via USB.
- 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.
- 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)
- On the Google account entry screen, click on the email field.
- In the keyboard that appears, press and hold @, then select Keyboard Settings.
- 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).
- Install the downloaded application and follow its instructions.
Method 3: Reset via Fastboot (requires an unlocked bootloader)
fastboot erase frpThis 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 cause | Decision |
|---|---|---|
| The phone will not turn on after resetting | Data cleanup interrupted or battery drained | Charge 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 damaged | Press 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 module | Check IMEI in *#06#. If missing, restore the file to the service via QCN-. |
| Phone asks for old PIN- code after reset | Some firmwares retain data encryption | Run the reset again via Fastboot with the fastboot format userdata command |
| The sensor does not work after resetting | Damaged driver touchscreen or incorrect firmware | Check 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.