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 srcs: [ 22 "java/**/*.java", 23 "java/**/*.aidl", 24 ], 25 path: "java", 26 visibility: ["//frameworks/base"], 27} 28 29java_library { 30 name: "framework-permission-s-shared", 31 srcs: [":framework-permission-s-shared-srcs"], 32 libs: [ 33 "framework-annotations-lib", 34 "unsupportedappusage", 35 ], 36 apex_available: [ 37 "com.android.permission", 38 "test_com.android.permission", 39 ], 40 installable: false, 41 min_sdk_version: "30", 42 sdk_version: "module_current", 43} 44 45java_sdk_library { 46 name: "framework-permission-s", 47 defaults: ["framework-module-defaults"], 48 srcs: [ 49 ":framework-permission-s-sources", 50 ], 51 libs: [ 52 "framework-annotations-lib", 53 "modules-annotation-minsdk", 54 ], 55 static_libs: [ 56 "framework-permission-s-shared", 57 ], 58 apex_available: [ 59 "com.android.permission", 60 "test_com.android.permission", 61 ], 62 hostdex: true, 63 // Restrict access to implementation library. 64 impl_library_visibility: [ 65 "//frameworks/base/apex/permission:__subpackages__", 66 "//packages/modules/Permission:__subpackages__", 67 ], 68 installable: true, 69 jarjar_rules: ":permission-jarjar-rules", 70 lint: { 71 strict_updatability_linting: true, 72 }, 73 min_sdk_version: "30", 74 permitted_packages: [ 75 "android.permission", 76 "android.app.role", 77 // For com.android.permission.jarjar. 78 "com.android.permission", 79 ], 80} 81