| OLD | NEW |
| 1 # Android Build Instructions | 1 # Checking out and building Chromium for Android |
| 2 | 2 |
| 3 There are instructions for other platforms linked from the |
| 4 [get the code](get_the_code.md) page. |
| 5 |
| 3 **See also [the old version of this page](old_android_build_instructions.md).** | 6 **See also [the old version of this page](old_android_build_instructions.md).** |
| 4 | 7 |
| 8 ## Instructions for Google Employees |
| 9 |
| 10 Are you a Google employee? See |
| 11 [go/building-chrome](https://goto.google.com/building-chrome) instead. |
| 5 Google employee? See [go/building-chrome](https://goto.google.com/building-chrom
e) instead. | 12 Google employee? See [go/building-chrome](https://goto.google.com/building-chrom
e) instead. |
| 6 | 13 |
| 7 [TOC] | 14 [TOC] |
| 8 | 15 |
| 9 ## System requirements | 16 ## System requirements |
| 10 | 17 |
| 11 * A 64-bit Intel machine running Linux with at least 8GB of RAM. More | 18 * A 64-bit Intel machine running Linux with at least 8GB of RAM. More |
| 12 than 16GB is highly recommended. | 19 than 16GB is highly recommended. |
| 13 * At least 100GB of free disk space. | 20 * At least 100GB of free disk space. |
| 14 * You must have Git and Python installed already. | 21 * You must have Git and Python installed already. |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 | 121 |
| 115 ```shell | 122 ```shell |
| 116 $ sudo update-alternatives --config javac | 123 $ sudo update-alternatives --config javac |
| 117 $ sudo update-alternatives --config java | 124 $ sudo update-alternatives --config java |
| 118 $ sudo update-alternatives --config javaws | 125 $ sudo update-alternatives --config javaws |
| 119 $ sudo update-alternatives --config javap | 126 $ sudo update-alternatives --config javap |
| 120 $ sudo update-alternatives --config jar | 127 $ sudo update-alternatives --config jar |
| 121 $ sudo update-alternatives --config jarsigner | 128 $ sudo update-alternatives --config jarsigner |
| 122 ``` | 129 ``` |
| 123 | 130 |
| 124 ## Setting up the Build | 131 ## Setting up the build |
| 125 | 132 |
| 126 Chromium uses [Ninja](https://ninja-build.org) as its main build tool along | 133 Chromium uses [Ninja](https://ninja-build.org) as its main build tool along |
| 127 with a tool called [GN](../tools/gn/docs/quick_start.md) to generate `.ninja` | 134 with a tool called [GN](../tools/gn/docs/quick_start.md) to generate `.ninja` |
| 128 files. You can create any number of *build directories* with different | 135 files. You can create any number of *build directories* with different |
| 129 configurations. To create a build directory which builds Chrome for Android, | 136 configurations. To create a build directory which builds Chrome for Android, |
| 130 run: | 137 run: |
| 131 | 138 |
| 132 ```shell | 139 ```shell |
| 133 $ gn gen '--args="target_os="android"' out/Default | 140 $ gn gen '--args="target_os="android"' out/Default |
| 134 ``` | 141 ``` |
| (...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 350 release of Chrome for Android (v25+) you can do the following steps. | 357 release of Chrome for Android (v25+) you can do the following steps. |
| 351 Note that in order to get your changes into the official release, you'll | 358 Note that in order to get your changes into the official release, you'll |
| 352 need to send your change for a codereview using the regular process for | 359 need to send your change for a codereview using the regular process for |
| 353 committing code to chromium. | 360 committing code to chromium. |
| 354 | 361 |
| 355 1. Open Chrome on your Android device and visit chrome://version | 362 1. Open Chrome on your Android device and visit chrome://version |
| 356 2. Copy down the id listed next to "Build ID:" | 363 2. Copy down the id listed next to "Build ID:" |
| 357 3. Go to | 364 3. Go to |
| 358 [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) | 365 [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) |
| 359 4. Download the listed files and follow the steps in the README. | 366 4. Download the listed files and follow the steps in the README. |
| OLD | NEW |