back to top

How do I install a factory image on Android phones?

Follow Us
placeholder text

Factory Image is the last and only way to restore any custom design to its original factory state. Generally speaking, factory state means how the phone looks from the factory to the final user. We have previously discussed adding custom ROMs and other customizations to our phones. I agree that it looks cool, but not everyone wants to return to their phone’s original state.

But the sad thing is that you do not need to figure out where to get your phone’s factory image. If you have it somewhere, what is the best way to install it? We started our research into this and found some ways to help you. As a result of our research, we found that most things are technical, which is why people need help. We will discuss everything from the beginning here, so do not worry.

How do I install a factory image on an Android phone?

Factory Image for Android is a firmware that comes as a preinstalled OEM version. Earlier, there needed to be more chance of getting such files. Nowadays, you can quickly get a factory image of your phone. Although factory images are unnecessary for every phone, they become necessary if they are rooted in a custom TWRP recovery and do not receive OTA updates. For this reason, here is a list of instructions for installing factory images on Android phones.

Pre-requirements

  • Make sure you have a factory image, not stock firmware.
  • Enable OEM unlock and USB debugging from Settings >> Developer (tap the build number 7 times).
  • Set up ADB and Fastboot here.

Now that you have reviewed the prerequisites ensure you meet them. Additionally, ensure a backup of your essential things; otherwise, everything will be wiped out after installing the factory image. So, when these things are done, let us install the factory image.

Note: Before step 8, if you find the “flash-all.bat” file, you should run it to flash all the files automatically. If you do not find this file, follow step 8 and repeat it for every file.

  1. Download the factory image for your phone.
  2. Move that factory image file to your PC.
  3. Now extract that ZIP file and open that folder.
  4. Connect your phone to your PC using a USB cable.
  5. Next, open a command prompt there.
  6. Enter the “adb reboot bootloader” command to enter bootloader mode.
  7. Check fastboot connectivity by entering “fastboot devices.”
  8. Enter the “fastboot flash <partition name> <file name>.<extension>” command to flash every file, including partitions and extensions.
  9. Lastly, reboot your phone and enjoy your brand-new phone.

Suppose your phone does not have a factory image that you can use. You can manually sideload the OTA updates. This can be tricky, but it will help you get the factory image experience even if your phone does not have such a file. So, if you want to install OTA files manually, follow the instructions below.

  1. Open SettingsSettings >> About PhonePhone >> BuildBuild NumberNumber on your Android.
  2. Then, restore the new boot image corresponding to the installed build number.
  3. Download the Fastboot-compatible factory image corresponding to your PC’s current Android build number. For example, it should be named <device codename>-<build number>. Number>. -factory-<hash value snippet>.zip.
  4. Using any archive manager, open the factory image and locate the image-<device codename>-<build number>.zip file.
  5. Then, extract the boot—img file from it.
  6. Now enable USB debugging and reboot your phone into bootloader mode.
  7. Flash the stock boot image and reboot your device.
  8. After that, head to settings >> system >> system updates >> check for updates.
  9. Now patch the boot image with Magisk and restart your phone.
  10. That is it, and you are on the latest OTA update.

Conclusively, a factory image is the easiest way to restore your phone’s standard format. However, not every phone has a dedicated factory image available for download. Users can also read this guide to learn how to manually install OTA files of this kind. Now, I hope you have the necessary information to install a factory image on Android. If you still have questions, please ask them in the section below.

Frequently Asked Questions

Q1. What is a factory image file?

Ans. A factory image is designed to replace the vendor’s “stock” firmware.

Q2. What is the factory image partition?

Ans. Some computer makers put a factory image or recovery partition on the hard disc of new computers.

Q3. Will Factory Image Restore delete my files?

Ans. It is not confirmed, but it has been deleted. The files are still live on your hard disc, so stay here until a piece of new information is overwritten.

Q4. Is it possible to recover photos after a factory reset?

Ans. Android phones have a built-in backup tool to recover your data after a factory reset.Â