-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathREADME
96 lines (75 loc) · 3 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
Building the Chromium-based WebView in AOSP is no longer supported. WebView can
now be built entirely from the Chromium source code.
General instructions for building WebView from Chromium:
https://www.chromium.org/developers/how-tos/build-instructions-android-webview
------
ARM/ARM64
The prebuilt libwebviewchromium.so included in these APKs is built from Chromium
release tag 100.0.4896.127, using the GN build tool. To match our build settings, set:
target_os = "android"
is_debug = false
is_official_build = true
is_chrome_branded = false
use_official_google_api_keys = false
ffmpeg_branding = "Chrome"
proprietary_codecs = true
enable_resource_allowlist_generation = false
enable_remoting = false
is_component_build = false
symbol_level = 0
enable_nacl = false
blink_symbol_level = 0
webview_devui_show_icon = false
dfmify_dev_ui = false
disable_autofill_assistant_dfm = true
disable_tab_ui_dfm = true
enable_gvr_services = false
disable_fieldtrial_testing_config = true
android_default_version_name = "100.0.4896.127"
android_default_version_code = "4896127$$"
$$ depends on device ARCH
(00=arm, 50=arm64, 10=x86, 60=x64)
in your GN argument file before building.
------
X86/X86_64
The prebuilt libwebviewchromium.so included in these APKs is built from Chromium
release tag 93.0.4577.82, using the GN build tool. To match our build settings, set:
target_os = "android"
is_debug = false
is_official_build = true
is_chrome_branded = false
use_official_google_api_keys = false
ffmpeg_branding = "Chrome"
proprietary_codecs = true
enable_resource_allowlist_generation = false
enable_remoting = false
is_component_build = false
symbol_level = 0
enable_nacl = false
blink_symbol_level = 0
webview_devui_show_icon = false
dfmify_dev_ui = false
disable_autofill_assistant_dfm = true
disable_tab_ui_dfm = true
enable_gvr_services = false
fieldtrial_testing_like_official_build = true
android_default_version_name = "93.0.4577.82"
android_default_version_code = "4577082$$"
$$ depends on device ARCH
(00=arm, 50=arm64, 10=x86, 60=x64)
in your GN argument file before building.
------
Replace webview icon:
From the chromium/src directory:
mkdir -p android_webview/apk/java/res/drawable-xxxhdpi
cp chrome/android/java/res_chromium/mipmap-mdpi/app_icon.png android_webview/apk/java/res/drawable-mdpi/icon_webview.png
cp chrome/android/java/res_chromium/mipmap-hdpi/app_icon.png android_webview/apk/java/res/drawable-hdpi/icon_webview.png
cp chrome/android/java/res_chromium/mipmap-xhdpi/app_icon.png android_webview/apk/java/res/drawable-xhdpi/icon_webview.png
cp chrome/android/java/res_chromium/mipmap-xxhdpi/app_icon.png android_webview/apk/java/res/drawable-xxhdpi/icon_webview.png
cp chrome/android/java/res_chromium/mipmap-xxxhdpi/app_icon.png android_webview/apk/java/res/drawable-xxxhdpi/icon_webview.png
------
Extra patches:
patches/chromium-theme-color.patch: Provides a callback when a theme color is set by the page
------
For questions about building WebView, please see
https://groups.google.com/a/chromium.org/forum/#!forum/android-webview-dev