diff --git a/build/e_patches/Browser-Spoof-as-Pixel-4a-by-default.patch b/build/e_patches/Browser-Spoof-as-Pixel-4a-by-default.patch index 81b5d3a33bd02c91ece805dd7d92272189c95d3d..2175ab257c3d93824a67557c7d40fa5432bf4c43 100644 --- a/build/e_patches/Browser-Spoof-as-Pixel-4a-by-default.patch +++ b/build/e_patches/Browser-Spoof-as-Pixel-4a-by-default.patch @@ -1,4 +1,4 @@ -From 5b72cc903fc2404911648c9f99eb2f800cc7df51 Mon Sep 17 00:00:00 2001 +From e8933d4426006d09515e7cf56137c7edf7267fd1 Mon Sep 17 00:00:00 2001 From: althafvly Date: Thu, 19 Jan 2023 05:41:58 +0000 Subject: Browser: Spoof as Pixel 4a by default @@ -11,7 +11,7 @@ Signed-off-by: Saalim Quadri 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/base/system/sys_info_android.cc b/base/system/sys_info_android.cc -index b1b5e3cd95450..e1eea8c7d14a3 100644 +index b1b5e3cd95450..0df5823dab21d 100644 --- a/base/system/sys_info_android.cc +++ b/base/system/sys_info_android.cc @@ -20,7 +20,7 @@ namespace { @@ -19,7 +19,7 @@ index b1b5e3cd95450..e1eea8c7d14a3 100644 // cannot be acquired. Use a super high number in this case, as we assume // it's due to being a pre-release version. -const int kDefaultAndroidMajorVersion = 9999; -+const int kDefaultAndroidMajorVersion = 10; ++const int kDefaultAndroidMajorVersion = 13; const int kDefaultAndroidMinorVersion = 0; const int kDefaultAndroidBugfixVersion = 0; @@ -28,7 +28,7 @@ index b1b5e3cd95450..e1eea8c7d14a3 100644 *bugfix_version = 0; } - *version_string = std::string(os_version_str); -+ *version_string = "10"; ++ *version_string = "13"; return; } } @@ -68,10 +68,10 @@ index b1b5e3cd95450..e1eea8c7d14a3 100644 - char os_build_id_str[PROP_VALUE_MAX]; - __system_property_get("ro.build.id", os_build_id_str); - return std::string(os_build_id_str); -+ return "QD4A.200805.003"; ++ return "TQ3A.230805.001.S2"; } std::string SysInfo::GetAndroidHardware() { -- -2.34.1 +2.47.3 diff --git a/build/e_patches/fixup-Client-hints-overrides.patch b/build/e_patches/fixup-Client-hints-overrides.patch new file mode 100644 index 0000000000000000000000000000000000000000..4a05996264e0aa7235570e2b990c411f5d8d3b2d --- /dev/null +++ b/build/e_patches/fixup-Client-hints-overrides.patch @@ -0,0 +1,24 @@ +From b3ef7f5a78b7a57c6b201af3daf8a797341a20f7 Mon Sep 17 00:00:00 2001 +From: althafvly +Date: Wed, 26 Nov 2025 10:46:09 +0530 +Subject: fixup: Client hints overrides + +--- + components/embedder_support/user_agent_utils.cc | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/components/embedder_support/user_agent_utils.cc b/components/embedder_support/user_agent_utils.cc +index facf3c4d130e9..2691c3a1769f5 100644 +--- a/components/embedder_support/user_agent_utils.cc ++++ b/components/embedder_support/user_agent_utils.cc +@@ -696,7 +696,6 @@ blink::UserAgentMetadata GetUserAgentMetadata(const PrefService* pref_service, + } + + // High entropy client hints. +- if ((true)) return metadata; + metadata.brand_full_version_list = + GetUserAgentBrandFullVersionListInternal(std::nullopt); + metadata.full_version = std::string(version_info::GetVersionNumber()); +-- +2.47.3 + diff --git a/build/e_patches_list.txt b/build/e_patches_list.txt index 8a5f5033d0ea5ad03d215634a20c0b392e32729e..246a37236a81471fd5950d66799e19da5c9d1608 100644 --- a/build/e_patches_list.txt +++ b/build/e_patches_list.txt @@ -66,3 +66,4 @@ Browser-Move-to-Murena-Qwant-from-QwanteSpot.patch Browser-Check-for-webapk-and-system-signature.patch Browser-Add-support-for-eOS-webapk.patch Enable-zoom-option-in-main-menu-by-default.patch +fixup-Client-hints-overrides.patch diff --git a/push.sh b/push.sh index 322bad0cca21e9fb9260faf353038f5f94a2fcb4..1d402be35608c62c5a72d26415f36be9aa5883aa 100755 --- a/push.sh +++ b/push.sh @@ -32,8 +32,17 @@ if [ "$DO_CLEAR" = true ]; then done fi -adb install -r apks/arm64/TrichromeLibrary.apk -adb install -r apks/arm64/TrichromeWebView.apk -adb install -r apks/arm64/TrichromeChrome.apk +APK_DIR="apks/arm64" + +if [ -f "$APK_DIR/TrichromeLibrary.apk" ] && \ + [ -f "$APK_DIR/TrichromeWebView.apk" ] && \ + [ -f "$APK_DIR/TrichromeChrome.apk" ]; then + adb install -r $APK_DIR/TrichromeLibrary.apk + adb install -r $APK_DIR/TrichromeWebView.apk + adb install -r $APK_DIR/TrichromeChrome.apk +else + adb install -r $APK_DIR/ChromePublic.apk + adb install -r $APK_DIR/SystemWebView.apk +fi echo "Done."