From eb57c7199091d6ac8a74ac3f587644df2c6a8665 Mon Sep 17 00:00:00 2001 From: dan Date: Wed, 18 Oct 2023 19:01:18 +0200 Subject: [PATCH 1/4] add hex patches --- script2.sh | 2 ++ 1 file changed, 2 insertions(+) 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 From 5ac16f76a07c500bfe3c207f002164b260bbafec Mon Sep 17 00:00:00 2001 From: dan Date: Thu, 19 Oct 2023 09:41:18 +0200 Subject: [PATCH 2/4] Add md5 checksum to output file --- .github/workflows/recovery.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 From f95c365dc6af2bbb216a0f5ba01ff9942f5b1954 Mon Sep 17 00:00:00 2001 From: dan Date: Thu, 19 Oct 2023 09:48:01 +0200 Subject: [PATCH 3/4] Change Readme, upload only decompressed lz4 images --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a2c519f..a43002e 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ 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 From 870852bb48077bb9e5e5530bef07bed2cd51f551 Mon Sep 17 00:00:00 2001 From: dan Date: Thu, 19 Oct 2023 10:15:54 +0200 Subject: [PATCH 4/4] adjust readme --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index a43002e..0105950 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,7 @@ This CI service patches recovery images of Samsung to enable Fastbootd. Based on - 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