1// Copyright (C) 2009 The Android Open Source Project 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14 15package { 16 default_applicable_licenses: ["Android-Apache-2.0"], 17} 18 19java_test_host { 20 name: "CtsAppSecurityHostTestCases", 21 defaults: ["cts_defaults"], 22 23 // Only compile source java files in this apk. 24 srcs: ["src/**/*.java", "src/**/*.kt"], 25 26 libs: [ 27 "cts-tradefed", 28 "tradefed", 29 "compatibility-host-util", 30 "truth-prebuilt", 31 "hamcrest-library", 32 ], 33 34 static_libs: [ 35 "CompatChangeGatingTestBase", 36 "CtsPkgInstallerConstants", 37 "cts-host-utils", 38 "cts-statsd-atom-host-test-utils", 39 ], 40 41 java_resource_dirs: ["res"], 42 43 // tag this module as a cts test artifact 44 test_suites: [ 45 "cts", 46 "general-tests", 47 "mts-documentsui", 48 "mts-mainline-infra", 49 "mts-mediaprovider", 50 "sts", 51 ], 52 53 required: [ 54 "CtsCorruptApkTests_b71360999", 55 "CtsCorruptApkTests_b71361168", 56 "CtsCorruptApkTests_b79488511", 57 "CtsCorruptApkTests_Compressed_Q", 58 "CtsCorruptApkTests_Compressed_R", 59 "CtsCorruptApkTests_Unaligned_Q", 60 "CtsCorruptApkTests_Unaligned_R", 61 "CtsSignatureQueryService", 62 "CtsSignatureQueryService_v2", 63 "CtsSignatureQueryService_v3", 64 "CtsSignatureQueryServiceTest", 65 "CtsSignatureQueryServiceTest_v2", 66 ], 67 68 // Prebuilts of all ABIs. 69 data: [":CtsApkVerityTestPrebuiltFiles"], 70} 71 72filegroup { 73 name: "CtsHostsideTestsAppSecurityUtil", 74 srcs: ["src/android/appsecurity/cts/Utils.java"], 75} 76 77filegroup { 78 name: "cts-ec-p256-por_1_2-default-caps.lineage", 79 srcs: ["certs/pkgsigverify/ec-p256-por_1_2-default-caps"], 80} 81