GithubHelp home page GithubHelp logo

hungcuongvt90 / oppo_decrypt Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bkerler/oppo_decrypt

0.0 0.0 0.0 115 KB

Oppo .ofp Firmware decrypter and oneplus .ops de-/encrypter

Python 100.00%

oppo_decrypt's Introduction

oppo_decrypt

Oppo .ofp and Oneplus .ops Firmware decrypter

  • ofp_qc_decrypt.py : Decrypts oppo qc chipset based firmware with .ofp extension (oppo)
  • ofp_mtk_decrypt.py : Decrypts oppo mtk chipset based firmware with .ofp extension (oppo)
  • opscrypto.py : Decrypts and re-encrypts based firmware with .ops extension (oneplus)
  • backdoor.py : Enables hidden "readback" functionality

Installation:

  • Install >= python 3.8 and pip3

In the console, run

pip3 install -r requirements.txt

Both Linux and Windows now supported, folks !

Usage:

  • Extract oppo ofp file:
python3 ofp_qc_decrypt.py [myops.ofp] [directory to extract]
python3 ofp_mtk_decrypt.py [myops.ofp] [directory to extract]
  • Extract oneplus ops file:
python3 opscrypto.py decrypt [myops.ops]

File will be in the extract subdirectory

  • Repack oneplus ops file:
python3 opscrypto.py encrypt [path to extracted firmware]
  • Enable readback mode (use admin command prompt under windoze):
python3 backdoor.py "MsmDownloadTool V4.0.exe"'
  • Merge super images:

The .ofp may contain super firmware from multiple carriers, check the super_map.csv.txt outside .ofp first.

sudo apt install simg2img # If you have already installed, skip this step.
simg2img [super.0.xxxxxxxx.img] [super.1.xxxxxxxx.img] [super.1.xxxxxxxx.img] [filename to merge] # All split super imgs must be the same carrier

License:

Share, modify and use as you like, but refer the original author ! And if you like my work, please donate :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.