1// 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", 17 defaults: ["com.android.os.statsd-defaults"], 18 manifest: "apex_manifest.json", 19} 20 21apex_defaults { 22 native_shared_libs: [ 23 "libstats_jni", 24 "libstatspull", 25 "libstatssocket", 26 ], 27 binaries: ["statsd"], 28 java_libs: [ 29 "framework-statsd", 30 "service-statsd", 31 ], 32 compile_multilib: "both", 33 prebuilts: ["com.android.os.statsd.init.rc"], 34 name: "com.android.os.statsd-defaults", 35 updatable: true, 36 min_sdk_version: "R", 37 key: "com.android.os.statsd.key", 38 certificate: ":com.android.os.statsd.certificate", 39} 40 41apex_key { 42 name: "com.android.os.statsd.key", 43 public_key: "com.android.os.statsd.avbpubkey", 44 private_key: "com.android.os.statsd.pem", 45} 46 47android_app_certificate { 48 name: "com.android.os.statsd.certificate", 49 // This will use com.android.os.statsd.x509.pem (the cert) and 50 // com.android.os.statsd.pk8 (the private key) 51 certificate: "com.android.os.statsd", 52} 53 54prebuilt_etc { 55 name: "com.android.os.statsd.init.rc", 56 src: "statsd.rc", 57 filename: "init.rc", 58 installable: false, 59} 60 61// JNI library for StatsLog.write 62cc_library_shared { 63 name: "libstats_jni", 64 srcs: ["jni/**/*.cpp"], 65 header_libs: ["libnativehelper_header_only"], 66 shared_libs: [ 67 "liblog", // Has a stable abi - should not be copied into apex. 68 "libstatssocket", 69 ], 70 stl: "libc++_static", 71 cflags: [ 72 "-Wall", 73 "-Werror", 74 "-Wextra", 75 "-Wno-unused-parameter", 76 ], 77 apex_available: [ 78 "com.android.os.statsd", 79 "test_com.android.os.statsd", 80 ], 81} 82