From d728db919a02df97c8af65b7649b7397c15f0fbd Mon Sep 17 00:00:00 2001 From: Carmelo Messina Date: Thu, 20 Jul 2023 15:00:18 +0200 Subject: [PATCH] #69 - Compress libchrome to free up some space --- build/bromite_patches_list.txt | 1 + ...ress-libchrome-to-free-up-some-space.patch | 23 +++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 build/patches/00Compress-libchrome-to-free-up-some-space.patch diff --git a/build/bromite_patches_list.txt b/build/bromite_patches_list.txt index e06c4b00..d4765149 100644 --- a/build/bromite_patches_list.txt +++ b/build/bromite_patches_list.txt @@ -282,5 +282,6 @@ Timezone-customization.patch 00Keep-Side-Panel-Companion-disabled.patch 00Lock-Profile-Cookie-Database.patch 00Show-warnings-on-downloads-over-HTTP.patch +00Compress-libchrome-to-free-up-some-space.patch 00Cromite-Branding.patch \ No newline at end of file diff --git a/build/patches/00Compress-libchrome-to-free-up-some-space.patch b/build/patches/00Compress-libchrome-to-free-up-some-space.patch new file mode 100644 index 00000000..aa20f7df --- /dev/null +++ b/build/patches/00Compress-libchrome-to-free-up-some-space.patch @@ -0,0 +1,23 @@ +From: uazo +Date: Wed, 19 Jul 2023 09:32:36 +0000 +Subject: Compress libchrome to free up some space + +upstream removed ModernLinker support for developer build (apk releases). +see https://bugs.chromium.org/p/chromium/issues/detail?id=1383210 +--- + chrome/android/chrome_public_apk_tmpl.gni | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/chrome/android/chrome_public_apk_tmpl.gni b/chrome/android/chrome_public_apk_tmpl.gni +--- a/chrome/android/chrome_public_apk_tmpl.gni ++++ b/chrome/android/chrome_public_apk_tmpl.gni +@@ -636,6 +636,7 @@ template("chrome_common_apk_or_module_tmpl") { + [ "//components/crash/core/app:chrome_crashpad_handler_named_as_so" ] + loadable_modules += [ "$root_out_dir/libchrome_crashpad_handler.so" ] + library_always_compress += [ "libchrome_crashpad_handler.so" ] ++ library_always_compress += [ "libchrome.so" ] + } else if (!_is_trichrome) { + # Crashpad trampoline lives in TrichromeLibrary.apk. + # https://chromium.googlesource.com/chromium/src/+/main/docs/android_native_libraries.md#Crashpad-Packaging +-- +2.25.1