blob: 4bb7657e56d84037f3b817214782d404f1448b3f [file] [log] [blame]
Muhammad Qureshi564b3642019-08-16 16:32:29 -07001// 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 Badour21c8a122021-02-03 18:34:19 -080015package {
16 default_applicable_licenses: ["Android-Apache-2.0"],
17}
18
Muhammad Qureshi564b3642019-08-16 16:32:29 -070019apex {
20 name: "com.android.os.statsd",
Howard Ro92e1c6e2019-12-10 19:04:44 -080021 defaults: ["com.android.os.statsd-defaults"],
Muhammad Qureshi564b3642019-08-16 16:32:29 -070022 manifest: "apex_manifest.json",
Howard Ro92e1c6e2019-12-10 19:04:44 -080023}
24
25apex_defaults {
satayev521de582021-05-12 15:45:35 +010026 bootclasspath_fragments: ["com.android.os.statsd-bootclasspath-fragment"],
Jiakai Zhang5cd57cb2021-12-20 16:51:17 +000027 systemserverclasspath_fragments: ["com.android.os.statsd-systemserverclasspath-fragment"],
Jooyung Han67c9ee92020-08-28 16:58:36 +090028 jni_libs: [
Tej Singh0ff1bb32020-01-29 19:07:38 -080029 "libstats_jni",
Jooyung Han67c9ee92020-08-28 16:58:36 +090030 ],
31 native_shared_libs: [
Muhammad Qureshi788d2392020-02-18 16:45:06 -080032 "libstatspull",
33 "libstatssocket",
Tej Singh0ff1bb32020-01-29 19:07:38 -080034 ],
Howard Robb6cd0b2020-02-20 04:57:00 +000035 binaries: ["statsd"],
Muhammad Qureshi1b89df12020-02-18 11:30:17 -080036 compile_multilib: "both",
Anton Hanssond6511e82021-05-20 17:58:25 +010037 prebuilts: [
38 "com.android.os.statsd.init.rc",
39 "current_sdkinfo",
40 ],
Howard Ro92e1c6e2019-12-10 19:04:44 -080041 name: "com.android.os.statsd-defaults",
Gurpreet Singh4425dcf2022-03-04 15:24:04 +000042 defaults: ["r-launched-apex-module"],
Muhammad Qureshi564b3642019-08-16 16:32:29 -070043 key: "com.android.os.statsd.key",
44 certificate: ":com.android.os.statsd.certificate",
45}
46
47apex_key {
48 name: "com.android.os.statsd.key",
49 public_key: "com.android.os.statsd.avbpubkey",
50 private_key: "com.android.os.statsd.pem",
51}
52
53android_app_certificate {
54 name: "com.android.os.statsd.certificate",
55 // This will use com.android.os.statsd.x509.pem (the cert) and
56 // com.android.os.statsd.pk8 (the private key)
57 certificate: "com.android.os.statsd",
58}
Tej Singh0ff1bb32020-01-29 19:07:38 -080059
Howard Robb6cd0b2020-02-20 04:57:00 +000060prebuilt_etc {
61 name: "com.android.os.statsd.init.rc",
62 src: "statsd.rc",
63 filename: "init.rc",
64 installable: false,
65}
Tej Singh0ff1bb32020-01-29 19:07:38 -080066
Eric Holkcabc5702021-02-04 00:25:50 +000067// ==========================================================
Eric Holk513a4c12021-03-18 20:38:12 +000068// Make libstatssocket available to unbundled modules
Eric Holkcabc5702021-02-04 00:25:50 +000069// ==========================================================
Martin Stjernholmb92215b2021-01-26 19:14:28 +000070sdk {
71 name: "statsd-module-sdk",
Anton Hansson6dcd8b82021-06-07 15:45:05 +010072 bootclasspath_fragments: ["com.android.os.statsd-bootclasspath-fragment"],
Jiakai Zhang5cd57cb2021-12-20 16:51:17 +000073 systemserverclasspath_fragments: ["com.android.os.statsd-systemserverclasspath-fragment"],
Martin Stjernholmb92215b2021-01-26 19:14:28 +000074 native_shared_libs: [
75 "libstatssocket",
76 ],
77}
Eric Holkce80cd92021-02-22 13:20:56 -080078
satayev521de582021-05-12 15:45:35 +010079// Encapsulate the contributions made by the com.android.os.statsd to the bootclasspath.
80bootclasspath_fragment {
81 name: "com.android.os.statsd-bootclasspath-fragment",
82 contents: ["framework-statsd"],
83 apex_available: ["com.android.os.statsd"],
Paul Duffin442a2f32021-05-25 10:53:39 +010084
85 // The bootclasspath_fragments that provide APIs on which this depends.
86 fragments: [
87 {
88 apex: "com.android.art",
89 module: "art-bootclasspath-fragment",
90 },
91 ],
92
93 // Additional stubs libraries that this fragment's contents use which are
94 // not provided by another bootclasspath_fragment.
95 additional_stubs: [
96 "android-non-updatable",
97 ],
98
99 hidden_api: {
100 max_target_o_low_priority: ["hiddenapi/hiddenapi-max-target-o-low-priority.txt"],
101 },
satayev521de582021-05-12 15:45:35 +0100102}
Jiakai Zhang5cd57cb2021-12-20 16:51:17 +0000103
104systemserverclasspath_fragment {
105 name: "com.android.os.statsd-systemserverclasspath-fragment",
106 standalone_contents: ["service-statsd"],
107 apex_available: ["com.android.os.statsd"],
108}