From 50756f6d3d0713fba069385ccee4f4a3b0cb1ea5 Mon Sep 17 00:00:00 2001
From: Daniel Micay target_cpu
is x64
, but note
that the Android source tree refers to it as x86_64.
To build Monochrome, which provides both Chromium and the WebView:
+To build ChromeModernPublic, which provides the browser app:
-ninja -C out/Default/ monochrome_public_apk+
ninja -C out/Default/ chrome_modern_public_apk-
The apk needs to be copied from out/Default/apks/MonochromePublic.apk
+
The apk needs to be copied from out/Default/apks/ChromeModernPublic.apk
into the Android source tree at
- external/vanadium/prebuilt/arm64/MonochromePublic.apk
with arm64
+ external/vanadium/prebuilt/arm64/ChromeModernPublic.apk
with arm64
substituted with the correct value for other architectures (arm, x86, x86_64).
Standalone builds of Chromium and the WebView can be done via the
- chrome_modern_public_apk
and system_webview_apk
targets but
- those aren't used by GrapheneOS. The build system isn't set up for including them and
- the standalone WebView isn't whitelisted in
+
To build SystemWebView, which provides the WebView:
+ +ninja -C out/Default/ system_webview_apk+ +
The apk needs to be copied from out/Default/apks/SystemWebView.apk
+ into the Android source tree at
+ external/chromium-webview/prebuilt/arm64/webview.apk
with arm64
+ substituted with the correct value for other architectures (arm, x86, x86_64).
Chromium cannot yet provide the WebView for Android 10. The changes for + this have not yet landed upstream for the current stable release. It either needs to + be addressed upstream or downstream in order for this to work again.
+ +WebView provider apps need to be whitelisted in
frameworks/base/core/res/res/xml/config_webview_packages
.