blob: 1a357f77056d8eaf5129e0cdc53052c1e89530b1 [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 {
Tej Singh0ff1bb32020-01-29 19:07:38 -080022 native_shared_libs: [
23 "libstats_jni",
Muhammad Qureshi788d2392020-02-18 16:45:06 -080024 "libstatspull",
25 "libstatssocket",
Tej Singh0ff1bb32020-01-29 19:07:38 -080026 ],
Howard Robb6cd0b2020-02-20 04:57:00 +000027 binaries: ["statsd"],
Muhammad Qureshiff02d482019-12-12 11:03:55 -080028 java_libs: [
29 "framework-statsd",
30 "service-statsd",
31 ],
Muhammad Qureshi1b89df12020-02-18 11:30:17 -080032 compile_multilib: "both",
Howard Robb6cd0b2020-02-20 04:57:00 +000033 prebuilts: ["com.android.os.statsd.init.rc"],
Howard Ro92e1c6e2019-12-10 19:04:44 -080034 name: "com.android.os.statsd-defaults",
Jiyong Park14e691e2020-02-24 18:36:46 +090035 updatable: true,
Muhammad Qureshi564b3642019-08-16 16:32:29 -070036 key: "com.android.os.statsd.key",
37 certificate: ":com.android.os.statsd.certificate",
38}
39
40apex_key {
41 name: "com.android.os.statsd.key",
42 public_key: "com.android.os.statsd.avbpubkey",
43 private_key: "com.android.os.statsd.pem",
44}
45
46android_app_certificate {
47 name: "com.android.os.statsd.certificate",
48 // This will use com.android.os.statsd.x509.pem (the cert) and
49 // com.android.os.statsd.pk8 (the private key)
50 certificate: "com.android.os.statsd",
51}
Tej Singh0ff1bb32020-01-29 19:07:38 -080052
Howard Robb6cd0b2020-02-20 04:57:00 +000053prebuilt_etc {
54 name: "com.android.os.statsd.init.rc",
55 src: "statsd.rc",
56 filename: "init.rc",
57 installable: false,
58}
Tej Singh0ff1bb32020-01-29 19:07:38 -080059
60// JNI library for StatsLog.write
61cc_library_shared {
62 name: "libstats_jni",
63 srcs: ["jni/**/*.cpp"],
64 shared_libs: [
65 "libnativehelper", // Has stable abi - should not be copied into apex.
66 "liblog", // Has a stable abi - should not be copied into apex.
67 ],
68 static_libs: [
69 //TODO: make shared - need libstatssocket to also live in the apex.
70 "libstatssocket",
71 "libcutils", // TODO: remove - needed by libstatssocket
72 ],
73 //TODO: is libc++_static correct?
74 stl: "libc++_static",
75 cflags: [
76 "-Wall",
77 "-Werror",
78 "-Wextra",
79 "-Wno-unused-parameter",
80 ],
81 apex_available: [
82 "com.android.os.statsd",
83 "test_com.android.os.statsd",
Tej Singh0ff1bb32020-01-29 19:07:38 -080084 ],
Muhammad Qureshi1b89df12020-02-18 11:30:17 -080085}