1// Copyright (C) 2021 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 19filegroup { 20 name: "framework-permission-s-sources", 21 defaults: ["framework-sources-module-defaults"], 22 srcs: [ 23 "java/**/*.java", 24 "java/**/*.aidl", 25 ], 26 path: "java", 27} 28 29filegroup { 30 name: "safetycenter-config-api-sources", 31 srcs: ["java/android/safetycenter/config/*.java"], 32 path: "java", 33 visibility: ["//packages/modules/Permission/SafetyCenter/ConfigLintChecker"], 34} 35 36filegroup { 37 name: "safetycenter-config-schemas", 38 srcs: ["java/android/safetycenter/config/safety_center_config*.xsd"], 39 path: "java/android/safetycenter/config/", 40 visibility: ["//packages/modules/Permission/SafetyCenter/ConfigLintChecker"], 41} 42 43java_library { 44 name: "framework-permission-s-shared", 45 srcs: [":framework-permission-s-shared-srcs"], 46 libs: [ 47 "framework-annotations-lib", 48 "unsupportedappusage", 49 ], 50 apex_available: [ 51 "com.android.permission", 52 "test_com.android.permission", 53 ], 54 installable: false, 55 min_sdk_version: "30", 56 sdk_version: "module_current", 57} 58 59java_sdk_library { 60 name: "framework-permission-s", 61 defaults: ["framework-module-defaults"], 62 srcs: [ 63 ":framework-permission-s-sources", 64 ], 65 libs: [ 66 "androidx.annotation_annotation", 67 "framework-annotations-lib", 68 ], 69 static_libs: [ 70 "framework-permission-s-shared", 71 "modules-utils-build", 72 ], 73 apex_available: [ 74 "com.android.permission", 75 "test_com.android.permission", 76 ], 77 hostdex: true, 78 // Restrict access to implementation library. 79 impl_library_visibility: [ 80 "//frameworks/base/apex/permission:__subpackages__", 81 "//packages/modules/Permission:__subpackages__", 82 ], 83 installable: true, 84 jarjar_rules: "jarjar-rules.txt", 85 lint: { 86 strict_updatability_linting: true, 87 }, 88 min_sdk_version: "31", 89 permitted_packages: [ 90 "android.permission", 91 "android.app.role", 92 "android.safetycenter", 93 "android.safetylabel", 94 ], 95} 96 97java_api_contribution { 98 name: "framework-permission-s-public-stubs", 99 api_surface: "public", 100 api_file: "api/current.txt", 101 visibility: [ 102 "//build/orchestrator/apis", 103 ], 104} 105