GithubHelp home page GithubHelp logo

mlm-games / fastboot-patcher Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ratcoded/fastboot-patcher

0.0 0.0 0.0 977 KB

A bash script that utilizes avbtool & magiskboot to patch recovery images of dynamic samsung devices with android 10 and above to enable fastbootd.

License: MIT License

Shell 4.47% Python 95.53%

fastboot-patcher's Introduction

fastboot-patcher

This repository is basically an updated version of a script which is also an updated version of Johx22/Patch-Recovery
Which is then based off of this script: phhusson/samsung-galaxy-a51-gsi-boot
the scripts have been 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 or 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.

git clone https://github.com/mlm-games/fastboot-patcher.git && cd fastboot-patcher

Move the recovery image to the folder where the 'patcher' script is present (or to the fastboot-patcher folder at which the terminal is pointing at).

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 mlm-games 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.