Small tweaks

Signed-off-by: Tad <tad@spotco.us>
This commit is contained in:
Tad 2021-11-05 08:54:08 -04:00
parent 621441349e
commit 97d0b239d5
2 changed files with 8 additions and 3 deletions

View File

@ -45,10 +45,10 @@ export -f enableAVB;
#Device Changes #Device Changes
enableVerity "device/essential/mata"; enableVerity "device/essential/mata";
enableVerity "device/google/dragon"; #enableVerity "device/google/dragon"; #XXX: non-standard
enableVerity "device/google/marlin"; enableVerity "device/google/marlin";
enableVerity "device/google/sailfish"; enableVerity "device/google/sailfish";
enableVerity "device/htc/flounder"; #enableVerity "device/htc/flounder"; #XXX: no boot
enableVerity "device/huawei/angler"; enableVerity "device/huawei/angler";
enableVerity "device/lge/bullhead"; enableVerity "device/lge/bullhead";
enableVerity "device/moto/shamu"; enableVerity "device/moto/shamu";
@ -99,7 +99,7 @@ enableAVB "device/xiaomi/vayu";
#Kernel Changes #Kernel Changes
sed -i 's/slotselect/slotselect,verify/' kernel/essential/msm8998/arch/arm64/boot/dts/essential/msm8998-mata-lineage.dtsi &>/dev/null || true; #/vendor sed -i 's/slotselect/slotselect,verify/' kernel/essential/msm8998/arch/arm64/boot/dts/essential/msm8998-mata-lineage.dtsi &>/dev/null || true; #/vendor
sed -i 's/wait/wait,verify/g' kernel/htc/flounder/arch/arm64/boot/dts/tegra132.dtsi &>/dev/null || true; #/system #sed -i 's/wait/wait,verify/g' kernel/htc/flounder/arch/arm64/boot/dts/tegra132.dtsi &>/dev/null || true; #/system #XXX: no boot
sed -i 's/wait/wait,verify/g' kernel/moto/shamu/arch/arm/boot/dts/qcom/apq8084.dtsi &>/dev/null || true; #/system sed -i 's/wait/wait,verify/g' kernel/moto/shamu/arch/arm/boot/dts/qcom/apq8084.dtsi &>/dev/null || true; #/system
sed -i 's/wait/wait,verify/g' kernel/oneplus/msm8996/arch/arm/boot/dts/qcom/15801/msm8996-mtp.dtsi &>/dev/null || true; #/system sed -i 's/wait/wait,verify/g' kernel/oneplus/msm8996/arch/arm/boot/dts/qcom/15801/msm8996-mtp.dtsi &>/dev/null || true; #/system
sed -i 's/wait/wait,verify/g' kernel/oneplus/msm8998/arch/arm/boot/dts/qcom/cheeseburger.dtsi &>/dev/null || true; #/system and /vendor sed -i 's/wait/wait,verify/g' kernel/oneplus/msm8998/arch/arm/boot/dts/qcom/cheeseburger.dtsi &>/dev/null || true; #/system and /vendor

View File

@ -342,6 +342,11 @@ fi;
if enterAndClear "device/motorola/clark"; then if enterAndClear "device/motorola/clark"; then
sed -i 's/0xA04D/0xA04D|0xA052/' board-info.txt; #Allow installing on Nougat bootloader, assume the user is running the correct modem sed -i 's/0xA04D/0xA04D|0xA052/' board-info.txt; #Allow installing on Nougat bootloader, assume the user is running the correct modem
rm board-info.txt; #Never restrict installation rm board-info.txt; #Never restrict installation
echo "recovery_only('" >> sepolicy/recovery.te; #304224: Allow recovery to unzip and chmod modem firmware
echo " allow firmware_file labeledfs:filesystem associate;" >> sepolicy/recovery.te;
echo " allow recovery firmware_file:dir rw_dir_perms;" >> sepolicy/recovery.te;
echo " allow recovery firmware_file:file create_file_perms;" >> sepolicy/recovery.te;
echo "')" >> sepolicy/recovery.te;
fi; fi;
if enterAndClear "device/samsung/exynos5420-common"; then if enterAndClear "device/samsung/exynos5420-common"; then