1// 2// Copyright (C) 2020 The Android Open Source Project 3// 4// Licensed under the Apache License, Version 2.0 (the "License"); 5// you may not use this file except in compliance with the License. 6// You may obtain a copy of the License at 7// 8// http://www.apache.org/licenses/LICENSE-2.0 9// 10// Unless required by applicable law or agreed to in writing, software 11// distributed under the License is distributed on an "AS IS" BASIS, 12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13// See the License for the specific language governing permissions and 14// limitations under the License. 15// 16 17package { 18 // See: http://go/android-license-faq 19 default_applicable_licenses: ["Android-Apache-2.0"], 20} 21 22java_library { 23 name: "cts_signature_query_service", 24 srcs: [ 25 "src/**/*.java", 26 "src/**/I*.aidl", 27 ], 28 sdk_version: "current", 29} 30 31// This is the first version of the test app signed with the initial signing 32// key. This app exports the bound service from the cts_signature_query_service 33// library and is used to verify end to end updates with key rotation. 34android_test { 35 name: "CtsSignatureQueryService", 36 defaults: ["cts_support_defaults"], 37 compile_multilib: "both", 38 sdk_version: "current", 39 static_libs: ["cts_signature_query_service"], 40 test_suites: [ 41 "cts", 42 "general-tests", 43 ], 44 certificate: ":ec-p256", 45 v4_signature: true, 46} 47 48// This is the second version of the test app signed with the rotated signing 49// key with an updated version number. This app is intended to verify that an 50// app continues to function as expected after an update with a rotated key. 51android_test { 52 name: "CtsSignatureQueryService_v2", 53 defaults: ["cts_support_defaults"], 54 manifest: "AndroidManifest_v2.xml", 55 compile_multilib: "both", 56 sdk_version: "current", 57 static_libs: ["cts_signature_query_service"], 58 test_suites: [ 59 "cts", 60 "general-tests", 61 ], 62 certificate: ":ec-p256_2", 63 additional_certificates: [":ec-p256"], 64 lineage: ":ec-p256-por_1_2-default-caps", 65 v4_signature: true, 66} 67 68// This is the third version of the test app signed with the same rotated 69// signing key as v2. This app is intended to verify that an app can still 70// be updated and function as expected after the signing key has been rotated. 71android_test { 72 name: "CtsSignatureQueryService_v3", 73 defaults: ["cts_support_defaults"], 74 manifest: "AndroidManifest_v3.xml", 75 compile_multilib: "both", 76 sdk_version: "current", 77 static_libs: ["cts_signature_query_service"], 78 test_suites: [ 79 "cts", 80 "general-tests", 81 ], 82 certificate: ":ec-p256_2", 83 additional_certificates: [":ec-p256"], 84 lineage: ":ec-p256-por_1_2-default-caps", 85 v4_signature: true, 86} 87 88// This is the second version of the test app signed with the rotated signing 89// key targeting SDK version 33 for rotation with an updated version number. 90// This app is intended to verify that an app continues to function as expected 91// after an update with a rotated key in the v3.1 block. 92android_test { 93 name: "CtsSignatureQueryService_v2-tgt-33", 94 defaults: ["cts_support_defaults"], 95 manifest: "AndroidManifest_v2.xml", 96 compile_multilib: "both", 97 min_sdk_version: "32", 98 sdk_version: "current", 99 static_libs: ["cts_signature_query_service"], 100 test_suites: [ 101 "cts", 102 "general-tests", 103 ], 104 certificate: ":ec-p256_2", 105 additional_certificates: [":ec-p256"], 106 lineage: ":ec-p256-por_1_2-default-caps", 107 rotationMinSdkVersion: "33", 108 v4_signature: true, 109} 110 111// This is the third version of the test app signed with the same rotated 112// signing key as v2 and targeting SDK version 33 for rotation. This app 113// is intended to verify that an app can still be updated and function as 114// expected after the signing key has been rotated in the v3.1 block. 115android_test { 116 name: "CtsSignatureQueryService_v3-tgt-33", 117 defaults: ["cts_support_defaults"], 118 manifest: "AndroidManifest_v3.xml", 119 compile_multilib: "both", 120 min_sdk_version: "32", 121 sdk_version: "current", 122 static_libs: ["cts_signature_query_service"], 123 test_suites: [ 124 "cts", 125 "general-tests", 126 ], 127 certificate: ":ec-p256_2", 128 additional_certificates: [":ec-p256"], 129 lineage: ":ec-p256-por_1_2-default-caps", 130 rotationMinSdkVersion: "33", 131 v4_signature: true, 132} 133