1// Copyright (C) 2024 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 default_team: "trendy_team_android_permissions", 18} 19 20android_test { 21 name: "CtsRootPermissionTestCases", 22 defaults: ["cts_defaults"], 23 data: [ 24 ":CtsRootPermissionSignaturePermissionAllowlistNormalApp", 25 ], 26 libs: [ 27 "android.test.runner.stubs.system", 28 "android.test.base.stubs.system", 29 "bedstead-root-annotations", 30 ], 31 min_sdk_version: "30", 32 // TODO(b/326241209): @TestApi isn't supported in system server right now. 33 //sdk_version: "test_current", 34 platform_apis: true, 35 srcs: [ 36 "src/**/*.java", 37 ], 38 static_libs: [ 39 "androidx.test.core", 40 "androidx.test.rules", 41 "compatibility-device-util-axt", 42 "flag-junit", 43 "platform-test-annotations", 44 "services.core", 45 "truth", 46 ], 47 target_sdk_version: "35", 48 test_suites: [ 49 "cts_root", 50 // For gts-root before cts-root is required. 51 "gts", 52 "general-tests", 53 ], 54} 55