// // Copyright (C) 2021 The Android Open Source Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // package { default_applicable_licenses: ["Android-Apache-2.0"], } java_library { name: "cts_signature_query_service", srcs: ["src/**/*.java"] + ["src/**/I*.aidl"], sdk_version: "current", } // This is the first version of the test app signed with the initial signing // key. This app exports the bound service from the cts_signature_query_service // library and is used to verify end to end updates with key rotation. android_test { name: "CtsSignatureQueryService", defaults: ["cts_support_defaults"], compile_multilib: "both", sdk_version: "current", static_libs: ["cts_signature_query_service"], certificate: ":cts-ec-p256", v4_signature: true, test_suites: [ "cts", "general-tests", ], } // This is the second version of the test app signed with the rotated signing // key with an updated version number. This app is intended to verify that an // app continues to function as expected after an update with a rotated key. android_test { name: "CtsSignatureQueryService_v2", defaults: ["cts_support_defaults"], manifest: "AndroidManifest_v2.xml", compile_multilib: "both", sdk_version: "current", static_libs: ["cts_signature_query_service"], certificate: ":cts-ec-p256_2", additional_certificates: [":cts-ec-p256"], lineage: ":cts-ec-p256-por_1_2-default-caps.lineage", v4_signature: true, test_suites: [ "cts", "general-tests", ], } // This is the third version of the test app signed with the same rotated // signing key as v2. This app is intended to verify that an app can still // be updated and function as expected after the signing key has been rotated. android_test { name: "CtsSignatureQueryService_v3", defaults: ["cts_support_defaults"], manifest: "AndroidManifest_v3.xml", compile_multilib: "both", sdk_version: "current", static_libs: ["cts_signature_query_service"], certificate: ":cts-ec-p256_2", additional_certificates: [":cts-ec-p256"], lineage: ":cts-ec-p256-por_1_2-default-caps.lineage", v4_signature: true, test_suites: [ "cts", "general-tests", ], }