1# Copyright (C) 2023 The Android Open Source Project
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7#      http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15# https://source.android.com/docs/core/architecture/kernel/android-common#compatibility-matrix
16release_requirements: [
17  {
18    # Android 13
19    # This is the minimum SDK level where we start enforcing the matrix.
20    key: 33
21    value {
22      upgrade: [
23        # -q, -stable are dropped from non-GKI kernel release formats because the kernel branch
24        # cannot be looked up anywhere.
25        "android-4.9",
26        "android-4.14",
27        "android-4.19",
28        "android11-5.4",
29        "android12-5.4",
30        "android12-5.10",
31        "android13-5.10",
32        "android13-5.15"
33      ]
34      launch: [
35        "android11-5.4",
36        "android12-5.4",
37        "android12-5.10",
38        "android13-5.10",
39        "android13-5.15"
40      ]
41      launch_grf: [
42        # -q, -stable are dropped from non-GKI kernel release formats because the kernel branch
43        # cannot be looked up anywhere.
44        "android-4.19",
45        "android11-5.4",
46        "android12-5.4",
47        "android12-5.10",
48        "android13-5.10",
49        "android13-5.15"
50      ]
51    }
52  },
53  {
54    # Android 14
55    key: 34
56    value {
57      upgrade: [
58        # -q, -stable are dropped from non-GKI kernel release formats because the kernel branch
59        # cannot be looked up anywhere.
60        "android-4.14",
61        "android-4.19",
62        "android11-5.4",
63        "android12-5.4",
64        "android12-5.10",
65        "android13-5.10",
66        "android13-5.15",
67        "android14-5.15",
68        "android14-6.1"
69      ]
70      launch: [
71        "android12-5.10",
72        "android13-5.10",
73        "android13-5.15",
74        "android14-5.15",
75        "android14-6.1"
76      ]
77      launch_grf: [
78        # -q, -stable are dropped from non-GKI kernel release formats because the kernel branch
79        # cannot be looked up anywhere.
80        "android-4.19",
81        "android11-5.4",
82        "android12-5.4",
83        "android12-5.10",
84        "android13-5.10",
85        "android13-5.15",
86        "android14-5.15",
87        "android14-6.1"
88      ]
89    }
90  },
91  {
92    # Android 15
93    key: 35
94    value {
95      upgrade: [
96        # -stable are dropped from non-GKI kernel release formats because the kernel branch
97        # cannot be looked up anywhere.
98        "android-4.19", # android-4.19-stable
99        "android11-5.4",
100        "android12-5.4",
101        "android12-5.10",
102        "android13-5.10",
103        "android13-5.15",
104        "android14-5.15",
105        "android14-6.1",
106        "android15-6.6"
107      ]
108      launch: [
109        "android12-5.10",
110        "android13-5.10",
111        "android13-5.15",
112        "android14-5.15",
113        "android14-6.1",
114        "android15-6.6"
115      ]
116      launch_grf: [
117        # -stable are dropped from non-GKI kernel release formats because the kernel branch
118        # cannot be looked up anywhere.
119        "android-4.19", # android-4.19-stable
120        "android11-5.4",
121        "android12-5.4",
122        "android12-5.10",
123        "android13-5.10",
124        "android13-5.15",
125        "android14-5.15",
126        "android14-6.1",
127        "android15-6.6"
128      ]
129    }
130  }
131]
132