diff --git a/build/e_patches/Enable-local-backup-support.patch b/build/e_patches/Enable-local-backup-support.patch new file mode 100644 index 0000000000000000000000000000000000000000..7d8210cd232b1a73e26b9d47339e41a1e778c664 --- /dev/null +++ b/build/e_patches/Enable-local-backup-support.patch @@ -0,0 +1,115 @@ +From 2075ee8948cf6e53e9beff8a8c505a30051fd8f9 Mon Sep 17 00:00:00 2001 +From: althafvly +Date: Fri, 10 Apr 2026 10:35:54 +0530 +Subject: Enable local backup support + +--- + chrome/android/BUILD.gn | 2 + + chrome/android/java/AndroidManifest.xml | 14 ++----- + .../res_template/xml/chromebackupscheme.xml | 39 +++++++++++++++++++ + 3 files changed, 44 insertions(+), 11 deletions(-) + create mode 100644 chrome/android/java/res_template/xml/chromebackupscheme.xml + +diff --git a/chrome/android/BUILD.gn b/chrome/android/BUILD.gn +index 0c9682392de8..0c7f17b169a1 100644 +--- a/chrome/android/BUILD.gn ++++ b/chrome/android/BUILD.gn +@@ -1712,6 +1712,7 @@ if (_is_default_toolchain) { + + jinja_template_resources("chrome_public_apk_template_resources") { + resources = [ ++ "java/res_template/xml/chromebackupscheme.xml", + "java/res_template/xml/file_paths.xml", + "java/res_template/xml/launchershortcuts.xml", + "java/res_template/xml/searchable.xml", +@@ -1723,6 +1724,7 @@ if (_is_default_toolchain) { + jinja_template_resources("chrome_test_apk_template_resources") { + resource_overlay = true + resources = [ ++ "java/res_template/xml/chromebackupscheme.xml", + "java/res_template/xml/file_paths.xml", + "java/res_template/xml/launchershortcuts.xml", + "java/res_template/xml/searchable.xml", +diff --git a/chrome/android/java/AndroidManifest.xml b/chrome/android/java/AndroidManifest.xml +index d20a6a1aff7b..d315d62a410f 100644 +--- a/chrome/android/java/AndroidManifest.xml ++++ b/chrome/android/java/AndroidManifest.xml +@@ -206,14 +206,12 @@ by a child template that "extends" this file. + android:manageSpaceActivity="@string/manage_space_activity" + android:supportsRtl="true" + android:zygotePreloadName="{{ zygote_preload_class }}" +- {% if backup_key is defined %} + android:allowBackup="true" + android:backupAgent="org.chromium.chrome.browser.backup.ChromeBackupAgent" +- android:fullBackupOnly="false" ++ android:fullBackupContent="@xml/chromebackupscheme" ++ android:fullBackupOnly="true" ++ + android:restoreAnyVersion="true" +- {% else %} +- android:allowBackup="false" +- {% endif %} + android:networkSecurityConfig="@xml/network_security_config" + android:allowAudioPlaybackCapture="false" + android:appComponentFactory="org.chromium.chrome.browser.base.SplitCompatAppComponentFactory" +@@ -1316,12 +1314,6 @@ by a child template that "extends" this file. + + +- {% if backup_key is defined %} +- +- +- {% endif %} +- + {% if channel in ['dev', 'canary', 'default'] %} + + {% endif %} +diff --git a/chrome/android/java/res_template/xml/chromebackupscheme.xml b/chrome/android/java/res_template/xml/chromebackupscheme.xml +new file mode 100644 +index 000000000000..3ed5163a9ee5 +--- /dev/null ++++ b/chrome/android/java/res_template/xml/chromebackupscheme.xml +@@ -0,0 +1,39 @@ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ +-- +2.47.3 + diff --git a/build/e_patches_list.txt b/build/e_patches_list.txt index 442a7551488c5ca505ba272af2aa5f844e394410..9c0a334b888d6d219ff62602d791bf37d7afcd8c 100644 --- a/build/e_patches_list.txt +++ b/build/e_patches_list.txt @@ -67,3 +67,4 @@ Browser-Check-for-webapk-and-system-signature.patch Browser-Add-support-for-eOS-webapk.patch Enable-zoom-option-in-main-menu-by-default.patch Enable-JIT-by-default.patch +Enable-local-backup-support.patch