130 lines
4.4 KiB
Plaintext
130 lines
4.4 KiB
Plaintext
// Copyright (C) 2009 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_test_host {
|
|
name: "CtsAppSecurityHostTestCases",
|
|
defaults: ["cts_defaults"],
|
|
|
|
// Only compile source java files in this apk.
|
|
srcs: [
|
|
"src/**/*.java",
|
|
"src/**/*.kt",
|
|
],
|
|
libs: [
|
|
"cts-tradefed",
|
|
"tradefed",
|
|
"compatibility-host-util",
|
|
"truth-prebuilt",
|
|
"hamcrest-library",
|
|
],
|
|
|
|
static_libs: [
|
|
"CompatChangeGatingTestBase",
|
|
"CtsPkgInstallerConstants",
|
|
"cts-host-utils",
|
|
"cts-statsd-atom-host-test-utils",
|
|
"sts-host-util",
|
|
],
|
|
|
|
java_resource_dirs: ["res"],
|
|
|
|
// tag this module as a cts test artifact
|
|
test_suites: [
|
|
"cts",
|
|
"general-tests",
|
|
"mts-documentsui",
|
|
"mts-mainline-infra",
|
|
"mts-mediaprovider",
|
|
"sts",
|
|
],
|
|
|
|
required: [
|
|
"CtsCorruptApkTests_b71360999",
|
|
"CtsCorruptApkTests_b71361168",
|
|
"CtsCorruptApkTests_b79488511",
|
|
"CtsCorruptApkTests_Compressed_Q",
|
|
"CtsCorruptApkTests_Compressed_R",
|
|
"CtsCorruptApkTests_Unaligned_Q",
|
|
"CtsCorruptApkTests_Unaligned_R",
|
|
"CtsSignatureQueryService",
|
|
"CtsSignatureQueryService_v2",
|
|
"CtsSignatureQueryService_v3",
|
|
"CtsSignatureQueryServiceTest",
|
|
"CtsSignatureQueryServiceTest_v2",
|
|
],
|
|
|
|
// Prebuilts of all ABIs.
|
|
data: [
|
|
":CtsSignatureQueryService",
|
|
":CtsSignatureQueryServiceTest",
|
|
":CtsApkVerityTestPrebuiltFiles",
|
|
":CtsExternalStorageApp",
|
|
":CtsReadExternalStorageApp",
|
|
":CtsWriteExternalStorageApp",
|
|
":CtsWriteExternalStorageApp2",
|
|
":CtsMultiUserStorageApp",
|
|
":CtsMediaStorageApp",
|
|
":CtsMediaStorageApp28",
|
|
":CtsMediaStorageApp29",
|
|
":CtsMediaStorageApp31",
|
|
":CtsEphemeralTestsNormalApp",
|
|
":CtsEphemeralTestsUnexposedApp",
|
|
":CtsEphemeralTestsImplicitApp",
|
|
":CtsEphemeralTestsEphemeralApp1",
|
|
":CtsEphemeralTestsEphemeralApp2",
|
|
":CtsEphemeralTestsUserApp",
|
|
":CtsEphemeralTestsUserAppTest",
|
|
":CtsV3SigningSchemeRotationTest",
|
|
":CtsPkgInstallTinyApp",
|
|
":CtsPkgInstallTinyAppV2",
|
|
":v1v2-ec-p256-two-signers-targetSdk-30",
|
|
":v3-ec-p256-1-companion-usesperm",
|
|
":v3-ec-p256-1-sharedUid",
|
|
":v3-ec-p256-1-sharedUid-companion2",
|
|
":v3-ec-p256_2-companion-uses-knownSigner",
|
|
":v3-ec-p256-2-sharedUid-companion",
|
|
":v3-ec-p256_3-companion-uses-knownSigner",
|
|
":v3-ec-p256-with-por_1_2_3-1-no-caps-2-default-declperm",
|
|
":v3-ec-p256-with-por-1_2_3_4_5-default-caps",
|
|
":v3-ec-p256-with-por_1_2_3-no-caps-declperm",
|
|
":v3-ec-p256-with-por_1_2_4-companion-usesperm",
|
|
":v3-ec-p256-with-por_1_2-companion-uses-knownSigner",
|
|
":v3-ec-p256-with-por_1_2-default-caps",
|
|
":v3-ec-p256-with-por_1_2-default-caps-sharedUid",
|
|
":v3-ec-p256-with-por_1_2-default-caps-sharedUid-companion",
|
|
":v3-ec-p256-with-por_1_2-default-caps-sharedUid-companion3",
|
|
":v3-ec-p256-with-por_1_2-no-perm-cap-sharedUid",
|
|
":v3-ec-p256-with-por_1_2-no-shUid-cap-declperm2",
|
|
":v3-ec-p256-with-por_1_2-no-shUid-cap-sharedUid",
|
|
":v3-ec-p256-with-por_1_2-no-shUid-cap-sharedUid-companion",
|
|
":v3-ec-p256-with-por_1_2-no-shUid-cap-sharedUid-companion2",
|
|
":v3-por_Y_1_2-default-caps-sharedUid",
|
|
":v3-por_Z_1_2-default-caps-sharedUid-companion",
|
|
":v3-rsa-2048-decl-knownSigner-ec-p256-1-3",
|
|
":v3-rsa-2048-decl-knownSigner-str-const-ec-p256-1",
|
|
":v3-rsa-2048-decl-knownSigner-str-res-ec-p256-1",
|
|
":v3-rsa-2048-declperm",
|
|
],
|
|
per_testcase_directory: true,
|
|
}
|
|
|
|
filegroup {
|
|
name: "CtsHostsideTestsAppSecurityUtil",
|
|
srcs: ["src/android/appsecurity/cts/Utils.java"],
|
|
}
|