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