How to Extract Oppo or Realme Firmware .OZIP File To Zip File
In this tutorial, we will show you the steps to extract fastboot images from .ozip file for Realme/Oppo devices. Earlier most of the OEMs used to upload their...
Syed Sadique Hassan
Last updated on July 15, 2022
Syed Sadique Hassan
Author
Did his MBA from Delhi but then something about the Android ecosystem intrigued him so much that he made Tech Blogging his permanent job. And now there's no looking back.
In this tutorial, we will show you the steps to extract fastboot images from .ozip file for Realme/Oppo devices. Earlier most of the OEMs used to upload their device’s firmware file in a simple compressed format. The user just had to extract the content of that file like they do for any other ZIP file. However, things have now changed around the Android ecosystem. While some OEMs upload the firmware in .bin format, others like Oppo and Realme take the OZIP route.
Talking about the latter, the extraction of these files requires Python, and only then you could get hold of the desired firmware files. This will then allow you to use the system and vendor dump files, use the stock boot.img file for rooting purposes, and carry out other related tasks. So with that in mind, here are the required steps to extract fastboot images from the .ozip file for Realme and Oppo devices. Follow along for the complete instructions.
How to Extract Fastboot Images from .ozip File | Guide For Oppo/Realme
Before we list out the steps, there are a few tools and software that needs to be installed onto your PC. So head over to the below requirements section and make sure to grab the required files.
Requirements:
First, you need to download the latest Python software on your PC. Download and just follow the onscreen instructions to install it.
Next, download the OZIP DecryptTool from the github link. To download, tap on the code option and click the download zip button to start the download.
To extract the Realme firmware for your device, make sure you download the right firmware for your device model.
The usage of each of these tools will become perfectly clear as and when you use them, instructions for which is given below. On that note, here are the steps to extract fastboot images from .ozip file for Realme/Oppo devices.
First and foremost, to do all this, you need the application called Python on your computer. Go into the Python website and download the latest version.
Once you have downloaded it, now install it via double-tapping on the EXE from the downloaded folder.
Tap the Install Now button to install it.
It will start the installation on your computer.
Once it is done, you will see the setup was the successful screen. You can now close the window.
Now tap on the URL location and type CMD and hit enter, this will launch the command prompt window.
Step 4: Installing Pycryptodome and Docopt
If you have opened the command prompt screen, then now we need to install the Pycryptodome and Docopt by typing the following command. You can copy-paste the command to your cmd window.
First, let’s install the Pycryptodome using the command
python -m pip install pycryptodome
If it shows a successfully installed screen, you can now enter the next command to install the docopt:
python -m pip install docopt
After successfully installing both, you can follow the next step to extract the Realme or Oppo Ozip stock ROM file.
Step 4: Installing Extract OZIP Firmware:
To convert the Realme OZIP firmware into zip file, you need to enter the command given below. Before that, make sure you move the firmware ozip file to the python folder location. Once you move, try to rename the ozip file name to something short like realme.ozip or firmware.ozip. If you have done that, then execute the below command to decrypt the ozip and create zip file
python ozipdecrypt.py realme.ozip
You can now open the python location and check the newly created zip file. In our case, it is realme.zip
Open it, you will find the firmware files like boot.img, vendor file, and more.
If you want to just the boot img, then you can easily extract the boot.img from the zip file, but all the other files like system, vendor, etc will be in .dat.br format, which cannot be directly flashed via Fastboot or extracted via WinZIP/WinRAR. Our next step will be for those users who want the complete files which they could be using to flash the firmware using fastboot commands.
After converting the ozip file to a zip file using the python, our next step is to create a flashable file to flash via fastboot, to do it, you must download the URTool from Github.
Extract the zip file to a folder name URTool.
Now move or copy the newly created zip file from the Python folder location to the URTool folder. In my case, my zip file is named Realme.zip.
Now launch the URLTool by double-clicking on the URTTool.bat file
The tool will now ask you to select the firmware file. Since there is only one firmware file inside the URT folder, you should see the firmware file occupy the first spot. So type in 1 and hit Enter.
In the next menu that appears, select the ‘extract android image’ option. This is again the first option, so type 1 and hit Enter.
The extraction process will now begin and you might see a few error messages, ignore them, they aren’t going to be any cause of concern. Once the extraction is done, the tool will notify you of the same.
Furthermore, you will also see a newly created folder named 01-Project inside the URT Tool folder. Go to this folder and you could then access the extracted system, vendor, and other dump files. 01-Project folder
Inside this folder, there will be a folder named 1-Sources. From this folder, you could get hold of the boot, system, and vendor image files. 1-Sources folder
Apart from the dump and IMG files, you could access other files from the firmware ZIP file that we had placed inside the URT Tool folder.
With that said, we conclude the guide on how to extract fastboot images from .ozip file for Realme/Oppo devices. If you have any queries, do let us know in the comments section below. Rounding off, here are some iPhone Tips and Tricks, PC tips and tricks, and Android Tips and Trick that you should check out as well.
Hi Sir.
I did all the steps you decribe in this nice post.
When I have the folder 1-Sources, how do I update my realme smartphone? I’m new in these stuff and I don’t manage it at all…
Many thanks for your help!
AR
Abd Razaaq
This is about extracting the firmware, may I know what exactly you want to update on the realme phone.?
BC
biatrice candelaria
I want to update my phone.
AA
Abdul Aziz
I want to update my recovery
O
Oswin
Followed all the steps but the zip file that came out had only a meta folder. No images or other files
J
James
I followed all the steps but I keep getting this error message
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: ‘C:\\Users\\comp 2\\AppData\\Local\\Programs\\Python\\Python311\\temp\\out’
PLEASE assist…
V
Vikram
I have Realme 5 pro device but now I am facing issue with ui recoovery in my phone . It is UI Version: RMX1971_11_F.06 .And my all important data and contacts are in phone . How can I recover it or can start my phone without losing it . Kindly help me please . I am ready to pay anything .
When it starts and on clicking any app it shows cannot read app data . and suddenly getting switched off and on frequently . Is it hardware issue or software issue .
This is my number please call me +91-9926638518. Help is really appreciated . I will pay you please help me its urgent .
Leave a Comment
Share your thoughts, questions, or extra tips with other readers.
Where to find recovery img in the ozip file