Convert .ozip to .zip for installing stock rom/firmware from twrp,orangefox etc.

Riyad_

Senior Member
Jan 23, 2015
232
99
28
Chittagong
TWRP 3.4 Can install OZIP directly now! U don't have to follow This post anymore !! Thank u !!​

What is OZIP??

OZIP file is an oZip Compressed Data. OZip is a simple compression solution in Python.
OZIP file is an Oppo Smartphone Firmware Update. An OZIP file is an encrypted firmware archive used to distribute updates to Oppo(/Realme) smartphones.​

Ozips are not directly installable from twrp or any other custom recovery*(though some device has the support). so for installing stock rom or revert to stock rom from custom rom u have to decrypt the ozip and make it a flashable zip for installing it via twrp or any other recovery.

Caution : I m not responsible if ur device got bricked during the flash or installation.A Full backup is extremely advised before tryng the stuff.

Needed Tools :
1 - A PC (Linux/WIndows) or Android WIth termux installed.
2 - Python 3+ installed
3 - Downloaded Ozip from https://www.realme.com/in/support/software-update
3 - Patience

Fow Windows User ::

*First Download Python3 From Here - https://www.python.org/downloads/
IMPORTANT Part for easy path solution!!!Mark the option!!!(follow the image)!!!


*Then Install it !!
U can also install python3 in ur system variables Manually!!! . <<<<If u don't know how!!! pls GOOGLE it!

* Now goto this link : https://github.com/bkerler/oppo_ozip_decrypt

*Click on Clone or download then click Download zip.

*Extract the files from the zip into the folder where u kept ur ROM(OZIP) in pc.
Remember : The two .py files from the zip must be in same folder with the ozip.

*now run cmd/Command Prompt as admin.

* Change directory by using Cd into the location of the files and ozip . ("Cd <location of the ozip>")

* Now type
"pip3 install pycryptodome" press enter
and then
"pip3 install docopt".press enter.

*After completing installing both. Type "python ozipdecrypt.py filename.ozip"
Example : python ozipdecrypt.py RMX1801EX_11_OTA_0260_all_mnxKIJM5sz0H.ozip

*U will see something like this
Found correct AES key: 1CA21E12271335AE33AB81B2A7B14622
Decrypting...


*Wait for the decryption. After completing decrypt u will get the zip file with same name in the same folder.

For linux and Termux ::
With due respect to the Author of the script!
Just follow the link https://github.com/bkerler/oppo_ozip_decrypt
and Read the README.md section below!!
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Other Realme model User also can use this tricks to get zip file for their device.

Please report if u get any error!!​
Thanks!!
 
Last edited:

bywumc

New member
Apr 2, 2020
1
0
0
I follow the guide and I got the error message below,
>>> pip3 install pycryptodome
File "<stdin>", line1
pip3 install pycryptodome
^
SyntaxError: invalid syntax
 

bonkz

New member
Apr 25, 2020
1
0
0
cant find decrypt.py

sir, the decrypt.py was not included in the oppo_ozip_decrypt-master.zip. I am following your instruction to "Remember : The two .py files from the zip must be in same folder with the ozip." can you send me the link? my oppo f9 hangs during bootup and stocks in logo. I badly need to fix this since i cannot go out to service shop coz we are in total lockdown due to covid19. your help would mean a lot. thanks brods.
 

Ariorz

New member
Apr 24, 2020
2
2
0
sir, the decrypt.py was not included in the oppo_ozip_decrypt-master.zip. I am following your instruction to "Remember : The two .py files from the zip must be in same folder with the ozip." can you send me the link? my oppo f9 hangs during bootup and stocks in logo. I badly need to fix this since i cannot go out to service shop coz we are in total lockdown due to covid19. your help would mean a lot. thanks brods.
You have to download the files ... of course they are not included in the ROM

i decrypt it
You have to follow the instructions, step by step, trust me
 
Last edited:

kr.aditya0008_

New member
Mar 11, 2019
2
1
0
sir, the decrypt.py was not included in the oppo_ozip_decrypt-master.zip. I am following your instruction to "Remember : The two .py files from the zip must be in same folder with the ozip." can you send me the link? my oppo f9 hangs during bootup and stocks in logo. I badly need to fix this since i cannot go out to service shop coz we are in total lockdown due to covid19. your help would mean a lot. thanks brods.
the file downloaded from github link mentioned by the author above should contain these files:
.gitignore
README.md
ozipdecrypt.py
requirements.txt

if you have these files in your master zip downloaded from github then you are good to go .... make sure python is installed in your pc!!
and you will be using that "ozipdecrypt.py" for decrypting.
 
  • Like
Reactions: tanerkaya67

tanerkaya67

New member
Oct 18, 2016
1
0
0
39
çanakkale
The syntax of the command is incorrect.

Hello sir.
I have this error line whenever i try ozipdecrypt.py.
Why it can be?

Ok i got it. There is no need <> after ozipdecrypt.py. Thanks.
 
Last edited:

Zayn46

Member
Mar 29, 2017
14
2
0
What is OZIP??

OZIP file is an oZip Compressed Data. OZip is a simple compression solution in Python.
OZIP file is an Oppo Smartphone Firmware Update. An OZIP file is an encrypted firmware archive used to distribute updates to Oppo(/Realme) smartphones.​

Ozips are not directly installable from twrp or any other custom recovery*(though some device has the support). so for installing stock rom or revert to stock rom from custom rom u have to decrypt the ozip and make it a flashable zip for installing it via twrp or any other recovery.

Caution : I m not responsible if ur device got bricked during the flash or installation.A Full backup is extremely advised before tryng the stuff.

Needed Tools :
1 - A PC (Linux/WIndows) or Android WIth termux installed.
2 - Python 3+ installed
3 - Downloaded Ozip from https://www.realme.com/in/support/software-update
3 - Patience

Fow Windows User ::

*First Download Python3 From Here - https://www.python.org/downloads/
IMPORTANT Part for easy path solution!!!Mark the option!!!(follow the image)!!!


*Then Install it !!
U can also install python3 in ur system variables Manually!!! . <<<<If u don't know how!!! pls GOOGLE it!

* Now goto this link : https://github.com/bkerler/oppo_ozip_decrypt

*Click on Clone or download then click Download zip.

*Extract the files from the zip into the folder where u kept ur ROM(OZIP) in pc.
Remember : The two .py files from the zip must be in same folder with the ozip.

*now run cmd/Command Prompt as admin.

* Change directory by using Cd into the location of the files and ozip . ("Cd <location of the ozip>")

* Now type
"pip3 install pycryptodome" press enter
and then
"pip3 install docopt".press enter.

*After completing installing both. Type "python ozipdecrypt.py filename.ozip"
Example : python ozipdecrypt.py RMX1801EX_11_OTA_0260_all_mnxKIJM5sz0H.ozip

*U will see something like this
Found correct AES key: 1CA21E12271335AE33AB81B2A7B14622
Decrypting...


*Wait for the decryption. After completing decrypt u will get the zip file with same name in the same folder.

For linux and Termux ::
With due respect to the Author of the script!
Just follow the link https://github.com/bkerler/oppo_ozip_decrypt
and Read the README.md section below!!
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Other Realme model User also can use this tricks to get zip file for their device.

Please report if u get any error!!​
Thanks!!
Unknown AES key, reverse key from recovery first! any help on this the phone is locked and not rooted.
 

kumarsujita6

Senior Member
Jul 11, 2019
84
38
18
BERHAMPUR
sujit.works
What is OZIP??
OZIP file is an oZip Compressed Data. OZip is a simple compression solution in Python.
OZIP file is an Oppo Smartphone Firmware Update. An OZIP file is an encrypted firmware archive used to distribute updates to Oppo(/Realme) smartphones.

Ozips are not directly installable from twrp or any other custom recovery*(though some device has the support). so for installing stock rom or revert to stock rom from custom rom u have to decrypt the ozip and make it a flashable zip for installing it via twrp or any other recovery.

Caution : I m not responsible if ur device got bricked during the flash or installation.A Full backup is extremely advised before tryng the stuff.

Needed Tools :
1 - A PC (Linux/WIndows) or Android WIth termux installed.
2 - Python 3+ installed
3 - Downloaded Ozip from https://www.realme.com/in/support/software-update
3 - Patience

Fow Windows User ::

*First Download Python3 From Here - https://www.python.org/downloads/
IMPORTANT Part for easy path solution!!!Mark the option!!!(follow the image)!!!


*Then Install it !!
U can also install python3 in ur system variables Manually!!! . <<<<If u don't know how!!! pls GOOGLE it!

* Now goto this link : https://github.com/bkerler/oppo_ozip_decrypt

*Click on Clone or download then click Download zip.

*Extract the files from the zip into the folder where u kept ur ROM(OZIP) in pc.
Remember : The two .py files from the zip must be in same folder with the ozip.

*now run cmd/Command Prompt as admin.

* Change directory by using Cd into the location of the files and ozip . ("Cd <location of the ozip>")

* Now type
"pip3 install pycryptodome" press enter
and then
"pip3 install docopt".press enter.

*After completing installing both. Type "python ozipdecrypt.py filename.ozip"
Example : python ozipdecrypt.py RMX1801EX_11_OTA_0260_all_mnxKIJM5sz0H.ozip

*U will see something like this
Found correct AES key: 1CA21E12271335AE33AB81B2A7B14622
Decrypting...

*Wait for the decryption. After completing decrypt u will get the zip file with same name in the same folder.

For linux and Termux ::
With due respect to the Author of the script!
Just follow the link https://github.com/bkerler/oppo_ozip_decrypt
and Read the README.md section below!!
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Other Realme model User also can use this tricks to get zip file for their device.

Please report if u get any error!!
Thanks!!
Really a helping post sar.....
 

wenefe1

Member
Dec 26, 2013
11
0
1
Hello I did everything as described but I don't get the .xml files that I need to flash
thats my problem
Now Click Load XML Def and browse for rawprogram0.xml in folder ROM in EMMC Software Downloader (If you didn’t extract please extract the ROM and then browse the file rawprogram0.xml)
I have an oppo reno 2 chp1907
pleace help me thank you
 
Last edited:

kayyappan

Senior Member
Mar 10, 2011
539
131
63
What is OZIP??

OZIP file is an oZip Compressed Data. OZip is a simple compression solution in Python.
OZIP file is an Oppo Smartphone Firmware Update. An OZIP file is an encrypted firmware archive used to distribute updates to Oppo(/Realme) smartphones.​

Ozips are not directly installable from twrp or any other custom recovery*(though some device has the support). so for installing stock rom or revert to stock rom from custom rom u have to decrypt the ozip and make it a flashable zip for installing it via twrp or any other recovery.
......
Thank you. Flawlessly worked on X3 FW. Yet to check flashing as the unit it just one day old....:D
 
Last edited:

Chrisjopett

New member
Dec 1, 2016
4
0
1
Big thanks to this guide. I'm in Win7 32bit. The cmd prompt with admin failed to install "pip3 install *****." so here is what I did. In the folder of the ROM and the ozipdecrypt, I used shift and left click(mouse), then chose "open command window here". then proceeded with the installation and decrypt instructions. Then I was able to achieve the zip file.
Hope this helps others with Win7 systems. Cheers
 

Attachments