Skip to content

Commit

Permalink
Align SHRP ZIPs to official ones
Browse files Browse the repository at this point in the history
Add Theme Survival support
  • Loading branch information
TenSeventy7 committed Nov 7, 2021
1 parent e7f5158 commit 016c79b
Show file tree
Hide file tree
Showing 9 changed files with 32 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/a50dd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -186,19 +186,20 @@ jobs:
- name: Build recovery package
run: |
mv ./out/target/product/a50dd/recovery.img ./package/recovery.img -f
cd ./package
zip -9 -r ./SHRP_v3.1-Unofficial_a50-$(date +%s).zip ./*
mv ./out/target/product/a50dd/recovery.img ./package_shrp/recovery.img -f
cd ./package_shrp
BUILD=$(date +%s); sed -i "s/buildnumber_here/$BUILD/" ./Files/SHRP/data/shrp_info.json
zip -9 -r ./SHRP_v3.1_stable-Unofficial_a50-$(date +%s).zip ./*
cd ..
mkdir release
mv ./package/SHRP*.zip ./release/ -f
mv ./package_shrp/SHRP*.zip ./release/ -f
- name: Build Odin-flashable package
run: |
cd ./package
cd ./package_shrp
tar -H ustar -c recovery.img vbmeta.img > recovery.tar
cd ..
mv ./package/recovery.tar ./release/ODIN-SHRP_v3.1-Unofficial_a50-$(date +%s).tar -f
mv ./package_shrp/recovery.tar ./release/ODIN-SHRP_v3.1_stable-Unofficial_a50-$(date +%s).tar -f
- name: Upload release artifacts
uses: actions/upload-artifact@v2
Expand Down
Binary file added package_shrp/Files/SHRP/addons/PassReset.zip
Binary file not shown.
Binary file not shown.
Binary file added package_shrp/Files/SHRP/addons/magiskboot
Binary file not shown.
Binary file not shown.
9 changes: 9 additions & 0 deletions package_shrp/Files/SHRP/data/shrp_info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[
{
"codeName": "a50dd",
"buildNo": "buildnumber_here",
"isOfficial": 0,
"has_express": true,
"shrpVer": "3.1"
}
]
Binary file not shown.
16 changes: 16 additions & 0 deletions package_shrp/META-INF/com/google/android/updater-script
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
show_progress(1.000000, 0);
ui_print(" ");
ui_print("Skyhawk Recovery Project ");
ui_print("|SHRP version - 3.1 stable ");
ui_print("|Device - a50dd");
ui_print("|Maintainer - TenSeventy7");
delete_recursive("/sdcard/SHRP");
package_extract_dir("Files", "/sdcard/");
set_progress(0.500000);
package_extract_file("recovery.img", "/dev/block/platform/13520000.ufs/by-name/recovery");
set_progress(0.700000);
ui_print(" ");
ui_print("Contact Us,");
ui_print(" + Website- https://skyhawkrecovery.github.io ");
set_progress(1.000000);
ui_print("");
Binary file added package_shrp/vbmeta.img
Binary file not shown.

0 comments on commit 016c79b

Please sign in to comment.