| 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 |
| 115 ## Setting up the build | 128 ## Setting up the build |
| 116 | 129 |
| 117 Chromium uses [Ninja](https://ninja-build.org) as its main build tool along | 130 Chromium uses [Ninja](https://ninja-build.org) as its main build tool along |
| 118 with a tool called [GN](../tools/gn/docs/quick_start.md) to generate `.ninja` | 131 with a tool called [GN](../tools/gn/docs/quick_start.md) to generate `.ninja` |
| 119 files. You can create any number of *build directories* with different | 132 files. You can create any number of *build directories* with different |
| 120 configurations. To create a build directory which builds Chrome for Android, | 133 configurations. To create a build directory which builds Chrome for Android, |
| 121 run: | 134 run: |
| 122 | 135 |
| 123 ```shell | 136 ```shell |
| 124 $ gn gen --args='target_os="android"' out/Default | 137 $ gn gen --args='target_os="android"' out/Default |
| (...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 363 release of Chrome for Android (v25+) you can do the following steps. | 376 release of Chrome for Android (v25+) you can do the following steps. |
| 364 Note that in order to get your changes into the official release, you'll | 377 Note that in order to get your changes into the official release, you'll |
| 365 need to send your change for a codereview using the regular process for | 378 need to send your change for a codereview using the regular process for |
| 366 committing code to chromium. | 379 committing code to chromium. |
| 367 | 380 |
| 368 1. Open Chrome on your Android device and visit chrome://version | 381 1. Open Chrome on your Android device and visit chrome://version |
| 369 2. Copy down the id listed next to "Build ID:" | 382 2. Copy down the id listed next to "Build ID:" |
| 370 3. Go to | 383 3. Go to |
| 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) | 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) |
| 372 4. Download the listed files and follow the steps in the README. | 385 4. Download the listed files and follow the steps in the README. |
| OLD | NEW |