xref: /aosp_15_r20/system/apex/shim/Android.bp (revision 33f3758387333dbd2962d7edbd98681940d895da)
1// Copyright (C) 2019 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
15package {
16    default_applicable_licenses: ["Android-Apache-2.0"],
17}
18
19prebuilt_apex {
20    name: "com.android.apex.cts.shim.v1_prebuilt",
21    overrides: [
22        "CtsShimPrebuilt",
23        "CtsShimPrivPrebuilt",
24    ],
25    arch: {
26        arm: {
27            src: "prebuilts/arm/com.android.apex.cts.shim.v1.apex",
28        },
29        arm64: {
30            src: "prebuilts/arm/com.android.apex.cts.shim.v1.apex",
31        },
32        riscv64: {
33            src: "prebuilts/riscv64/com.android.apex.cts.shim.v1.apex",
34        },
35        x86: {
36            src: "prebuilts/x86/com.android.apex.cts.shim.v1.apex",
37        },
38        x86_64: {
39            src: "prebuilts/x86/com.android.apex.cts.shim.v1.apex",
40        },
41    },
42    filename: "com.android.apex.cts.shim.apex",
43    installable: true,
44}
45
46prebuilt_apex {
47    name: "com.android.apex.cts.shim.v2_prebuilt",
48    arch: {
49        arm: {
50            src: "prebuilts/arm/com.android.apex.cts.shim.v2.apex",
51        },
52        arm64: {
53            src: "prebuilts/arm/com.android.apex.cts.shim.v2.apex",
54        },
55        riscv64: {
56            src: "prebuilts/riscv64/com.android.apex.cts.shim.v2.apex",
57        },
58        x86: {
59            src: "prebuilts/x86/com.android.apex.cts.shim.v2.apex",
60        },
61        x86_64: {
62            src: "prebuilts/x86/com.android.apex.cts.shim.v2.apex",
63        },
64    },
65    filename: "com.android.apex.cts.shim.v2.apex",
66    installable: false,
67}
68
69prebuilt_apex {
70    name: "com.android.apex.cts.shim.v2_wrong_sha_prebuilt",
71    arch: {
72        arm: {
73            src: "prebuilts/arm/com.android.apex.cts.shim.v2_wrong_sha.apex",
74        },
75        arm64: {
76            src: "prebuilts/arm/com.android.apex.cts.shim.v2_wrong_sha.apex",
77        },
78        riscv64: {
79            src: "prebuilts/riscv64/com.android.apex.cts.shim.v2_wrong_sha.apex",
80        },
81        x86: {
82            src: "prebuilts/x86/com.android.apex.cts.shim.v2_wrong_sha.apex",
83        },
84        x86_64: {
85            src: "prebuilts/x86/com.android.apex.cts.shim.v2_wrong_sha.apex",
86        },
87    },
88    filename: "com.android.apex.cts.shim.v2_wrong_sha.apex",
89    installable: false,
90}
91
92prebuilt_apex {
93    name: "com.android.apex.cts.shim.v2_additional_file_prebuilt",
94    arch: {
95        arm: {
96            src: "prebuilts/arm/com.android.apex.cts.shim.v2_additional_file.apex",
97        },
98        arm64: {
99            src: "prebuilts/arm/com.android.apex.cts.shim.v2_additional_file.apex",
100        },
101        riscv64: {
102            src: "prebuilts/riscv64/com.android.apex.cts.shim.v2_additional_file.apex",
103        },
104        x86: {
105            src: "prebuilts/x86/com.android.apex.cts.shim.v2_additional_file.apex",
106        },
107        x86_64: {
108            src: "prebuilts/x86/com.android.apex.cts.shim.v2_additional_file.apex",
109        },
110    },
111    filename: "com.android.apex.cts.shim.v2_additional_file.apex",
112    installable: false,
113}
114
115prebuilt_apex {
116    name: "com.android.apex.cts.shim.v2_additional_folder_prebuilt",
117    arch: {
118        arm: {
119            src: "prebuilts/arm/com.android.apex.cts.shim.v2_additional_folder.apex",
120        },
121        arm64: {
122            src: "prebuilts/arm/com.android.apex.cts.shim.v2_additional_folder.apex",
123        },
124        riscv64: {
125            src: "prebuilts/riscv64/com.android.apex.cts.shim.v2_additional_folder.apex",
126        },
127        x86: {
128            src: "prebuilts/x86/com.android.apex.cts.shim.v2_additional_folder.apex",
129        },
130        x86_64: {
131            src: "prebuilts/x86/com.android.apex.cts.shim.v2_additional_folder.apex",
132        },
133    },
134    filename: "com.android.apex.cts.shim.v2_additional_folder.apex",
135    installable: false,
136}
137
138prebuilt_apex {
139    name: "com.android.apex.cts.shim.v2_with_pre_install_hook_prebuilt",
140    arch: {
141        arm: {
142            src: "prebuilts/arm/com.android.apex.cts.shim.v2_with_pre_install_hook.apex",
143        },
144        arm64: {
145            src: "prebuilts/arm/com.android.apex.cts.shim.v2_with_pre_install_hook.apex",
146        },
147        riscv64: {
148            src: "prebuilts/riscv64/com.android.apex.cts.shim.v2_with_pre_install_hook.apex",
149        },
150        x86: {
151            src: "prebuilts/x86/com.android.apex.cts.shim.v2_with_pre_install_hook.apex",
152        },
153        x86_64: {
154            src: "prebuilts/x86/com.android.apex.cts.shim.v2_with_pre_install_hook.apex",
155        },
156    },
157    filename: "com.android.apex.cts.shim.v2_with_pre_install_hook.apex",
158    installable: false,
159}
160
161prebuilt_apex {
162    name: "com.android.apex.cts.shim.v2_with_post_install_hook_prebuilt",
163    arch: {
164        arm: {
165            src: "prebuilts/arm/com.android.apex.cts.shim.v2_with_post_install_hook.apex",
166        },
167        arm64: {
168            src: "prebuilts/arm/com.android.apex.cts.shim.v2_with_post_install_hook.apex",
169        },
170        riscv64: {
171            src: "prebuilts/riscv64/com.android.apex.cts.shim.v2_with_post_install_hook.apex",
172        },
173        x86: {
174            src: "prebuilts/x86/com.android.apex.cts.shim.v2_with_post_install_hook.apex",
175        },
176        x86_64: {
177            src: "prebuilts/x86/com.android.apex.cts.shim.v2_with_post_install_hook.apex",
178        },
179    },
180    filename: "com.android.apex.cts.shim.v2_with_post_install_hook.apex",
181    installable: false,
182}
183
184prebuilt_apex {
185    name: "com.android.apex.cts.shim.v3_prebuilt",
186    arch: {
187        arm: {
188            src: "prebuilts/arm/com.android.apex.cts.shim.v3.apex",
189        },
190        arm64: {
191            src: "prebuilts/arm/com.android.apex.cts.shim.v3.apex",
192        },
193        riscv64: {
194            src: "prebuilts/riscv64/com.android.apex.cts.shim.v3.apex",
195        },
196        x86: {
197            src: "prebuilts/x86/com.android.apex.cts.shim.v3.apex",
198        },
199        x86_64: {
200            src: "prebuilts/x86/com.android.apex.cts.shim.v3.apex",
201        },
202    },
203    filename: "com.android.apex.cts.shim.v3.apex",
204    installable: false,
205}
206
207prebuilt_apex {
208    name: "com.android.apex.cts.shim.v2_different_certificate_prebuilt",
209    arch: {
210        arm: {
211            src: "prebuilts/arm/com.android.apex.cts.shim.v2_different_certificate.apex",
212        },
213        arm64: {
214            src: "prebuilts/arm/com.android.apex.cts.shim.v2_different_certificate.apex",
215        },
216        riscv64: {
217            src: "prebuilts/riscv64/com.android.apex.cts.shim.v2_different_certificate.apex",
218        },
219        x86: {
220            src: "prebuilts/x86/com.android.apex.cts.shim.v2_different_certificate.apex",
221        },
222        x86_64: {
223            src: "prebuilts/x86/com.android.apex.cts.shim.v2_different_certificate.apex",
224        },
225    },
226    filename: "com.android.apex.cts.shim.v2_different_certificate.apex",
227    installable: false,
228}
229
230prebuilt_apex {
231    name: "com.android.apex.cts.shim.v2_unsigned_apk_container_prebuilt",
232    arch: {
233        arm: {
234            src: "prebuilts/arm/com.android.apex.cts.shim.v2_unsigned_apk_container.apex",
235        },
236        arm64: {
237            src: "prebuilts/arm/com.android.apex.cts.shim.v2_unsigned_apk_container.apex",
238        },
239        riscv64: {
240            src: "prebuilts/riscv64/com.android.apex.cts.shim.v2_unsigned_apk_container.apex",
241        },
242        x86: {
243            src: "prebuilts/x86/com.android.apex.cts.shim.v2_unsigned_apk_container.apex",
244        },
245        x86_64: {
246            src: "prebuilts/x86/com.android.apex.cts.shim.v2_unsigned_apk_container.apex",
247        },
248    },
249    filename: "com.android.apex.cts.shim.v2_unsigned_apk_container.apex",
250    installable: false,
251}
252
253prebuilt_apex {
254    name: "com.android.apex.cts.shim.v2_rebootless_prebuilt",
255    arch: {
256        arm: {
257            src: "prebuilts/arm/com.android.apex.cts.shim.v2_rebootless.apex",
258        },
259        arm64: {
260            src: "prebuilts/arm/com.android.apex.cts.shim.v2_rebootless.apex",
261        },
262        x86: {
263            src: "prebuilts/x86/com.android.apex.cts.shim.v2_rebootless.apex",
264        },
265        x86_64: {
266            src: "prebuilts/x86/com.android.apex.cts.shim.v2_rebootless.apex",
267        },
268    },
269    filename: "com.android.apex.cts.shim.v2_rebootless.apex",
270    installable: false,
271}
272