xref: /aosp_15_r20/system/apex/apexer/testdata/Android.bp (revision 33f3758387333dbd2962d7edbd98681940d895da)
1// Copyright (C) 2020 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
19android_app_certificate {
20    name: "com.android.example.apex.certificate",
21    // This will use com.android.my.apex.x509.pem (the cert) and
22    // com.android.my.apex.pk8 (the private key)
23    certificate: "com.android.example.apex",
24}
25
26apex_key {
27    name: "com.android.example.apex.key",
28    public_key: "com.android.example.apex.avbpubkey",
29    private_key: "com.android.example.apex.pem",
30}
31
32apex {
33    name: "com.android.example.apex",
34    manifest: "manifest.json",
35    file_contexts: ":apex.test-file_contexts",
36    prebuilts: ["sample_prebuilt_file"],
37    key: "com.android.example.apex.key",
38    certificate: ":com.android.example.apex.certificate",
39    installable: false,
40    updatable: false,
41}
42
43apex {
44    name: "com.android.example-legacy.apex",
45    manifest: "manifest.json",
46    file_contexts: ":apex.test-file_contexts",
47    prebuilts: ["sample_prebuilt_file"],
48    key: "com.android.example.apex.key",
49    certificate: ":com.android.example.apex.certificate",
50    min_sdk_version: "29",
51    installable: false,
52}
53
54apex {
55    name: "com.android.example-logging_parent.apex",
56    manifest: "manifest.json",
57    file_contexts: ":apex.test-file_contexts",
58    prebuilts: ["sample_prebuilt_file"],
59    key: "com.android.example.apex.key",
60    certificate: ":com.android.example.apex.certificate",
61    installable: false,
62    logging_parent: "foobar",
63    updatable: false,
64}
65
66apex {
67    name: "com.android.example-overridden_package_name.apex",
68    manifest: "manifest.json",
69    file_contexts: ":apex.test-file_contexts",
70    prebuilts: ["sample_prebuilt_file"],
71    key: "com.android.example.apex.key",
72    certificate: ":com.android.example.apex.certificate",
73    installable: false,
74    package_name: "com.android.overridden.example.apex",
75    updatable: false,
76}
77