blob: 67b2c00ac0934700184b0300260db6599aee34c2 [file] [log] [blame] [view]
Skyler Kaufman991ae4d2011-04-07 12:30:41 -07001# Android Code-Lines #
2
3The Android Open Source Project maintains a complete software stack intended
4to be ported by OEMs and other device implementors to run on actual hardware.
5Accordingly, we maintain a number of "code lines" to clearly separate the
6current stable version of Android from unstable experimental work.
7
8The chart below depicts at a conceptual level how AOSP manages code and
9releases. We're referring to these as "code lines" instead of "branches"
10simply because at any given moment there may be more than one branch extant
11for a given "code line". For instance, when a release is cut, sometimes that
12will become a new branch in git, and sometimes not, based on the needs of the
13moment.
14
15<img src="/images/code-lines.png"/>
16
17## Notes and Explanations ##
18
19- A *release* corresponds to a formal version of the Android platform, such
20as 1.5, 2.1, and so on. Generally speaking, a release of the platform
21corresponds to a version of the `SdkVersion` field used in
22AndroidManifest.xml files, and defined in `frameworks/base/api` in
23the source tree.
24
25- An *upstream* project is an open-source project from which the Android
26stack is pulling code. These include obvious projects such as the Linux kernel
27and WebKit, but over time we are migrating some of the semi-autonomous
28Android projects (such as Dalvik, the Android SDK tools, Bionic, and so on) to
29work as "upstream" projects. Generally, these projects are developed entirely in
30the public tree. For some upstream projects, development is done by contributing
31directly to the upstream project itself. See [Upstream Projects](submit-patches.html#upstream-projects)
32for details. In both cases, snapshots will be periodically pulled into releases.
33
34- The diagram refers to "Eclair" and "FroYo"; however, they are simply
35placeholders, and the diagram actually reflects the overall release and
36branching strategy.
37
38- At all times, a release code-line (which may actually consist of
39more than one actual branch in git) is considered the sole canonical source
40code for a given Android platform version. OEMs and other groups building devices
41should pull only from a release branch.
42
43- We will set up "experimental" code-lines to capture changes from
44the community, so that they can be iterated on, with an eye toward stability.
45
46- Changes that prove stable will eventually be pulled into a release
47branch. Note that this will only apply to bug fixes, app improvements, and
48other things that do not affect the APIs of the platform.
49
50- Changes will be pulled into release branches from upstream projects
51(including the Android "upstream" projects) as necessary.
52
53- The "n+1"th version (that is, next major version of the framework and
54platform APIs) will be developed by Google internally. See below for
55details.
56
57- Changes will be pulled from upstream, release, and experimental branches
58into Google's private branch as necessary.
59
60- When the platform APIs for the next version have stabilized and been fully
61tested, Google will cut a release of the next platform version. (This
62specifically refers to a new `SdkVersion`.) This will also
63correspond to the internal code-line being made a public release branch, and the
64new current platform code-line.
65
66- When a new platform version is cut, a corresponding experimental
67code-line will be created at the same time.
68
69## About Private Code-Lines ##
70
71The source management strategy above includes a code-line that Google will
72keep private. The reason for this is to focus attention on the current public
73version of Android.
74
75OEMs and other device builders naturally want to ship devices with the
76latest version of Android. Similarly, application developers don't want to
77deal with more extant platform versions than strictly necessary. Meanwhile,
78Google retains responsibility for the strategic direction of Android as a
79platform and a product. Our approach is based on focusing on a small number of
80flagship devices to drive features, and secure protections of Android-related
81intellectual property.
82
83As a result, Google frequently has possession of confidential
84information of third parties, and we must refrain from revealing sensitive
85features until we've secured the appropriate protections. Meanwhile, there are
86real risks to the platform arising from having too many platform versions
87extant at once. For these reasons, we have structured the open-source project
88-- including third-party contributions -- to focus on the currently-public
89stable version of Android. "Deep development" on the next version of the
90platform will happen in private, until it's ready to become an official
91release.
92
93We recognize that many contributors will disagree with this approach. We
94respect that others may have a different point of view; however, this is the
95approach that we feel is best, and the one we've chosen to implement.
96
97