Skip to content

Commit

Permalink
Merge pull request Johx22#38 from thefiredragon/master
Browse files Browse the repository at this point in the history
add hex patches
  • Loading branch information
Johx22 authored Oct 19, 2023
2 parents 96886e0 + 870852b commit 586457c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/recovery.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,11 @@ jobs:
mkdir output && cd output
mv ../recovery-patched.img recovery.img
tar cvf fastbootd-recovery.tar recovery.img
md5sum -t fastbootd-recovery.tar >> fastbootd-recovery.tar
mv fastbootd-recovery.tar fastbootd-recovery.tar.md5
- name: Upload Recovery
uses: actions/upload-artifact@v3.0.0
with:
path: /home/runner/work/Patch-Recovery/Patch-Recovery/output/*.tar
path: /home/runner/work/Patch-Recovery/Patch-Recovery/output/*.md5
name: Patched-Recovery
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ This CI service patches recovery images of Samsung to enable Fastbootd. Based on

# How to use:
- Fork this repo.
- Upload your recovery.img/recovery.img.lz4 to [transfer.sh](https://transfer.sh/) or any other file hosting sites. Once uploaded right click on the Download button and copy the URL. Avoid Gdrive links for now as it has been causing an error in some cases.
- Extract your recovery.img.lz4 and upload recovery.img (not lz4) to [transfer.sh](https://transfer.sh/) or any other file hosting sites. Once uploaded right click on the Download button and copy the URL. Avoid Gdrive links for now as it has been causing an error in some cases.
- Head over to Actions tab. Click on RECOVERY -> Run workflow. Insert the copied URL in the RECOVERY URL field and Start the workflow
- The Patching process will start
- A Patched-Recovery.zip will be uploaded at the end of the process. Download it and extract your patched recovery image. The Image will already also be repacked to .tar for flashing directly through Odin
![](https://s3.bmp.ovh/imgs/2022/04/19/91ef3a3ee9255e9c.png)
- Flash vbmeta_disabled_r if needed

# Credits
- [Phhusson](https://github.com/phhusson) Without his script nothing would be possible at the first place
Expand Down
2 changes: 2 additions & 0 deletions script2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ cd unpack
~runner/work/Patch-Recovery/Patch-Recovery/magiskboot hexpatch system/bin/recovery 26f0ceec30b1681c 26f0ceec30b9681c
~runner/work/Patch-Recovery/Patch-Recovery/magiskboot hexpatch system/bin/recovery 24f0fcee30b1681c 24f0fcee30b9681c
~runner/work/Patch-Recovery/Patch-Recovery/magiskboot hexpatch system/bin/recovery 27f02eeb30b1681c 27f02eeb30b9681c
~runner/work/Patch-Recovery/Patch-Recovery/magiskboot hexpatch system/bin/recovery b4f082ee28b1701c b4f082ee28b970c1
~runner/work/Patch-Recovery/Patch-Recovery/magiskboot hexpatch system/bin/recovery 9ef0f4ec28b1701c 9ef0f4ec28b9701c
~runner/work/Patch-Recovery/Patch-Recovery/magiskboot cpio ramdisk.cpio 'add 0755 system/bin/recovery system/bin/recovery'
~runner/work/Patch-Recovery/Patch-Recovery/magiskboot repack ../r.img new-boot.img
cp new-boot.img ../recovery-patched.img

0 comments on commit 586457c

Please sign in to comment.