Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3d8a9ecb authored by Nishith  Khanna's avatar Nishith Khanna
Browse files

Add script to update third party patches and also update patches

parent 06df9ca5
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
From 2734cf0ba0ce5784e9bd6d79f96e9ad7b5232382 Mon Sep 17 00:00:00 2001
From 3e2c879e13c88bf3afb71f1ca5b93e8c6d3dadd7 Mon Sep 17 00:00:00 2001
From: Nishith Khanna <nishithkhanna@e.email>
Date: Fri, 27 Jun 2025 11:10:33 +0000
Subject: [PATCH] Add Mojeek search engine
Subject: Add Mojeek search engine

---
 definitions/regional_settings.json | 2 +-
@@ -21,5 +21,5 @@ index a2e3677..26a25af 100644
   },
 
-- 
2.49.0
2.50.0
+3 −3
Original line number Diff line number Diff line
From 91f04e21956c8f9386f43e996147767e421b22a9 Mon Sep 17 00:00:00 2001
From 7467b2cfe9034b9b368c18ab92d679a10f8e244b Mon Sep 17 00:00:00 2001
From: Nishith Khanna <nishithkhanna@e.email>
Date: Fri, 27 Jun 2025 10:11:36 +0000
Subject: [PATCH] Modify default search engines
Subject: Modify default search engines

---
 definitions/regional_settings.json | 2 +-
@@ -21,5 +21,5 @@ index ca7dc52..a2e3677 100644
   },
 
-- 
2.49.0
2.50.0
+3 −3
Original line number Diff line number Diff line
From 42ed0863ffc4b2c7dba4a70b0e4e751317aca6dd Mon Sep 17 00:00:00 2001
From f6c0f2463286c1da176adb4268201b54c5912607 Mon Sep 17 00:00:00 2001
From: csagan5 <32685696+csagan5@users.noreply.github.com>
Date: Fri, 27 Jun 2025 11:55:45 +0000
Subject: [PATCH] Multiple fingerprinting mitigations
Subject: Multiple fingerprinting mitigations

---
 include/core/SkPixmap.h | 16 ++++++++--------
@@ -56,5 +56,5 @@ index e3379cbcf9..ca31c83a12 100644
     }
 
-- 
2.49.0
2.50.0
+10 −0
Original line number Diff line number Diff line
@@ -70,3 +70,13 @@ for commit in $(git rev-list --reverse "$chromium_commit_hash"..HEAD); do
    mv "$temp_patch_file" "$patch_path"
    echo "$patch_filename" >> "$output_patch_file"
done

while read dir patch; do
  [ -z "$dir" ] && continue  # skip empty lines
  subject=${patch%.patch}
  formatted_subject=${subject//-/" "}
  echo "Updating patch: $formatted_subject"
  cd $root_dir/src/third_party/$dir
  commit_hash=$(git log --pretty=format:"%H %s" | grep -F "$formatted_subject" | head -n 1 | awk '{print $1}')
  git format-patch -1 --stdout "$commit_hash" --subject-prefix="" > $root_dir/build/third_party/$patch
done < "${root_dir}/build/third_party_patches_list.txt"