| OLD | NEW |
| 1 # Checking out and building Chromium for Android | 1 # Checking out and building Chromium for Android |
| 2 | 2 |
| 3 There are instructions for other platforms linked from the | 3 There are instructions for other platforms linked from the |
| 4 [get the code](get_the_code.md) page. | 4 [get the code](get_the_code.md) page. |
| 5 | 5 |
| 6 ## Instructions for Google Employees | 6 ## Instructions for Google Employees |
| 7 | 7 |
| 8 Are you a Google employee? See | 8 Are you a Google employee? See |
| 9 [go/building-chrome](https://goto.google.com/building-chrome) instead. | 9 [go/building-chrome](https://goto.google.com/building-chrome) instead. |
| 10 | 10 |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 | 105 |
| 106 ```shell | 106 ```shell |
| 107 $ gclient runhooks | 107 $ gclient runhooks |
| 108 ``` | 108 ``` |
| 109 | 109 |
| 110 *Optional*: You can also [install API | 110 *Optional*: You can also [install API |
| 111 keys](https://www.chromium.org/developers/how-tos/api-keys) if you want your | 111 keys](https://www.chromium.org/developers/how-tos/api-keys) if you want your |
| 112 build to talk to some Google services, but this is not necessary for most | 112 build to talk to some Google services, but this is not necessary for most |
| 113 development and testing purposes. | 113 development and testing purposes. |
| 114 | 114 |
| 115 ### Configure the JDK | |
| 116 | |
| 117 Make also sure that OpenJDK 1.7 is selected as default: | |
| 118 | |
| 119 ```shell | |
| 120 $ sudo update-alternatives --config javac | |
| 121 $ sudo update-alternatives --config java | |
| 122 $ sudo update-alternatives --config javaws | |
| 123 $ sudo update-alternatives --config javap | |
| 124 $ sudo update-alternatives --config jar | |
| 125 $ sudo update-alternatives --config jarsigner | |
| 126 ``` | |
| 127 | |
| 128 ## Setting up the build | 115 ## Setting up the build |
| 129 | 116 |
| 130 Chromium uses [Ninja](https://ninja-build.org) as its main build tool along | 117 Chromium uses [Ninja](https://ninja-build.org) as its main build tool along |
| 131 with a tool called [GN](../tools/gn/docs/quick_start.md) to generate `.ninja` | 118 with a tool called [GN](../tools/gn/docs/quick_start.md) to generate `.ninja` |
| 132 files. You can create any number of *build directories* with different | 119 files. You can create any number of *build directories* with different |
| 133 configurations. To create a build directory which builds Chrome for Android, | 120 configurations. To create a build directory which builds Chrome for Android, |
| 134 run: | 121 run: |
| 135 | 122 |
| 136 ```shell | 123 ```shell |
| 137 $ gn gen --args='target_os="android"' out/Default | 124 $ gn gen --args='target_os="android"' out/Default |
| (...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 376 release of Chrome for Android (v25+) you can do the following steps. | 363 release of Chrome for Android (v25+) you can do the following steps. |
| 377 Note that in order to get your changes into the official release, you'll | 364 Note that in order to get your changes into the official release, you'll |
| 378 need to send your change for a codereview using the regular process for | 365 need to send your change for a codereview using the regular process for |
| 379 committing code to chromium. | 366 committing code to chromium. |
| 380 | 367 |
| 381 1. Open Chrome on your Android device and visit chrome://version | 368 1. Open Chrome on your Android device and visit chrome://version |
| 382 2. Copy down the id listed next to "Build ID:" | 369 2. Copy down the id listed next to "Build ID:" |
| 383 3. Go to | 370 3. Go to |
| 384 [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) | 371 [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) |
| 385 4. Download the listed files and follow the steps in the README. | 372 4. Download the listed files and follow the steps in the README. |
| OLD | NEW |