enable_android_secondary_abi=false does not make the android manifest multiarch=false?

104 views
Skip to first unread message

Jia Yih Ang

unread,
Jul 26, 2025, 8:44:13 AMJul 26
to Chromium-discuss
Here is my args.gn

target_os = "android"
target_cpu = "arm64"
android_channel = "stable"
system_webview_package_name = "com.motorolasolutions.webview"
use_jacoco_coverage = true
is_debug = false
is_official_build = false
enable_nacl = false
is_chrome_branded = false
exclude_unwind_tables = true
use_official_google_api_keys = false
symbol_level = 0
blink_symbol_level = 0
v8_symbol_level = 0
chrome_pgo_phase = 0
clang_use_default_sample_profile = false
enable_android_secondary_abi = false

I purposely set the enable_android_secondary_abi to exclude 32 bits build from trichromelibrary and trichromewebview, but when i flash into the device. I realise that there is a flag trigger the packageManagerService to forceMatch the multiarch value in AndroidManifest.xml

n1:multiArch="true"
<application n1:extractNativeLibs="false" n1:hasCode="false" n1:icon="@drawable/icon_webview" n1:label="Trichrome Library" n1:multiArch="true">
     <static-library n1:name="org.chromium.trichromelibrary" n1:version="720406331"/>
</application>

Is there any parameter can be used to make the multiArch = false, since we excluded 32 bits from our build



For more information on how and why we collect your personal information, please visit our Privacy Policy.

Torne (Richard Coles)

unread,
Jul 28, 2025, 9:58:06 AMJul 28
to jiayi...@motorolasolutions.com, Chromium-discuss
If the device supports both 32 and 64 bit apps then you can't exclude 32-bit support from WebView, as 32-bit apps will crash when trying to use it.

If the device doesn't support 32-bit apps, then setting `multiarch=true` should have no effect on the ability to install.

`enable_android_secondary_abi` is not intended to be used for production binaries; it's a hack for local development where you want to speed up the build by skipping building the 32-bit code because you don't need it for the specific thing you're currently testing.

--
--
Chromium Discussion mailing list: chromium...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-discuss

Reply all
Reply to author
Forward
0 new messages