1// Copyright (C) 2024 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 15package { 16 default_applicable_licenses: ["Android-Apache-2.0"], 17} 18 19apex_key { 20 name: "com.android.uprobestats.key", 21 public_key: "com.android.uprobestats.avbpubkey", 22 private_key: "com.android.uprobestats.pem", 23} 24 25android_app_certificate { 26 name: "com.android.uprobestats.certificate", 27 certificate: "com.android.uprobestats", 28} 29 30prebuilt_etc { 31 name: "com.android.uprobestats.init.rc", 32 src: "UprobeStats-mainline.rc", 33 filename: "init.rc", 34 installable: false, 35} 36 37apex { 38 // This apex will be enabled using release_uprobestats_module flag 39 enabled: select(release_flag("RELEASE_UPROBESTATS_MODULE"), { 40 true: true, 41 false: false, 42 }), 43 44 name: "com.android.uprobestats", 45 binaries: [ 46 "uprobestats", 47 "uprobestatsbpfload", 48 ], 49 50 prebuilts: [ 51 "com.android.uprobestats.init.rc", 52 ], 53 54 bpfs: [ 55 "BitmapAllocation.o", 56 "GenericInstrumentation.o", 57 "ProcessManagement.o", 58 ], 59 60 native_shared_libs: [ 61 "libuprobestats_client", 62 ], 63 manifest: "manifest.json", 64 file_contexts: ":com.android.uprobestats-file_contexts", 65 key: "com.android.uprobestats.key", 66 certificate: ":com.android.uprobestats.certificate", 67 defaults: ["b-launched-apex-module"], 68 // temporarily override the value from the V defaults so that 69 // the build still works on `next` for now. 70 min_sdk_version: "35", 71} 72