diff --git a/.github/workflows/recovery.yml b/.github/workflows/recovery.yml index 05dcc6a..9c126df 100644 --- a/.github/workflows/recovery.yml +++ b/.github/workflows/recovery.yml @@ -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 diff --git a/README.md b/README.md index a2c519f..0105950 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/script2.sh b/script2.sh index 685c63e..9f579db 100644 --- a/script2.sh +++ b/script2.sh @@ -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