Muhammad Qureshi | b7c60a5 | 2019-08-16 16:32:29 -0700 | [diff] [blame] | 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 | |
| 15 | apex { |
| 16 | name: "com.android.os.statsd", |
Howard Ro | f40a3a9 | 2019-12-10 19:04:44 -0800 | [diff] [blame] | 17 | defaults: ["com.android.os.statsd-defaults"], |
Muhammad Qureshi | b7c60a5 | 2019-08-16 16:32:29 -0700 | [diff] [blame] | 18 | manifest: "apex_manifest.json", |
Howard Ro | f40a3a9 | 2019-12-10 19:04:44 -0800 | [diff] [blame] | 19 | } |
| 20 | |
| 21 | apex_defaults { |
Tej Singh | a2b78e4 | 2020-01-29 19:07:38 -0800 | [diff] [blame] | 22 | native_shared_libs: [ |
| 23 | "libstats_jni", |
| 24 | ], |
Muhammad Qureshi | b7c60a5 | 2019-08-16 16:32:29 -0700 | [diff] [blame] | 25 | // binaries: ["vold"], |
Muhammad Qureshi | 237c774 | 2019-12-12 11:03:55 -0800 | [diff] [blame] | 26 | java_libs: [ |
| 27 | "framework-statsd", |
| 28 | "service-statsd", |
| 29 | ], |
Muhammad Qureshi | b7c60a5 | 2019-08-16 16:32:29 -0700 | [diff] [blame] | 30 | // prebuilts: ["my_prebuilt"], |
Howard Ro | f40a3a9 | 2019-12-10 19:04:44 -0800 | [diff] [blame] | 31 | name: "com.android.os.statsd-defaults", |
Muhammad Qureshi | b7c60a5 | 2019-08-16 16:32:29 -0700 | [diff] [blame] | 32 | key: "com.android.os.statsd.key", |
| 33 | certificate: ":com.android.os.statsd.certificate", |
| 34 | } |
| 35 | |
| 36 | apex_key { |
| 37 | name: "com.android.os.statsd.key", |
| 38 | public_key: "com.android.os.statsd.avbpubkey", |
| 39 | private_key: "com.android.os.statsd.pem", |
| 40 | } |
| 41 | |
| 42 | android_app_certificate { |
| 43 | name: "com.android.os.statsd.certificate", |
| 44 | // This will use com.android.os.statsd.x509.pem (the cert) and |
| 45 | // com.android.os.statsd.pk8 (the private key) |
| 46 | certificate: "com.android.os.statsd", |
| 47 | } |
Tej Singh | a2b78e4 | 2020-01-29 19:07:38 -0800 | [diff] [blame] | 48 | |
| 49 | |
| 50 | // JNI library for StatsLog.write |
| 51 | cc_library_shared { |
| 52 | name: "libstats_jni", |
| 53 | srcs: ["jni/**/*.cpp"], |
| 54 | shared_libs: [ |
| 55 | "libnativehelper", // Has stable abi - should not be copied into apex. |
| 56 | "liblog", // Has a stable abi - should not be copied into apex. |
| 57 | ], |
| 58 | static_libs: [ |
| 59 | //TODO: make shared - need libstatssocket to also live in the apex. |
| 60 | "libstatssocket", |
| 61 | "libcutils", // TODO: remove - needed by libstatssocket |
| 62 | ], |
| 63 | //TODO: is libc++_static correct? |
| 64 | stl: "libc++_static", |
| 65 | cflags: [ |
| 66 | "-Wall", |
| 67 | "-Werror", |
| 68 | "-Wextra", |
| 69 | "-Wno-unused-parameter", |
| 70 | ], |
| 71 | apex_available: [ |
| 72 | "com.android.os.statsd", |
| 73 | "test_com.android.os.statsd", |
| 74 | //TODO (b/148620413): remove platform. |
| 75 | "//apex_available:platform", |
| 76 | ], |
| 77 | } |