Skyler Kaufman | 991ae4d | 2011-04-07 12:30:41 -0700 | [diff] [blame^] | 1 | # Frequently Asked Questions # |
| 2 | |
| 3 | [TOC] |
| 4 | |
| 5 | ## Open Source ## |
| 6 | |
| 7 | ### What is the Android Open Source Project? ### |
| 8 | |
| 9 | We use the phrase "Android Open Source Project" or "AOSP" to refer to the |
| 10 | people, the processes, and the source code that make up Android. |
| 11 | |
| 12 | The people oversee the project and develop the actual source code. The |
| 13 | processes refer to the tools and procedures we use to manage the development |
| 14 | of the software. The net result is the source code that you can use to build |
| 15 | cell phone and other devices. |
| 16 | |
| 17 | ### Why did we open the Android source code? ### |
| 18 | |
| 19 | Google started the Android project in response to our own experiences |
| 20 | launching mobile apps. We wanted to make sure that there would always be an |
| 21 | open platform available for carriers, OEMs, and developers to use to make |
| 22 | their innovative ideas a reality. We also wanted to make sure that there was no |
| 23 | central point of failure, so that no single industry player could restrict or control |
| 24 | the innovations of any other. The single most important goal of the Android |
| 25 | Open-Source Project (AOSP) is to make sure that the open-source Android |
| 26 | software is implemented as widely and compatibly as possible, to everyone's |
| 27 | benefit. |
| 28 | |
| 29 | You can find more information on this topic at our Project Philosophy page. |
| 30 | |
| 31 | ### What kind of open-source project is Android? ### |
| 32 | |
| 33 | Google oversees the development of the core Android open-source platform, |
| 34 | and works to create robust developer and user communities. For the most part |
| 35 | the Android source code is licensed under the permissive Apache Software |
| 36 | License 2.0, rather than a "copyleft" license. The main reason for this is |
| 37 | because our most important goal is widespread adoption of the software, and |
| 38 | we believe that the ASL2.0 license best achieves that goal. |
| 39 | |
| 40 | You can find more information on this topic at our Project Philosophy and |
| 41 | Licensing pages. |
| 42 | |
| 43 | ### Why is Google in charge of Android? ### |
| 44 | |
| 45 | Launching a software platform is complex. Openness is vital to the |
| 46 | long-term success of a platform, since openness is required to attract |
| 47 | investment from developers and ensure a level playing field. However, the |
| 48 | platform itself must also be a compelling product to end users. |
| 49 | |
| 50 | That's why Google has committed the professional engineering resources |
| 51 | necessary to ensure that Android is a fully competitive software platform. |
| 52 | Google treats the Android project as a full-scale product development |
| 53 | operation, and strikes the business deals necessary to make sure that great |
| 54 | devices running Android actually make it to market. |
| 55 | |
| 56 | By making sure that Android is a success with end users, we help ensure the |
| 57 | vitality of Android as a platform, and as an open-source project. After all, |
| 58 | who wants the source code to an unsuccessful product? |
| 59 | |
| 60 | Google's goal is to ensure a successful ecosystem around Android, but no |
| 61 | one is required to participate, of course. We opened the Android source code |
| 62 | so anyone can modify and distribute the software to meet their own needs. |
| 63 | |
| 64 | ### What is Google's overall strategy for Android product development? ### |
| 65 | |
| 66 | We focus on releasing great devices into a competitive marketplace, and |
| 67 | then incorporate the innovations and enhancements we made into the core |
| 68 | platform, as the next version. |
| 69 | |
| 70 | In practice, this means that the Android engineering team typically focuses |
| 71 | on a small number of "flagship" devices, and develops the next version of |
| 72 | the Android software to support those product launches. These flagship |
| 73 | devices absorb much of the product risk and blaze a trail for the broad OEM |
| 74 | community, who follow up with many more devices that take advantage of the |
| 75 | new features. In this way, we make sure that the Android platform evolves |
| 76 | according to the actual needs of real-world devices. |
| 77 | |
| 78 | ### How is the Android software developed? ### |
| 79 | |
| 80 | Each platform version of Android (such as 1.5, 1.6, and so on) has a |
| 81 | corresponding branch in the open-source tree. At any given moment, the most |
| 82 | recent such branch will be considered the "current stable" branch version. |
| 83 | This current stable branch is the one that manufacturers port to their |
| 84 | devices. This branch is kept suitable for release at all times. |
| 85 | |
| 86 | Simultaneously, there is also a "current experimental" branch, which is |
| 87 | where speculative contributions, such as large next-generation features, are |
| 88 | developed. Bug fixes and other contributions can be included in the current |
| 89 | stable branch from the experimental branch as appropriate. |
| 90 | |
| 91 | Finally, Google works on the next version of the Android platform in tandem |
| 92 | with developing a flagship device. This branch pulls in changes from the |
| 93 | experimental and stable branches as appropriate. |
| 94 | |
| 95 | You can find more information on this topic at our [Branches and Releases](source/code-lines.html). |
| 96 | |
| 97 | ### Why are parts of Android developed in private? ### |
| 98 | |
| 99 | It typically takes over a year to bring a device to market, but of course |
| 100 | device manufacturers want to ship the latest software they can. Developers, |
| 101 | meanwhile, don't want to have to constantly track new versions of the |
| 102 | platform when writing apps. Both groups experience a tension between |
| 103 | shipping products, and not wanting to fall behind. |
| 104 | |
| 105 | To address this, some parts of the next version of Android including the |
| 106 | core platform APIs are developed in a private branch. These APIs constitute |
| 107 | the next version of Android. Our aim is to focus attention on the current |
| 108 | stable version of the Android source code, while we create the next version |
| 109 | of the platform as driven by flagship Android devices. This allows developers |
| 110 | and OEMs to focus on a single version without having to track unfinished |
| 111 | future work just to keep up. Other parts of the Android system that aren't |
| 112 | related to application compatibility are developed in the open, however. |
| 113 | It's our intention to move more of these parts to open development over |
| 114 | time. |
| 115 | |
| 116 | ### When are source code releases made? ### |
| 117 | |
| 118 | When they are ready. Some parts of Android are developed in the open, |
| 119 | so that source code is always available. Other parts are developed first in |
| 120 | a private tree, and that source code is released when the next platform |
| 121 | version is ready. |
| 122 | |
| 123 | In some releases, core platform APIs will be ready far enough in advance |
| 124 | that we can push the source code out for an early look in advance of the |
| 125 | device's release; however in others, this isn't possible. In all cases, we |
| 126 | release the platform source when we feel the version has stabilized enough, |
| 127 | and when the development process permits. Releasing the source code is a |
| 128 | fairly complex process. |
| 129 | |
| 130 | ### What is involved in releasing the source code for a new Android version? ### |
| 131 | |
| 132 | Releasing the source code for a new version of the Android platform is a |
| 133 | significant process. First, the software gets built into a system image for |
| 134 | a device, and put through various forms of certification, including |
| 135 | government regulatory certification for the regions the phones will be |
| 136 | deployed. It also goes through operator testing. This is an important phase |
| 137 | of the process, since it helps shake out a lot of software bugs.</p> |
| 138 | |
| 139 | Once the release is approved by the regulators and operators, the |
| 140 | manufacturer begins mass producing devices, and we turn to releasing the |
| 141 | source code. |
| 142 | |
| 143 | Simultaneous to mass production the Google team kicks off several efforts |
| 144 | to prepare the open source release. These efforts include final API changes |
| 145 | and documentation (to reflect any changes that were made during |
| 146 | qualification testing, for example), preparing an SDK for the new version, |
| 147 | and launching the platform compatibility information. |
| 148 | |
| 149 | Also included is a final legal sign-off to release the code into open |
| 150 | source. Just as open source contributors are required to sign a Contributors |
| 151 | License Agreement attesting to their IP ownership of their contribution, |
| 152 | Google too must verify that it is clear to make contributions. |
| 153 | |
| 154 | Starting at the time mass production begins, the software release process |
| 155 | usually takes around a month, which often roughly places source code |
| 156 | releases around the same time that the devices reach users. |
| 157 | |
| 158 | ### How does the AOSP relate to the Android Compatibility Program? ### |
| 159 | |
| 160 | The Android Open-Source Project maintains the Android software, and |
| 161 | develops new versions. Since it's open-source, this software can be used for |
| 162 | any purpose, including to ship devices that are not compatible with other |
| 163 | devices based on the same source. |
| 164 | |
| 165 | The function of the Android Compatibility Program is to define a baseline |
| 166 | implementation of Android that is compatible with third-party apps written |
| 167 | by developers. Devices that are "Android compatible" may participate in the |
| 168 | Android ecosystem, including Android Market; devices that don't meet the |
| 169 | compatibility requirements exist outside that ecosystem. |
| 170 | |
| 171 | In other words, the Android Compatibility Program is how we separate |
| 172 | "Android compatible devices" from devices that merely run derivatives of the |
| 173 | source code. We welcome all uses of the Android source code, but only |
| 174 | Android compatible devices -- as defined and tested by the Android |
| 175 | Compatibility Program -- may participate in the Android ecosystem. |
| 176 | |
| 177 | ### How can I contribute to Android? ### |
| 178 | |
| 179 | There are a number of ways you can contribute to Android. You can report |
| 180 | bugs, write apps for Android, or contribute source code to the Android |
| 181 | Open-Source Project. |
| 182 | |
| 183 | There are some limits on the kinds of code contributions we are willing or |
| 184 | able to accept. For instance, someone might want to contribute an |
| 185 | alternative application API, such as a full C++-based environment. We would |
| 186 | decline that contribution, since Android is focused on applications that run |
| 187 | in the Dalvik VM. Alternatively, we won't accept contributions such as GPL |
| 188 | or LGPL libraries that are incompatible with our licensing goals. |
| 189 | |
| 190 | We encourage those interested in contributing source code to contact us via |
| 191 | the AOSP Community page prior to beginning any work. You can find more |
| 192 | information on this topic at the Getting Involved page. |
| 193 | |
| 194 | ### How do I become an Android committer? ### |
| 195 | |
| 196 | The Android Open Source Project doesn't really have a notion of a |
| 197 | "committer". All contributions -- including those authored by Google |
| 198 | employees -- go through a web-based system known as "gerrit" that's part of |
| 199 | the Android engineering process. This system works in tandem with the git |
| 200 | source code management system to cleanly manage source code |
| 201 | contributions. |
| 202 | |
| 203 | Once submitted, changes need to be accepted by a designated Approver. |
| 204 | Approvers are typically Google employees, but the same approvers are |
| 205 | responsible for all submissions, regardless of origin. |
| 206 | |
| 207 | You can find more information on this topic at the [Submitting Patches](source/submit-patches.html) page. |
| 208 | |
| 209 | ## Compatibility ## |
| 210 | |
| 211 | ### What does "compatibility" mean? ### |
| 212 | |
| 213 | We define an "Android compatible" device as one that can run any |
| 214 | application written by third-party developers using the Android SDK and NDK. |
| 215 | We use this as a filter to separate devices that can participate in the |
| 216 | Android app ecosystem, and those that cannot. Devices that are properly |
| 217 | compatible can seek approval to use the Android trademark. Devices that are |
| 218 | not compatible are merely derived from the Android source code and may not |
| 219 | use the Android trademark. |
| 220 | |
| 221 | In other words, compatibility is a prerequisite to participate in the |
| 222 | Android apps ecosystem. Anyone is welcome to use the Android source code, |
| 223 | but if the device isn't compatible, it's not considered part of the Android |
| 224 | ecosystem. |
| 225 | |
| 226 | ### What is the role of Android Market in compatibility? ### |
| 227 | |
| 228 | Devices that are Android compatible may seek to license the Android Market |
| 229 | client software. This allows them to become part of the Android app |
| 230 | ecosystem, by allowing users to download developers' apps from a catalog |
| 231 | shared by all compatible devices. This option isn't available to devices |
| 232 | that aren't compatible. |
| 233 | |
| 234 | ### What kinds of devices can be Android compatible? ### |
| 235 | |
| 236 | The Android software can be ported to a lot of different kinds of devices, |
| 237 | including some on which third-party apps won't run properly. The Android |
| 238 | Compatibility Definition Document (CDD) spells out the specific device |
| 239 | configurations that will be considered compatible. |
| 240 | |
| 241 | For example, though the Android source code could be ported to run on a |
| 242 | phone that doesn't have a camera, the CDD requires that in order to be |
| 243 | compatible, all phones must have a camera. This allows developers to rely |
| 244 | on a consistent set of capabilities when writing their apps. |
| 245 | |
| 246 | The CDD will evolve over time to reflect market realities. For instance, |
| 247 | the 1.6 CDD only allows cell phones, but the 2.1 CDD allows devices to omit |
| 248 | telephony hardware, allowing for non-phone devices such as tablet-style |
| 249 | music players to be compatible. As we make these changes, we will also |
| 250 | augment Android Market to allow developers to retain control over where |
| 251 | their apps are available. To continue the telephony example, an app that |
| 252 | manages SMS text messages would not be useful on a media player, so Android |
| 253 | Market allows the developer to restrict that app exclusively to phone |
| 254 | devices. |
| 255 | |
| 256 | ### If my device is compatible, does it automatically have access to Android Market and branding? ### |
| 257 | |
| 258 | Android Market is a service operated by Google. Achieving compatibility is |
| 259 | a prerequisite for obtaining access to the Android Market software and branding. |
| 260 | Device manufacturers should contact Google to obtain access to Android |
| 261 | Market. |
| 262 | |
| 263 | ### If I am not a manufacturer, how can I get Android Market? ### |
| 264 | |
| 265 | Android Market is only licensed to handset manufacturers shipping devices. |
| 266 | For questions about specific cases, contact android-partnerships@google.com. |
| 267 | |
| 268 | ### How can I get access to the Google apps for Android, such as Maps? ### |
| 269 | |
| 270 | The Google apps for Android, such as YouTube, Google Maps and Navigation, |
| 271 | Gmail, and so on are Google properties that are not part of Android, and |
| 272 | are licensed separately. Contact android-partnerships@google.com for |
| 273 | inquiries related to those apps. |
| 274 | |
| 275 | ### Is compatibility mandatory? ### |
| 276 | |
| 277 | No. The Android Compatibility Program is optional. Since the Android source |
| 278 | code is open, anyone can use it to build any kind of device. However, if a |
| 279 | manufacturer wishes to use the Android name with their product, or wants |
| 280 | access to Android Market, they must first demonstrate that the device is |
| 281 | compatible. |
| 282 | |
| 283 | ### How much does compatibility certification cost? ### |
| 284 | |
| 285 | There is no cost to obtain Android compatibility for a device. The |
| 286 | Compatibility Test Suite is open-source and available to anyone to use to |
| 287 | test a device. |
| 288 | |
| 289 | ### How long does compatibility take? ### |
| 290 | |
| 291 | The process is automated. The Compatibility Test Suite generates a report |
| 292 | that can be provided to Google to verify compatibility. Eventually we intend |
| 293 | to provide self-service tools to upload these reports to a public database. |
| 294 | |
| 295 | ### Who determines what will be part of the compatibility definition? ### |
| 296 | |
| 297 | Since Google is responsible for the overall direction of Android as a |
| 298 | platform and product, Google maintains the Compatibility Definition Document |
| 299 | for each release. We draft the CDD for a new Android version in consultation |
| 300 | with a number of OEMs, who provide input on its contents. |
| 301 | |
| 302 | ### How long will each Android version be supported for new devices? ### |
| 303 | |
| 304 | Since Android's code is open-source, we can't prevent someone from using an |
| 305 | old version to launch a device. Instead, Google chooses not to license the |
| 306 | Android Market client software for use on versions that are considered |
| 307 | obsolete. This allows anyone to continue to ship old versions of Android, |
| 308 | but those devices won't use the Android name and will exist outside the |
| 309 | Android apps ecosystem, just as if they were non-compatible. |
| 310 | |
| 311 | ### Can a device have a different user interface and still be compatible? ### |
| 312 | |
| 313 | The Android Compatibility Program focuses on whether a device can run |
| 314 | third-party applications. The user interface components shipped with a |
| 315 | device (such as home screen, dialer, color scheme, and so on) does not |
| 316 | generally have much effect on third-party apps. As such, device builders are |
| 317 | free to customize the user interface as much as they like. The Compatibility |
| 318 | Definition Document does restrict the degree to which OEMs may alter the |
| 319 | system user interface for areas that do impact third-party apps. |
| 320 | |
| 321 | ### When are compatibility definitions released for new Android versions? ### |
| 322 | |
| 323 | Our goal is to release new versions of Android Compatibility Definition |
| 324 | Documents (CDDs) once the corresponding Android platform version has |
| 325 | converged enough to permit it. While we can't release a final draft of a CDD |
| 326 | for an Android software version before the first flagship device ships with |
| 327 | that software, final CDDs will always be released after the first device. |
| 328 | However, wherever practical we will make draft versions of CDDs available. |
| 329 | |
| 330 | ### How are device manufacturers' compatibility claims validated? ### |
| 331 | |
| 332 | There is no validation process for Android device compatibility. However, |
| 333 | if the device is to include Android Market, Google will typically validate |
| 334 | the device for compatibility before agreeing to license the Market client |
| 335 | software. |
| 336 | |
| 337 | ### What happens if a device that claims compatibility is later found to have compatibility problems? ### |
| 338 | |
| 339 | Typically, Google's relationships with Android Market licensees allow us to |
| 340 | ask them to release updated system images that fix the problems. |
| 341 | |
| 342 | ## Compatibility Test Suite ## |
| 343 | |
| 344 | ### What is the purpose of the CTS? ### |
| 345 | |
| 346 | The Compatibility Test Suite is a tool used by device manufacturers to help |
| 347 | ensure their devices are compatible, and to report test results for |
| 348 | validations. The CTS is intended to be run frequently by OEMs throughout the |
| 349 | engineering process to catch compatibility issues early. |
| 350 | |
| 351 | ### What kinds of things does the CTS test? ### |
| 352 | |
| 353 | The CTS currently tests that all of the supported Android strong-typed APIs |
| 354 | are present and behave correctly. It also tests other non-API system |
| 355 | behaviors such as application lifecycle and performance. We plan to add |
| 356 | support in future CTS versions to test "soft" APIs such as Intents as |
| 357 | well. |
| 358 | |
| 359 | ### Will the CTS reports be made public? ### |
| 360 | |
| 361 | Yes. While not currently implemented, Google intends to provide web-based |
| 362 | self-service tools for OEMs to publish CTS reports so that they can be |
| 363 | viewed by anyone. CTS reports can be shared as widely as manufacturers |
| 364 | prefer. |
| 365 | |
| 366 | ### How is the CTS licensed? ### |
| 367 | |
| 368 | The CTS is licensed under the same Apache Software License 2.0 that the |
| 369 | bulk of Android uses. |
| 370 | |
| 371 | ### Does the CTS accept contributions? ### |
| 372 | |
| 373 | Yes please! The Android Open-Source Project accepts contributions to |
| 374 | improve the CTS in the same way as for any other component. In fact, |
| 375 | improving the coverage and quality of the CTS test cases is one of the best |
| 376 | ways to help out Android. |
| 377 | |
| 378 | ### Can anyone use the CTS on existing devices? ### |
| 379 | |
| 380 | The Compatibility Definition Document requires that compatible devices |
| 381 | implement the 'adb' debugging utility. This means that any compatible device |
| 382 | -- including ones available at retail -- must be able to run the CTS |
| 383 | tests. |
| 384 | |