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 17// This is the instrumentation test package for the CtsSignatureQueryService 18// app. This app verifies that the standalone app is functioning as expected 19// after a key rotation and provides a companion package that can be used for 20// the PackageManager checkSignatures APIs. 21 22package { 23 default_team: "trendy_team_platform_security", 24 // See: http://go/android-license-faq 25 default_applicable_licenses: ["Android-Apache-2.0"], 26} 27 28android_test { 29 name: "CtsSignatureQueryServiceTest", 30 defaults: ["cts_support_defaults"], 31 compile_multilib: "both", 32 sdk_version: "current", 33 srcs: ["src/**/*.java"], 34 static_libs: [ 35 "cts_signature_query_service", 36 "androidx.test.core", 37 "androidx.test.rules", 38 ], 39 libs: [ 40 "android.test.runner.stubs", 41 "android.test.base.stubs", 42 ], 43 test_suites: [ 44 "cts", 45 "general-tests", 46 ], 47 certificate: ":ec-p256", 48 v4_signature: true, 49 // Disable dexpreopt and <uses-library> check for test 50 enforce_uses_libs: false, 51 dex_preopt: { 52 enabled: false, 53 }, 54} 55 56// This is the instrumentation test package signed with the same signing key and 57// lineage as v2 and v3 of the CtsSignatureQueryService test app. 58android_test { 59 name: "CtsSignatureQueryServiceTest_v2", 60 defaults: ["cts_support_defaults"], 61 manifest: "AndroidManifest_v2.xml", 62 compile_multilib: "both", 63 sdk_version: "current", 64 srcs: ["src/**/*.java"], 65 static_libs: [ 66 "cts_signature_query_service", 67 "androidx.test.core", 68 "androidx.test.rules", 69 ], 70 libs: [ 71 "android.test.runner.stubs", 72 "android.test.base.stubs", 73 ], 74 test_suites: [ 75 "cts", 76 "general-tests", 77 ], 78 certificate: ":ec-p256_2", 79 additional_certificates: [":ec-p256"], 80 lineage: ":ec-p256-por_1_2-default-caps", 81 v4_signature: true, 82 // Disable dexpreopt and <uses-library> check for test 83 enforce_uses_libs: false, 84 dex_preopt: { 85 enabled: false, 86 }, 87} 88 89// This is the instrumentation test package signed with the same signing key and 90// lineage as v2 and v3 of the CtsSignatureQueryService test app with rotation 91// targeting SDK version 33. 92android_test { 93 name: "CtsSignatureQueryServiceTest_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 srcs: ["src/**/*.java"], 100 static_libs: [ 101 "cts_signature_query_service", 102 "androidx.test.core", 103 "androidx.test.rules", 104 ], 105 libs: [ 106 "android.test.runner.stubs", 107 "android.test.base.stubs", 108 ], 109 test_suites: [ 110 "cts", 111 "general-tests", 112 ], 113 certificate: ":ec-p256_2", 114 additional_certificates: [":ec-p256"], 115 lineage: ":ec-p256-por_1_2-default-caps", 116 rotationMinSdkVersion: "33", 117 v4_signature: true, 118 // Disable dexpreopt and <uses-library> check for test 119 enforce_uses_libs: false, 120 dex_preopt: { 121 enabled: false, 122 }, 123} 124