blob: bbf613ff27344e3376f1b228fc8ea8767aefc965 [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"],
Jooyung Han67c9ee92020-08-28 16:58:36 +090027 jni_libs: [
Tej Singh0ff1bb32020-01-29 19:07:38 -080028 "libstats_jni",
Jooyung Han67c9ee92020-08-28 16:58:36 +090029 ],
30 native_shared_libs: [
Muhammad Qureshi788d2392020-02-18 16:45:06 -080031 "libstatspull",
32 "libstatssocket",
Tej Singh0ff1bb32020-01-29 19:07:38 -080033 ],
Howard Robb6cd0b2020-02-20 04:57:00 +000034 binaries: ["statsd"],
Muhammad Qureshiff02d482019-12-12 11:03:55 -080035 java_libs: [
Muhammad Qureshiff02d482019-12-12 11:03:55 -080036 "service-statsd",
37 ],
Muhammad Qureshi1b89df12020-02-18 11:30:17 -080038 compile_multilib: "both",
Anton Hanssond6511e82021-05-20 17:58:25 +010039 prebuilts: [
40 "com.android.os.statsd.init.rc",
41 "current_sdkinfo",
42 ],
Howard Ro92e1c6e2019-12-10 19:04:44 -080043 name: "com.android.os.statsd-defaults",
Jiyong Park14e691e2020-02-24 18:36:46 +090044 updatable: true,
Nikita Ioffe93bd3592020-11-12 03:38:38 +000045 min_sdk_version: "30",
Muhammad Qureshi564b3642019-08-16 16:32:29 -070046 key: "com.android.os.statsd.key",
47 certificate: ":com.android.os.statsd.certificate",
48}
49
50apex_key {
51 name: "com.android.os.statsd.key",
52 public_key: "com.android.os.statsd.avbpubkey",
53 private_key: "com.android.os.statsd.pem",
54}
55
56android_app_certificate {
57 name: "com.android.os.statsd.certificate",
58 // This will use com.android.os.statsd.x509.pem (the cert) and
59 // com.android.os.statsd.pk8 (the private key)
60 certificate: "com.android.os.statsd",
61}
Tej Singh0ff1bb32020-01-29 19:07:38 -080062
Howard Robb6cd0b2020-02-20 04:57:00 +000063prebuilt_etc {
64 name: "com.android.os.statsd.init.rc",
65 src: "statsd.rc",
66 filename: "init.rc",
67 installable: false,
68}
Tej Singh0ff1bb32020-01-29 19:07:38 -080069
Eric Holkcabc5702021-02-04 00:25:50 +000070// ==========================================================
Eric Holk513a4c12021-03-18 20:38:12 +000071// Make libstatssocket available to unbundled modules
Eric Holkcabc5702021-02-04 00:25:50 +000072// ==========================================================
Martin Stjernholmb92215b2021-01-26 19:14:28 +000073sdk {
74 name: "statsd-module-sdk",
Anton Hansson6dcd8b82021-06-07 15:45:05 +010075 bootclasspath_fragments: ["com.android.os.statsd-bootclasspath-fragment"],
Martin Stjernholmb92215b2021-01-26 19:14:28 +000076 native_shared_libs: [
77 "libstatssocket",
78 ],
79}
Eric Holkce80cd92021-02-22 13:20:56 -080080
satayev521de582021-05-12 15:45:35 +010081// Encapsulate the contributions made by the com.android.os.statsd to the bootclasspath.
82bootclasspath_fragment {
83 name: "com.android.os.statsd-bootclasspath-fragment",
84 contents: ["framework-statsd"],
85 apex_available: ["com.android.os.statsd"],
Paul Duffin442a2f32021-05-25 10:53:39 +010086
87 // The bootclasspath_fragments that provide APIs on which this depends.
88 fragments: [
89 {
90 apex: "com.android.art",
91 module: "art-bootclasspath-fragment",
92 },
93 ],
94
95 // Additional stubs libraries that this fragment's contents use which are
96 // not provided by another bootclasspath_fragment.
97 additional_stubs: [
98 "android-non-updatable",
99 ],
100
101 hidden_api: {
102 max_target_o_low_priority: ["hiddenapi/hiddenapi-max-target-o-low-priority.txt"],
103 },
satayev521de582021-05-12 15:45:35 +0100104}