diff --git a/Patches/LineageOS-20.0/android/0001-tensor.patch b/Patches/LineageOS-20.0/android/0001-tensor.patch new file mode 100644 index 00000000..f2d2e14e --- /dev/null +++ b/Patches/LineageOS-20.0/android/0001-tensor.patch @@ -0,0 +1,93 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Tad +Date: Tue, 19 Sep 2023 01:40:31 -0400 +Subject: [PATCH] Use newer revision for Tensor + +Necessary for some Mali security fixes + +Change-Id: Iacc649021647778b6d006f412983cff0cc895acc +Signed-off-by: Tad +--- + snippets/pixel.xml | 70 +++++++++++++++++++++++----------------------- + 1 file changed, 35 insertions(+), 35 deletions(-) + +diff --git a/snippets/pixel.xml b/snippets/pixel.xml +index 10d4c0a..5e4c323 100644 +--- a/snippets/pixel.xml ++++ b/snippets/pixel.xml +@@ -2,40 +2,40 @@ + + + +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ + + diff --git a/Scripts/LineageOS-20.0/Functions.sh b/Scripts/LineageOS-20.0/Functions.sh index 95c486de..a0ed785c 100644 --- a/Scripts/LineageOS-20.0/Functions.sh +++ b/Scripts/LineageOS-20.0/Functions.sh @@ -154,29 +154,34 @@ export -f buildAll; patchWorkspaceReal() { umask 0022; cd "$DOS_BUILD_BASE/$1"; - touch DOS_PATCHED_FLAG; - if [ "$DOS_MALWARE_SCAN_ENABLED" = true ]; then scanForMalware false "$DOS_PREBUILT_APPS $DOS_BUILD_BASE/build $DOS_BUILD_BASE/device $DOS_BUILD_BASE/vendor/lineage"; fi; - verifyAllPlatformTags; - gpgVerifyGitHead "$DOS_BUILD_BASE/external/chromium-webview"; + if grep -sq "android-13\.0\.0_r0\.127" ".repo/manifests/snippets/pixel.xml"; then + touch DOS_PATCHED_FLAG; + if [ "$DOS_MALWARE_SCAN_ENABLED" = true ]; then scanForMalware false "$DOS_PREBUILT_APPS $DOS_BUILD_BASE/build $DOS_BUILD_BASE/device $DOS_BUILD_BASE/vendor/lineage"; fi; + verifyAllPlatformTags; + gpgVerifyGitHead "$DOS_BUILD_BASE/external/chromium-webview"; - source build/envsetup.sh; - repopick -i 361248; #Launcher3: Allow toggling monochrome icons for all apps - repopick -it T_asb_2024-04; + source build/envsetup.sh; + repopick -i 361248; #Launcher3: Allow toggling monochrome icons for all apps + repopick -it T_asb_2024-04; - sh "$DOS_SCRIPTS/Patch.sh"; - sh "$DOS_SCRIPTS_COMMON/Enable_Verity.sh"; - sh "$DOS_SCRIPTS_COMMON/Copy_Keys.sh"; - sh "$DOS_SCRIPTS_COMMON/Defaults.sh"; - sh "$DOS_SCRIPTS/Rebrand.sh"; - sh "$DOS_SCRIPTS_COMMON/Optimize.sh"; - sh "$DOS_SCRIPTS_COMMON/Deblob.sh"; - sh "$DOS_SCRIPTS_COMMON/Patch_CVE.sh"; - sh "$DOS_SCRIPTS_COMMON/Post.sh"; - source build/envsetup.sh; + sh "$DOS_SCRIPTS/Patch.sh"; + sh "$DOS_SCRIPTS_COMMON/Enable_Verity.sh"; + sh "$DOS_SCRIPTS_COMMON/Copy_Keys.sh"; + sh "$DOS_SCRIPTS_COMMON/Defaults.sh"; + sh "$DOS_SCRIPTS/Rebrand.sh"; + sh "$DOS_SCRIPTS_COMMON/Optimize.sh"; + sh "$DOS_SCRIPTS_COMMON/Deblob.sh"; + sh "$DOS_SCRIPTS_COMMON/Patch_CVE.sh"; + sh "$DOS_SCRIPTS_COMMON/Post.sh"; + source build/envsetup.sh; - #Deblobbing fixes - ##setup-makefiles doesn't execute properly for some devices, running it twice seems to fix whatever is wrong - #none yet + #Deblobbing fixes + ##setup-makefiles doesn't execute properly for some devices, running it twice seems to fix whatever is wrong + #none yet + else + echo -e "\e[0;33mWARNING: MANIFEST INCORRECT, NOT PATCHING!\e[0m"; + echo "Please apply Patches/LineageOS-20.0/android/0001-tensor.patch to .repo/manifests and sync"; + fi; } export -f patchWorkspaceReal;