diff --git a/build/e_patches_list.txt b/build/e_patches_list.txt index 55cecbfe7b239f5c2c4f13054d3b264b66c60dd3..69910863e55a9fef611e35b96f2705e087cd635f 100644 --- a/build/e_patches_list.txt +++ b/build/e_patches_list.txt @@ -26,3 +26,4 @@ 0026-Browser-Enable-unified-autoplay-by-default.patch 0027-Browser-Replace-default-tab-favicon.patch 0028-Change-accent-and-switch-according-to-our-palette.patch +0029-Browser-Spoof-as-Pixel-4a-by-default.patch diff --git a/build/patches/0029-Browser-Spoof-as-Pixel-4a-by-default.patch b/build/patches/0029-Browser-Spoof-as-Pixel-4a-by-default.patch new file mode 100644 index 0000000000000000000000000000000000000000..aa5bbaf490419775d7a87d8d65fd500da04de2a8 --- /dev/null +++ b/build/patches/0029-Browser-Spoof-as-Pixel-4a-by-default.patch @@ -0,0 +1,75 @@ +From c8d5d8398b9fd820ab1890660b183013df198b03 Mon Sep 17 00:00:00 2001 +From: althafvly +Date: Thu, 19 Jan 2023 05:41:58 +0000 +Subject: [PATCH] Browser: Spoof as Pixel 4a by default + +- Android 10 Pixel 4a QD4A.200805.003 +--- + base/system/sys_info_android.cc | 20 ++++++-------------- + 1 file changed, 6 insertions(+), 14 deletions(-) + +diff --git a/base/system/sys_info_android.cc b/base/system/sys_info_android.cc +index a17fafee2287d..eb49b4a7ee92e 100644 +--- a/base/system/sys_info_android.cc ++++ b/base/system/sys_info_android.cc +@@ -23,7 +23,7 @@ namespace { + // cannot be acquired. Use the latest Android release with a higher bug fix + // version to avoid unnecessarily comparison errors with the latest release. + // This should be manually kept up to date on each Android release. +-const int kDefaultAndroidMajorVersion = 12; ++const int kDefaultAndroidMajorVersion = 10; + const int kDefaultAndroidMinorVersion = 0; + const int kDefaultAndroidBugfixVersion = 99; + +@@ -48,7 +48,7 @@ void GetOsVersionStringAndNumbers(std::string* version_string, + *minor_version = 0; + if (num_read < 3) + *bugfix_version = 0; +- *version_string = std::string(os_version_str); ++ *version_string = "10"; + return; + } + } +@@ -128,9 +128,7 @@ int GetDalvikHeapGrowthLimitMB() { + } + + std::string HardwareManufacturerName() { +- char device_model_str[PROP_VALUE_MAX]; +- __system_property_get("ro.product.manufacturer", device_model_str); +- return std::string(device_model_str); ++ return "Google"; + } + + } // anonymous namespace +@@ -138,9 +136,7 @@ std::string HardwareManufacturerName() { + namespace base { + + std::string SysInfo::HardwareModelName() { +- char device_model_str[PROP_VALUE_MAX]; +- __system_property_get("ro.product.model", device_model_str); +- return std::string(device_model_str); ++ return "Pixel 4a"; + } + + std::string SysInfo::OperatingSystemName() { +@@ -163,15 +159,11 @@ void SysInfo::OperatingSystemVersionNumbers(int32_t* major_version, + } + + std::string SysInfo::GetAndroidBuildCodename() { +- char os_version_codename_str[PROP_VALUE_MAX]; +- __system_property_get("ro.build.version.codename", os_version_codename_str); +- return std::string(os_version_codename_str); ++ return "REL"; + } + + std::string SysInfo::GetAndroidBuildID() { +- 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"; + } + + std::string SysInfo::GetAndroidHardwareEGL() { +-- +2.25.1 +