OLD | NEW |
1 # Checking out and building Cast for Android | 1 # Checking out and building Cast for Android |
2 | 2 |
3 **Note**: it is **not possible** to build a binary functionally | 3 **Note**: it is **not possible** to build a binary functionally |
4 equivalent to a Chromecast. This is to build a single-page content | 4 equivalent to a Chromecast. This is to build a single-page content |
5 embedder with similar functionality to Cast products. | 5 embedder with similar functionality to Cast products. |
6 | 6 |
7 ## Instructions for Google Employees | 7 ## Instructions for Google Employees |
8 | 8 |
9 Are you a Google employee? See | 9 Are you a Google employee? See |
10 [go/building-android-cast](https://goto.google.com/building-android-cast) instea
d. | 10 [go/building-android-cast](https://goto.google.com/building-android-cast) instea
d. |
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 [Android WebView](https://developer.android.com/reference/android/webkit/WebView
.html) | 227 [Android WebView](https://developer.android.com/reference/android/webkit/WebView
.html) |
228 is a system framework component. Since Android KitKat, it is implemented using | 228 is a system framework component. Since Android KitKat, it is implemented using |
229 Chromium code (based off the [content module](https://dev.chromium.org/developer
s/content-module)). | 229 Chromium code (based off the [content module](https://dev.chromium.org/developer
s/content-module)). |
230 It is possible to test modifications to WebView using a simple test shell. The | 230 It is possible to test modifications to WebView using a simple test shell. The |
231 WebView shell is a view with a URL bar at the top (see [code](https://code.googl
e.com/p/chromium/codesearch#chromium/src/android_webview/test/shell/src/org/chro
mium/android_webview/test/AwTestContainerView.java)) | 231 WebView shell is a view with a URL bar at the top (see [code](https://code.googl
e.com/p/chromium/codesearch#chromium/src/android_webview/test/shell/src/org/chro
mium/android_webview/test/AwTestContainerView.java)) |
232 and is **independent** of the WebView **implementation in the Android system** ( | 232 and is **independent** of the WebView **implementation in the Android system** ( |
233 the WebView shell is essentially a standalone unbundled app). | 233 the WebView shell is essentially a standalone unbundled app). |
234 As drawback, the shell runs in non-production rendering mode only. | 234 As drawback, the shell runs in non-production rendering mode only. |
235 | 235 |
236 ```shell | 236 ```shell |
237 ninja -C out/Release android_webview_apk | 237 ninja -C out/Release webview_instrumentation_apk |
238 build/android/adb_install_apk.py out/Release/apks/AndroidWebView.apk | 238 build/android/adb_install_apk.py out/Release/apks/WebViewInstrumentation.apk |
239 ``` | 239 ``` |
240 | 240 |
241 If, instead, you want to build the complete Android WebView framework component
and test the effect of your chromium changes in other Android app using the WebV
iew, you should follow the [Android AOSP + chromium WebView instructions](https:
//www.chromium.org/developers/how-tos/build-instructions-android-webview) | 241 If, instead, you want to build the complete Android WebView framework component
and test the effect of your chromium changes in other Android app using the WebV
iew, you should follow the [Android AOSP + chromium WebView instructions](https:
//www.chromium.org/developers/how-tos/build-instructions-android-webview) |
242 | 242 |
243 ### Running | 243 ### Running |
244 | 244 |
245 Set [command line flags](https://www.chromium.org/developers/how-tos/run-chromiu
m-with-flags) if necessary. | 245 Set [command line flags](https://www.chromium.org/developers/how-tos/run-chromiu
m-with-flags) if necessary. |
246 | 246 |
247 For Content shell: | 247 For Content shell: |
248 | 248 |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
361 release of Chrome for Android (v25+) you can do the following steps. | 361 release of Chrome for Android (v25+) you can do the following steps. |
362 Note that in order to get your changes into the official release, you'll | 362 Note that in order to get your changes into the official release, you'll |
363 need to send your change for a codereview using the regular process for | 363 need to send your change for a codereview using the regular process for |
364 committing code to chromium. | 364 committing code to chromium. |
365 | 365 |
366 1. Open Chrome on your Android device and visit chrome://version | 366 1. Open Chrome on your Android device and visit chrome://version |
367 2. Copy down the id listed next to "Build ID:" | 367 2. Copy down the id listed next to "Build ID:" |
368 3. Go to | 368 3. Go to |
369 [http://storage.googleapis.com/chrome-browser-components/BUILD\_ID\_FROM\_ST
EP\_2/index.html](http://storage.googleapis.com/chrome-browser-components/BUILD_
ID_FROM_STEP_2/index.html) | 369 [http://storage.googleapis.com/chrome-browser-components/BUILD\_ID\_FROM\_ST
EP\_2/index.html](http://storage.googleapis.com/chrome-browser-components/BUILD_
ID_FROM_STEP_2/index.html) |
370 4. Download the listed files and follow the steps in the README. | 370 4. Download the listed files and follow the steps in the README. |
OLD | NEW |