From 50756f6d3d0713fba069385ccee4f4a3b0cb1ea5 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Fri, 27 Sep 2019 04:26:27 -0400 Subject: [PATCH] Monochrome is no longer usable with Android 10 --- static/build.html | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/static/build.html b/static/build.html index 498b4134..5b61467e 100644 --- a/static/build.html +++ b/static/build.html @@ -325,19 +325,29 @@ git am --whitespace=nowarn ../*.patch x86_64, the correct value for 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.