blob: c0560f61460f42d919789b181e076c69cc27c292 [file] [log] [blame]
Hai Zhang82a62272020-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",
22}
23
Paul Duffin35891742020-05-19 20:53:34 +010024java_sdk_library {
Hai Zhang82a62272020-01-14 21:56:34 -080025 name: "framework-permission",
Paul Duffin35891742020-05-19 20:53:34 +010026 defaults: ["framework-module-defaults"],
Paul Duffindde22302020-05-31 11:32:06 +010027
Paul Duffindde22302020-05-31 11:32:06 +010028 // Restrict access to implementation library.
Anton Hansson83dd4242020-08-18 12:52:51 +010029 impl_library_visibility: ["//frameworks/base/apex/permission:__subpackages__"],
Paul Duffindde22302020-05-31 11:32:06 +010030
Hai Zhang82a62272020-01-14 21:56:34 -080031 srcs: [
32 ":framework-permission-sources",
33 ],
Paul Duffin35891742020-05-19 20:53:34 +010034
Hai Zhang82a62272020-01-14 21:56:34 -080035 apex_available: [
36 "com.android.permission",
37 "test_com.android.permission",
38 ],
Vladimir Marko76e7ff42020-03-25 12:27:18 +000039 permitted_packages: [
40 "android.permission",
41 "android.app.role",
42 ],
Hai Zhang82a62272020-01-14 21:56:34 -080043 hostdex: true,
44 installable: true,
Hai Zhang82a62272020-01-14 21:56:34 -080045}