Verity fixups

Not sure how I missed all of these?

Signed-off-by: Tad <tad@spotco.us>
This commit is contained in:
Tad 2021-11-01 20:44:23 -04:00
parent 33c2725946
commit bc77ca416c
4 changed files with 84 additions and 4 deletions

View file

@ -285,18 +285,35 @@ if enterAndClear "device/asus/msm8916-common"; then
rm -rf Android.bp sensors; #exact duplicate in asus/flo #XXX be careful with this
fi;
if enterAndClear "device/google/dragon"; then
enableVerity; #Resurrect dm-verity
fi;
if enterAndClear "device/huawei/angler"; then
enableVerity; #Resurrect dm-verity
fi;
if enterAndClear "device/htc/flounder"; then
enableVerity; #Resurrect dm-verity
fi;
if enterAndClear "device/lge/bullhead"; then
enableVerity; #Resurrect dm-verity
fi;
if enterAndClear "device/lge/msm8996-common"; then
sed -i '3itypeattribute hwaddrs misc_block_device_exception;' sepolicy/hwaddrs.te;
fi;
if enterAndClear "device/moto/shamu"; then
#git revert --no-edit 05fb49518049440f90423341ff25d4f75f10bc0c; #restore releasetools #TODO
enableVerity; #Resurrect dm-verity
fi;
if enterAndClear "device/oneplus/oneplus2"; then
sed -i 's|etc/permissions/qti_libpermissions.xml|vendor/etc/permissions/qti_libpermissions.xml|' proprietary-files.txt; #Fix outdated path
fi;
#if enterAndClear "device/moto/shamu"; then
#git revert --no-edit 05fb49518049440f90423341ff25d4f75f10bc0c; #restore releasetools #TODO
#fi;
#Make changes to all devices
cd "$DOS_BUILD_BASE";
if [ "$DOS_LOWRAM_ENABLED" = true ]; then find "device" -maxdepth 2 -mindepth 2 -type d -print0 | xargs -0 -n 1 -P 8 -I {} bash -c 'enableLowRam "{}"'; fi;