1// 2// Copyright (C) 2021 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 default_applicable_licenses: ["Android-Apache-2.0"], 19} 20 21// This is the instrumentation test package for the CtsSignatureQueryService 22// app. This app verifies that the standalone app is functioning as expected 23// after a key rotation and provides a companion package that can be used for 24// the PackageManager checkSignatures APIs. 25android_test { 26 name: "CtsSignatureQueryServiceTest", 27 defaults: ["cts_support_defaults"], 28 compile_multilib: "both", 29 sdk_version: "current", 30 srcs: ["src/**/*.java"], 31 static_libs: [ 32 "cts_signature_query_service", 33 "androidx.test.core", 34 "androidx.test.rules", 35 ], 36 libs: [ 37 "android.test.runner.stubs", 38 "android.test.base.stubs", 39 ], 40 test_suites: [ 41 "cts", 42 "general-tests", 43 ], 44 certificate: ":cts-ec-p256", 45 v4_signature: true, 46 // Disable dexpreopt and <uses-library> check for test. 47 enforce_uses_libs: false, 48 dex_preopt: { 49 enabled: false, 50 }, 51} 52 53// This is the instrumentation test package signed with the same signing key and 54// lineage as v2 and v3 of the CtsSignatureQueryService test app. 55android_test { 56 name: "CtsSignatureQueryServiceTest_v2", 57 defaults: ["cts_support_defaults"], 58 compile_multilib: "both", 59 sdk_version: "current", 60 srcs: ["src/**/*.java"], 61 static_libs: [ 62 "cts_signature_query_service", 63 "androidx.test.core", 64 "androidx.test.rules", 65 ], 66 libs: [ 67 "android.test.runner.stubs", 68 "android.test.base.stubs", 69 ], 70 test_suites: [ 71 "cts", 72 "general-tests", 73 ], 74 certificate: ":cts-ec-p256_2", 75 additional_certificates: [":cts-ec-p256"], 76 lineage: ":cts-ec-p256-por_1_2-default-caps.lineage", 77 v4_signature: true, 78 79 // Disable dexpreopt and <uses-library> check for test. 80 enforce_uses_libs: false, 81 dex_preopt: { 82 enabled: false, 83 }, 84} 85