1// Copyright (C) 2020 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_team: "trendy_team_android_permissions", 17 default_applicable_licenses: ["Android-Apache-2.0"], 18} 19 20filegroup { 21 name: "framework-permission-sources", 22 defaults: ["framework-sources-module-defaults"], 23 srcs: [ 24 "java/**/*.java", 25 "java/**/*.aidl", 26 ], 27 path: "java", 28} 29 30java_sdk_library { 31 name: "framework-permission", 32 defaults: ["framework-module-defaults"], 33 34 // Restrict access to implementation library. 35 impl_library_visibility: [ 36 "//frameworks/base/apex/permission:__subpackages__", 37 "//packages/modules/Permission:__subpackages__", 38 ], 39 40 srcs: [ 41 ":framework-permission-sources", 42 ], 43 44 apex_available: [ 45 "com.android.permission", 46 "test_com.android.permission", 47 ], 48 lint: { 49 strict_updatability_linting: true, 50 }, 51 min_sdk_version: "30", 52 permitted_packages: [ 53 "android.permission", 54 "android.app.role", 55 ], 56 hostdex: true, 57 installable: true, 58} 59