From f44b105cce9a7731e3c0114fad2c29060e143ef7 Mon Sep 17 00:00:00 2001 From: Johx22 Date: Tue, 19 Apr 2022 15:30:31 +0300 Subject: [PATCH] Fix some errors --- .github/workflows/recovery.yml | 2 +- script2.sh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/recovery.yml b/.github/workflows/recovery.yml index 50fd666..ca43074 100644 --- a/.github/workflows/recovery.yml +++ b/.github/workflows/recovery.yml @@ -40,7 +40,7 @@ jobs: chmod a+x script2.sh ./script2.sh || true python3 avbtool extract_public_key --key phh.pem --output phh.pub.bin - python3 avbtool add_hash_footer --partition_name recovery --partition_size $(wc -c r.img |cut -f 1 -d ' ') --image r.img --key phh.pem --algorithm SHA256_RSA4096 + python3 avbtool add_hash_footer --partition_name recovery --partition_size $(wc -c recovery-patched.img |cut -f 1 -d ' ') --image r.img --key phh.pem --algorithm SHA256_RSA4096 cd unpack mv ../recovery-patched.img recovery-fastbootd.img diff --git a/script2.sh b/script2.sh index 685c63e..e2382fa 100644 --- a/script2.sh +++ b/script2.sh @@ -19,3 +19,4 @@ cd unpack ~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 +cd ..