blob: ede8852c5905a379ffbac58c58374beacf5de0b0 [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
15apex {
16 name: "com.android.os.statsd",
Howard Ro92e1c6e2019-12-10 19:04:44 -080017 defaults: ["com.android.os.statsd-defaults"],
Muhammad Qureshi564b3642019-08-16 16:32:29 -070018 manifest: "apex_manifest.json",
Howard Ro92e1c6e2019-12-10 19:04:44 -080019}
20
21apex_defaults {
Jooyung Han89a04ac2020-08-28 16:58:36 +090022 jni_libs: [
Tej Singh0ff1bb32020-01-29 19:07:38 -080023 "libstats_jni",
Jooyung Han89a04ac2020-08-28 16:58:36 +090024 ],
25 native_shared_libs: [
Muhammad Qureshi788d2392020-02-18 16:45:06 -080026 "libstatspull",
27 "libstatssocket",
Tej Singh0ff1bb32020-01-29 19:07:38 -080028 ],
Howard Robb6cd0b2020-02-20 04:57:00 +000029 binaries: ["statsd"],
Muhammad Qureshiff02d482019-12-12 11:03:55 -080030 java_libs: [
31 "framework-statsd",
32 "service-statsd",
33 ],
Muhammad Qureshi1b89df12020-02-18 11:30:17 -080034 compile_multilib: "both",
Howard Robb6cd0b2020-02-20 04:57:00 +000035 prebuilts: ["com.android.os.statsd.init.rc"],
Howard Ro92e1c6e2019-12-10 19:04:44 -080036 name: "com.android.os.statsd-defaults",
Jiyong Park14e691e2020-02-24 18:36:46 +090037 updatable: true,
Jooyung Han3b571532020-03-30 13:23:01 +090038 min_sdk_version: "R",
Muhammad Qureshi564b3642019-08-16 16:32:29 -070039 key: "com.android.os.statsd.key",
40 certificate: ":com.android.os.statsd.certificate",
41}
42
43apex_key {
44 name: "com.android.os.statsd.key",
45 public_key: "com.android.os.statsd.avbpubkey",
46 private_key: "com.android.os.statsd.pem",
47}
48
49android_app_certificate {
50 name: "com.android.os.statsd.certificate",
51 // This will use com.android.os.statsd.x509.pem (the cert) and
52 // com.android.os.statsd.pk8 (the private key)
53 certificate: "com.android.os.statsd",
54}
Tej Singh0ff1bb32020-01-29 19:07:38 -080055
Howard Robb6cd0b2020-02-20 04:57:00 +000056prebuilt_etc {
57 name: "com.android.os.statsd.init.rc",
58 src: "statsd.rc",
59 filename: "init.rc",
60 installable: false,
61}
Tej Singh0ff1bb32020-01-29 19:07:38 -080062
63// JNI library for StatsLog.write
64cc_library_shared {
65 name: "libstats_jni",
66 srcs: ["jni/**/*.cpp"],
Orion Hodson517b78f2020-05-29 13:30:34 +010067 header_libs: ["libnativehelper_header_only"],
Tej Singh0ff1bb32020-01-29 19:07:38 -080068 shared_libs: [
Tej Singh0ff1bb32020-01-29 19:07:38 -080069 "liblog", // Has a stable abi - should not be copied into apex.
Tej Singh0ff1bb32020-01-29 19:07:38 -080070 "libstatssocket",
Tej Singh0ff1bb32020-01-29 19:07:38 -080071 ],
Tej Singh0ff1bb32020-01-29 19:07:38 -080072 stl: "libc++_static",
73 cflags: [
74 "-Wall",
75 "-Werror",
76 "-Wextra",
77 "-Wno-unused-parameter",
78 ],
79 apex_available: [
80 "com.android.os.statsd",
81 "test_com.android.os.statsd",
Tej Singh0ff1bb32020-01-29 19:07:38 -080082 ],
Muhammad Qureshi1b89df12020-02-18 11:30:17 -080083}