Requirements:
- First of all, you’ll require a computer and a USB data cable to connect your handset with the PC.
- Second, make sure to download the latest Python software on your PC.

- Next, download the OZIP DecryptTool (Github link).
- Head over to this link and click on the Code option > Click the Download ZIP button to start the download.

Now, you’re ready to follow extract steps to easily extract the OZIP firmware file.
Step 1: Install Python on PC:
- Once you have downloaded it on your PC, make sure to install it just like other Windows apps.

- Tap the Install Now button to install it and follow the on-screen instructions.

- Once installation is done, you’ll see the ‘Setup was successful’ screen. Now, click on Close to exit the window.

Keep this location in mind
C:\Users\YOURNAME\AppData\Local\Programs\Python\Python39
YOURNAME refers to PC name
At the time of my installation, the python version was 39, so if you are installing 40, then it must be Python40

- After installing the python, you can extract the ozip_decrypt_tool zip to your python folder:
C:\Users\YOURNAME\AppData\Local\Programs\Python\Python39
- Just open the downloaded zip file and select the 4 files and extract it to the python location given above.

- After moving those 4 files, it’ll look like the screenshot below.

Step 3: Run Command Prompt:
- Head over to the Python location
C:\Users\YOURNAME\AppData\Local\Programs\Python\Python39
- Now, click on the URL location and type CMD, and hit Enter to open 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, install the Pycryptodome by executing the command below:
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 OZIP Stock ROM file.
Make sure you’ve moved the firmware ozip file to the installed python folder location. Once moved, try renaming the ozip file name to something like realme.ozip or firmware.ozip (for example).
Once done, you will have to run the following command to decrypt the ozip and create a standard zip file of it.
python ozipdecrypt.py realme.ozip

- Now, you can open the installed python directory and check for the newly created zip file (converted from OZIP). So, it should look like realme.zip [Whatever you renamed the ozip file before, the converted zip will show the same name]

- Just open the zip file or extract it into a separate folder that will contain all the internal firmware and system files like a stock boot.img, vendor patch file, system patch, etc.

- You’re done. Now, if you only want the stock boot.img file for Magisk rooting then simply copy/paste the boot.img file to a different location as a backup.
- Finally, start patching the boot.img file with Magisk.
This is how you can extract all files including the stock boot image file from the Realme Stock Firmware (OZIP) file.
That’s it, guys. We assume this guide was helpful to you. For further queries, you can comment below.
after is how I can install this on my phone?I have real me x3 I Downloaded everything.And after this what to do?