blob: ac97e04020a06cd8b41bc7208dec10b465bd6773 [file] [log] [blame]
Terry Wangf0889372019-11-20 16:48:48 -08001// 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
Bob Badour5ed3f992021-02-23 13:18:34 -080015package {
16 // See: http://go/android-license-faq
17 // A large-scale-change added 'default_applicable_licenses' to import
18 // all of the 'license_kinds' from "frameworks_base_license"
19 // to get the below license kinds:
20 // SPDX-license-identifier-Apache-2.0
21 default_applicable_licenses: ["frameworks_base_license"],
22}
23
Terry Wangf0889372019-11-20 16:48:48 -080024apex {
25 name: "com.android.appsearch",
Terry Wangf0889372019-11-20 16:48:48 -080026 manifest: "apex_manifest.json",
satayev9ba377d2021-05-12 16:44:08 +010027 bootclasspath_fragments: ["com.android.appsearch-bootclasspath-fragment"],
satayev05830582021-05-18 14:43:38 +010028 systemserverclasspath_fragments: ["com.android.appsearch-systemserverclasspath-fragment"],
Terry Wangf0889372019-11-20 16:48:48 -080029 key: "com.android.appsearch.key",
30 certificate: ":com.android.appsearch.certificate",
Mathew Inwood66355f72021-02-23 14:00:23 +000031 updatable: false,
Nikita Ioffe091aac32021-06-14 22:05:39 +010032 generate_hashtree: false,
Terry Wangf0889372019-11-20 16:48:48 -080033}
34
35apex_key {
36 name: "com.android.appsearch.key",
37 public_key: "com.android.appsearch.avbpubkey",
38 private_key: "com.android.appsearch.pem",
39}
40
41android_app_certificate {
42 name: "com.android.appsearch.certificate",
43 // This will use com.android.appsearch.x509.pem (the cert) and
44 // com.android.appsearch.pk8 (the private key)
45 certificate: "com.android.appsearch",
46}
satayev9ba377d2021-05-12 16:44:08 +010047
48// Encapsulate the contributions made by the com.android.appsearch to the bootclasspath.
49bootclasspath_fragment {
50 name: "com.android.appsearch-bootclasspath-fragment",
51 contents: ["framework-appsearch"],
52 apex_available: ["com.android.appsearch"],
Paul Duffin2d31fbc2021-06-29 02:17:11 +010053
54 // The bootclasspath_fragments that provide APIs on which this depends.
55 fragments: [
56 {
57 apex: "com.android.art",
58 module: "art-bootclasspath-fragment",
59 },
60 ],
61
62 // Additional stubs libraries that this fragment's contents use which are
63 // not provided by another bootclasspath_fragment.
64 additional_stubs: [
65 "android-non-updatable",
66 ],
satayev9ba377d2021-05-12 16:44:08 +010067}
satayev05830582021-05-18 14:43:38 +010068
69// Encapsulate the contributions made by the com.android.appsearch to the systemserverclasspath.
70systemserverclasspath_fragment {
71 name: "com.android.appsearch-systemserverclasspath-fragment",
72 contents: ["service-appsearch"],
73 apex_available: ["com.android.appsearch"],
74}