blob: 9996e4e7f1b2dbbbe02afc610f9ecd76a481e6b8 [file] [log] [blame]
Victor Hsieha51c2f12021-05-10 16:09:38 -07001// Copyright (C) 2021 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.
Bob Badoure80ee752021-05-12 12:41:18 -070014package {
15 default_applicable_licenses: ["Android-Apache-2.0"],
16}
17
Victor Hsieha51c2f12021-05-10 16:09:38 -070018apex_key {
19 name: "com.android.compos.key",
20 public_key: "com.android.compos.avbpubkey",
21 private_key: "com.android.compos.pem",
22}
23
24android_app_certificate {
25 name: "com.android.compos.certificate",
26 certificate: "com.android.compos",
27}
28
29apex {
30 name: "com.android.compos",
31 manifest: "manifest.json",
32 file_contexts: ":com.android.compos-file_contexts",
33 key: "com.android.compos.key",
Alan Stokes493cd8a2021-07-26 16:09:20 +010034 certificate: ":com.android.compos.certificate",
Victor Hsieha51c2f12021-05-10 16:09:38 -070035
Alan Stokes611cc942022-02-01 10:16:21 +000036 // TODO(b/206618706): make it updatable
Victor Hsieha51c2f12021-05-10 16:09:38 -070037 updatable: false,
Nikita Ioffec0b09612023-01-27 01:49:39 +000038 future_updatable: false,
Jiyong Parkb6c45e72021-06-22 20:24:56 +090039 platform_apis: true,
Victor Hsiehb5f465a2021-05-11 13:45:15 -070040
Alan Stokes1c6f91c2021-11-19 14:11:30 +000041 system_ext_specific: true,
42
Victor Hsiehb5f465a2021-05-11 13:45:15 -070043 binaries: [
Victor Hsiehf8213712021-10-01 10:49:39 -070044 // Used in Android
Alan Stokes16fb8552022-02-10 15:07:27 +000045 "compos_verify",
Alan Stokes3ef78d92021-09-08 11:51:06 +010046 "composd",
Alan Stokesb2cc79e2021-09-14 14:08:46 +010047 "composd_cmd",
Victor Hsiehf8213712021-10-01 10:49:39 -070048
49 // Used in VM
Alan Stokes38221fa2022-02-09 14:36:00 +000050 "compos_key_helper",
Victor Hsiehb5f465a2021-05-11 13:45:15 -070051 "compsvc",
Victor Hsiehf8213712021-10-01 10:49:39 -070052 ],
53
Jiyong Parkaad4dd12024-04-16 11:29:22 +090054 native_shared_libs: [
55 // b/334192594: compsvc has a transitive dependency to libminijail.
56 // Adding it explicitly here is required because the existence of
57 // it in Microdroid cannot be guaranteed.
58 "libminijail",
59 ],
60
Alan Stokese54f3302021-10-18 12:30:31 +010061 systemserverclasspath_fragments: ["com.android.compos-systemserverclasspath-fragment"],
62
Jooyung Hanaeefda42021-06-15 16:59:00 +090063 apps: [
64 "CompOSPayloadApp",
65 ],
66
67 prebuilts: [
Alan Stokes3ef78d92021-09-08 11:51:06 +010068 "com.android.compos.init.rc",
Jooyung Hanaeefda42021-06-15 16:59:00 +090069 ],
Victor Hsieha51c2f12021-05-10 16:09:38 -070070}
Alan Stokes3ef78d92021-09-08 11:51:06 +010071
Alan Stokese54f3302021-10-18 12:30:31 +010072systemserverclasspath_fragment {
73 name: "com.android.compos-systemserverclasspath-fragment",
74 contents: ["service-compos"],
75 apex_available: ["com.android.compos"],
76}
77
Alan Stokes3ef78d92021-09-08 11:51:06 +010078prebuilt_etc {
79 name: "com.android.compos.init.rc",
80 src: "composd.rc",
81 filename: "init.rc",
82 installable: false,
83}