The only working patch-recovery tool that ever lived to patch Samsung's recovery images to enable fastbootd mode.
- Supports
.img,.lz4,.zipand.tarformats as input. - Supports both
recoveryandvendor_bootimages. - Automatically downloads and processes recovery images from a provided URL or local path.
- Hex-patches the recovery binary to enable fastbootd mode.
- Boot image patching: You can also upload your
boot.imgalong withrecovery.img/vendor_boot.imgto patch the boot image, which removes stock recovery auto-restoration issues on some devices. - Creates an ODIN-flashable
.tarfile for easy flashing.
Notes:
- All the hex patches are located in this database file.
- On Samsung devices,
vendor_bootcontains the recovery ramdisk, only if the device uses the A/B partition scheme. - If you include
boot.imgin your archive (.zip,.tar, etc.), the script will automatically unpack and repack it to break its signature, preventing stock recovery auto-restoration issues.
If this tool didn’t enable the fastbootd mode, it means we need to find your exact hex byte sequence to enable it. To learn how to get those values, please refer to the guide on the "how-to-find-patches" page.
Use the GitHub Actions workflow to automate the process:
- Star and fork this repository.
- Trigger the workflow manually via the Actions tab.
- Provide the required inputs:
- Model: Your device's model number.
- Recovery Link: Direct download link to the recovery image. For a single image, provide a link to an
.imgfile. If you want to patch multiple images (e.g.,vendor_boot.img+boot.imgorrecovery.img+boot.img) to prevent stock recovery auto-restoration, zip the relevant images together and upload the zip's link. - You can upload the recovery and get a direct link from https://filebin.net/
- The workflow will generate a patched recovery image and upload it as an artifact.
- If your archive contains
boot.img, it will be automatically patched to remove stock recovery auto-restoration issues. - Optionally uploaded to GoFile for easy sharing.
The patched recovery image will be available as:
- A
.tarfile for ODIN flashing.
-
Clone the repository:
git clone https://github.com/ravindu644/patch-recovery-revived.git cd patch-recovery-revived -
Run the script:
./patch-recovery.sh <URL/Path to Recovery Image> <Model Number>
The script will automatically install all required dependencies and process the recovery image.
If the tool does not enable fastboot mode for your device, please start an issue on GitHub. Make sure to upload the recovery.img file so the issue can be investigated.
Developed by @ravindu644.
