mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2025-05-05 07:55:00 -04:00
Verity enablement overhaul
No change to AVB devices except for enabling on more Verity devices have the potential to regress by not booting No change to non-verity/avb devices Tested working on: mata, cheeseburger, fajita Signed-off-by: Tad <tad@spotco.us>
This commit is contained in:
parent
898c040ead
commit
809e03833e
15 changed files with 142 additions and 154 deletions
|
@ -378,13 +378,6 @@ addVerity() {
|
|||
}
|
||||
export -f addVerity;
|
||||
|
||||
enableVerity() {
|
||||
sed -i 's/--set_hashtree_disabled_flag//' *.mk;
|
||||
sed -i 's/AVB_MAKE_VBMETA_IMAGE_ARGS += --flags 3/AVB_MAKE_VBMETA_IMAGE_ARGS += --flags 2/' *.mk;
|
||||
sed -i '/\/system/{/verify/!s|wait|wait,verify|}' fstab.* root/fstab.* rootdir/fstab.* rootdir/*/fstab.* &>/dev/null || true;
|
||||
}
|
||||
export -f enableVerity;
|
||||
|
||||
optimizeImagesRecursive() {
|
||||
find "$1" -type f -name "*.jp*g" -print0 | xargs -0 -n1 -P 16 jpegoptim;
|
||||
find "$1" -type f -name "*.png" -print0 | xargs -0 -n1 -P 16 optipng;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue