blob: 7f27bd8dc9fb7418771c532f965a1e6e51211c22 [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 {
Jooyung Han67c9ee92020-08-28 16:58:36 +090026 jni_libs: [
Tej Singh0ff1bb32020-01-29 19:07:38 -080027 "libstats_jni",
Jooyung Han67c9ee92020-08-28 16:58:36 +090028 ],
29 native_shared_libs: [
Muhammad Qureshi788d2392020-02-18 16:45:06 -080030 "libstatspull",
31 "libstatssocket",
Tej Singh0ff1bb32020-01-29 19:07:38 -080032 ],
Howard Robb6cd0b2020-02-20 04:57:00 +000033 binaries: ["statsd"],
Muhammad Qureshiff02d482019-12-12 11:03:55 -080034 java_libs: [
35 "framework-statsd",
36 "service-statsd",
37 ],
Muhammad Qureshi1b89df12020-02-18 11:30:17 -080038 compile_multilib: "both",
Howard Robb6cd0b2020-02-20 04:57:00 +000039 prebuilts: ["com.android.os.statsd.init.rc"],
Howard Ro92e1c6e2019-12-10 19:04:44 -080040 name: "com.android.os.statsd-defaults",
Jiyong Park14e691e2020-02-24 18:36:46 +090041 updatable: true,
Nikita Ioffe93bd3592020-11-12 03:38:38 +000042 min_sdk_version: "30",
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// ==========================================================
68// Make stats-log-api-gen available to unbundled modules
69// ==========================================================
70module_exports {
71 name: "stats-log-api-gen-exports",
72 host_supported: true,
73 device_supported: false,
74 compile_multilib: "64",
75 native_binaries: [
76 "stats-log-api-gen",
77 ],
78}
Martin Stjernholmb92215b2021-01-26 19:14:28 +000079
80sdk {
81 name: "statsd-module-sdk",
Hai Zhangc997e872021-02-14 06:06:51 +000082 java_sdk_libs: [
83 "framework-statsd",
84 ],
Martin Stjernholmb92215b2021-01-26 19:14:28 +000085 native_shared_libs: [
86 "libstatssocket",
87 ],
88}