blob: 2f24a1d8a799abb28ac2e6b553bd3e6374ccd63f [file] [log] [blame]
Hai Zhanga130e332019-10-09 14:58:52 -07001// Copyright (C) 2019 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
Bob Badour2f0b2bb2021-02-03 20:35:08 -080015package {
16 default_applicable_licenses: ["Android-Apache-2.0"],
17}
18
Hai Zhanga130e332019-10-09 14:58:52 -070019apex {
20 name: "com.android.permission",
Hai Zhangc6e54db2019-11-08 15:23:40 -080021 defaults: ["com.android.permission-defaults"],
Hai Zhanga130e332019-10-09 14:58:52 -070022 manifest: "apex_manifest.json",
Hai Zhangc6e54db2019-11-08 15:23:40 -080023}
Hai Zhanga130e332019-10-09 14:58:52 -070024
Hai Zhangc6e54db2019-11-08 15:23:40 -080025apex_defaults {
26 name: "com.android.permission-defaults",
Jiyong Parkdd719922020-02-24 18:36:46 +090027 updatable: true,
Nikita Ioffe6d2de4d2020-11-12 17:59:38 +000028 min_sdk_version: "30",
satayevfee79d32021-05-12 15:42:54 +010029 bootclasspath_fragments: ["com.android.permission-bootclasspath-fragment"],
satayev49807c02021-05-17 21:38:31 +010030 systemserverclasspath_fragments: ["com.android.permission-systemserverclasspath-fragment"],
Anton Hansson9633ac72021-05-20 17:56:57 +010031 prebuilts: ["current_sdkinfo"],
Hai Zhanga130e332019-10-09 14:58:52 -070032 key: "com.android.permission.key",
33 certificate: ":com.android.permission.certificate",
Hai Zhanga4184522019-12-12 15:07:01 -080034 apps: ["PermissionController"],
Hai Zhanga130e332019-10-09 14:58:52 -070035}
36
37apex_key {
38 name: "com.android.permission.key",
39 public_key: "com.android.permission.avbpubkey",
40 private_key: "com.android.permission.pem",
41}
42
43android_app_certificate {
44 name: "com.android.permission.certificate",
45 certificate: "com.android.permission",
46}
Hai Zhang4e6bc7a2021-01-21 15:45:56 -080047
48filegroup {
49 name: "permission-jarjar-rules",
50 srcs: ["jarjar-rules.txt"],
51}
Hai Zhangc7b853e2021-02-05 18:40:04 -080052
53sdk {
Hai Zhangcc8b8b42021-02-13 22:09:15 -080054 name: "permission-module-sdk",
Hai Zhangc7b853e2021-02-05 18:40:04 -080055 java_sdk_libs: [
56 "framework-permission",
57 "framework-permission-s",
58 ],
59}
satayevfee79d32021-05-12 15:42:54 +010060
61// Encapsulate the contributions made by the com.android.permission to the bootclasspath.
62bootclasspath_fragment {
63 name: "com.android.permission-bootclasspath-fragment",
64 contents: [
65 "framework-permission",
66 "framework-permission-s",
67 ],
68 apex_available: ["com.android.permission"],
69}
satayev49807c02021-05-17 21:38:31 +010070
71// Encapsulate the contributions made by the com.android.permission to the systemserverclasspath.
72systemserverclasspath_fragment {
73 name: "com.android.permission-systemserverclasspath-fragment",
74 contents: ["service-permission"],
75 apex_available: ["com.android.permission"],
76}