Code Monkey home page Code Monkey logo

fastboot-patcher's Introduction

fastboot-patcher

HALT! I will not be updating this repo - due to a lack of understanding on what it does, I cannot solve anything else other than revamping the scripts!

This repository is basically a updated version of Johx22/Patch-Recovery
Which is then based off of this script: phhusson/samsung-galaxy-a51-gsi-boot
The workflow is fixed, the scripts have been combined and revamped, etc.
All credit still goes to them.

Instructions for patching!

In github (using Github Actions)

Note: to use github actions, you need to fork this repository first, and also if using any other filehost than transfer.sh, please check if you can download the image using wget - do not open an issue if you haven't checked the link and made sure your image was not corrupted yourself (you can use the workflow logs to see that)

Upload recovery.img (not recovery.img.lz4) to a file host website like this,
go over to the Actions tab on your fork, select Patch Image via URL and click Run Workflow.
It should open up a little window that allows you to enter a link,
paste the file host link for your recovery image there (e.g. https://transfer.sh/xxxxxx/recovery.img) -
then click Run Workflow again to start the process.

When it's done, you should have 2 files available to download - 1 being the keys, of which signifigance I'm not sure myself,
and the other will hold your patched recovery image, and a version of it that you can use for odin.

Natively (Arch/Debian)

Note: you're going to need the packages (git, wget, lz4, tar, openssl, & python3) available in your terminal,
and recovery.img.lz4 or recovery.img. Personally, I unzipped the AP archive of a stock rom and got my recovery image from that. Also, patcher-minimal has a bunch of workarounds for the workflow, so I'm not sure how good of an idea it'd be to run that instead of patcher locally.

If you have those, then clone the repository, and move your recovery image to it.

git clone github.com/engineer4t/fastboot-patcher.git && mv recovery.img.lz4 ./fastboot-patcher/ && cd fastboot-patcher

Then, simply run the script with ./patcher and wait for it to finish, it shouldn't take longer than a minute.
You'll find the original recovery image and 2 new images (.img and .tar.md5 for odin) in the top directory if successful.

fastboot-patcher's People

Contributors

ratcoded avatar mylove90 avatar manoedinata avatar

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.