1// Copyright (C) 2020 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 19android_app_certificate { 20 name: "com.android.example.apex.certificate", 21 // This will use com.android.my.apex.x509.pem (the cert) and 22 // com.android.my.apex.pk8 (the private key) 23 certificate: "com.android.example.apex", 24} 25 26apex_key { 27 name: "com.android.example.apex.key", 28 public_key: "com.android.example.apex.avbpubkey", 29 private_key: "com.android.example.apex.pem", 30} 31 32apex { 33 name: "com.android.example.apex", 34 manifest: "manifest.json", 35 file_contexts: ":apex.test-file_contexts", 36 prebuilts: ["sample_prebuilt_file"], 37 key: "com.android.example.apex.key", 38 certificate: ":com.android.example.apex.certificate", 39 installable: false, 40 updatable:false, 41 generate_hashtree: false, 42} 43 44apex { 45 name: "com.android.example-legacy.apex", 46 manifest: "manifest.json", 47 file_contexts: ":apex.test-file_contexts", 48 prebuilts: ["sample_prebuilt_file"], 49 key: "com.android.example.apex.key", 50 certificate: ":com.android.example.apex.certificate", 51 min_sdk_version: "29", 52 installable: false, 53 generate_hashtree: false, 54} 55 56apex { 57 name: "com.android.example-logging_parent.apex", 58 manifest: "manifest.json", 59 file_contexts: ":apex.test-file_contexts", 60 prebuilts: ["sample_prebuilt_file"], 61 key: "com.android.example.apex.key", 62 certificate: ":com.android.example.apex.certificate", 63 installable: false, 64 logging_parent: "foobar", 65 updatable: false, 66} 67 68apex { 69 name: "com.android.example-overridden_package_name.apex", 70 manifest: "manifest.json", 71 file_contexts: ":apex.test-file_contexts", 72 prebuilts: ["sample_prebuilt_file"], 73 key: "com.android.example.apex.key", 74 certificate: ":com.android.example.apex.certificate", 75 installable: false, 76 package_name: "com.android.overridden.example.apex", 77 updatable: false, 78} 79