blob: 2150cb41ff5b889f620e49a5191e27b4f17865cf [file] [log] [blame]
Hai Zhang36fd6402020-01-14 21:56:34 -08001// 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
15filegroup {
16 name: "framework-permission-sources",
17 srcs: [
18 "java/**/*.java",
19 "java/**/*.aidl",
20 ],
21 path: "java",
Anton Hanssond6b93552020-12-15 18:28:20 +000022 visibility: ["//frameworks/base"],
Hai Zhang36fd6402020-01-14 21:56:34 -080023}
24
Paul Duffinc8ed83f2020-05-19 20:53:34 +010025java_sdk_library {
Hai Zhang36fd6402020-01-14 21:56:34 -080026 name: "framework-permission",
Paul Duffinc8ed83f2020-05-19 20:53:34 +010027 defaults: ["framework-module-defaults"],
Paul Duffin85f16af2020-05-31 11:32:06 +010028
Paul Duffin85f16af2020-05-31 11:32:06 +010029 // Restrict access to implementation library.
Anton Hanssonedc58732020-08-18 12:52:51 +010030 impl_library_visibility: ["//frameworks/base/apex/permission:__subpackages__"],
Paul Duffin85f16af2020-05-31 11:32:06 +010031
Hai Zhang36fd6402020-01-14 21:56:34 -080032 srcs: [
33 ":framework-permission-sources",
34 ],
Paul Duffinc8ed83f2020-05-19 20:53:34 +010035
Hai Zhang36fd6402020-01-14 21:56:34 -080036 apex_available: [
37 "com.android.permission",
38 "test_com.android.permission",
39 ],
Hai Zhang748a31d2021-01-21 12:48:43 -080040 min_sdk_version: "30",
Vladimir Marko53133e72020-03-25 12:27:18 +000041 permitted_packages: [
42 "android.permission",
43 "android.app.role",
44 ],
Hai Zhang36fd6402020-01-14 21:56:34 -080045 hostdex: true,
46 installable: true,
Hai Zhang36fd6402020-01-14 21:56:34 -080047}