Hai Zhang | a130e33 | 2019-10-09 14:58:52 -0700 | [diff] [blame] | 1 | // 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 Badour | 2f0b2bb | 2021-02-03 20:35:08 -0800 | [diff] [blame] | 15 | package { |
| 16 | default_applicable_licenses: ["Android-Apache-2.0"], |
| 17 | } |
| 18 | |
Hai Zhang | a130e33 | 2019-10-09 14:58:52 -0700 | [diff] [blame] | 19 | apex { |
| 20 | name: "com.android.permission", |
Hai Zhang | c6e54db | 2019-11-08 15:23:40 -0800 | [diff] [blame] | 21 | defaults: ["com.android.permission-defaults"], |
Hai Zhang | a130e33 | 2019-10-09 14:58:52 -0700 | [diff] [blame] | 22 | manifest: "apex_manifest.json", |
Hai Zhang | c6e54db | 2019-11-08 15:23:40 -0800 | [diff] [blame] | 23 | } |
Hai Zhang | a130e33 | 2019-10-09 14:58:52 -0700 | [diff] [blame] | 24 | |
Hai Zhang | c6e54db | 2019-11-08 15:23:40 -0800 | [diff] [blame] | 25 | apex_defaults { |
| 26 | name: "com.android.permission-defaults", |
Jiyong Park | dd71992 | 2020-02-24 18:36:46 +0900 | [diff] [blame] | 27 | updatable: true, |
Nikita Ioffe | 6d2de4d | 2020-11-12 17:59:38 +0000 | [diff] [blame] | 28 | min_sdk_version: "30", |
satayev | fee79d3 | 2021-05-12 15:42:54 +0100 | [diff] [blame] | 29 | bootclasspath_fragments: ["com.android.permission-bootclasspath-fragment"], |
satayev | 49807c0 | 2021-05-17 21:38:31 +0100 | [diff] [blame] | 30 | systemserverclasspath_fragments: ["com.android.permission-systemserverclasspath-fragment"], |
Anton Hansson | 9633ac7 | 2021-05-20 17:56:57 +0100 | [diff] [blame] | 31 | prebuilts: ["current_sdkinfo"], |
Hai Zhang | a130e33 | 2019-10-09 14:58:52 -0700 | [diff] [blame] | 32 | key: "com.android.permission.key", |
| 33 | certificate: ":com.android.permission.certificate", |
Hai Zhang | a418452 | 2019-12-12 15:07:01 -0800 | [diff] [blame] | 34 | apps: ["PermissionController"], |
Hai Zhang | a130e33 | 2019-10-09 14:58:52 -0700 | [diff] [blame] | 35 | } |
| 36 | |
| 37 | apex_key { |
| 38 | name: "com.android.permission.key", |
| 39 | public_key: "com.android.permission.avbpubkey", |
| 40 | private_key: "com.android.permission.pem", |
| 41 | } |
| 42 | |
| 43 | android_app_certificate { |
| 44 | name: "com.android.permission.certificate", |
| 45 | certificate: "com.android.permission", |
| 46 | } |
Hai Zhang | 4e6bc7a | 2021-01-21 15:45:56 -0800 | [diff] [blame] | 47 | |
| 48 | filegroup { |
| 49 | name: "permission-jarjar-rules", |
| 50 | srcs: ["jarjar-rules.txt"], |
| 51 | } |
Hai Zhang | c7b853e | 2021-02-05 18:40:04 -0800 | [diff] [blame] | 52 | |
| 53 | sdk { |
Hai Zhang | cc8b8b4 | 2021-02-13 22:09:15 -0800 | [diff] [blame] | 54 | name: "permission-module-sdk", |
Anton Hansson | d9571a3 | 2021-06-07 15:42:19 +0100 | [diff] [blame] | 55 | bootclasspath_fragments: ["com.android.permission-bootclasspath-fragment"], |
| 56 | java_sdk_libs: ["service-permission"], |
Hai Zhang | c7b853e | 2021-02-05 18:40:04 -0800 | [diff] [blame] | 57 | } |
satayev | fee79d3 | 2021-05-12 15:42:54 +0100 | [diff] [blame] | 58 | |
| 59 | // Encapsulate the contributions made by the com.android.permission to the bootclasspath. |
| 60 | bootclasspath_fragment { |
| 61 | name: "com.android.permission-bootclasspath-fragment", |
| 62 | contents: [ |
| 63 | "framework-permission", |
| 64 | "framework-permission-s", |
| 65 | ], |
| 66 | apex_available: ["com.android.permission"], |
| 67 | } |
satayev | 49807c0 | 2021-05-17 21:38:31 +0100 | [diff] [blame] | 68 | |
| 69 | // Encapsulate the contributions made by the com.android.permission to the systemserverclasspath. |
| 70 | systemserverclasspath_fragment { |
| 71 | name: "com.android.permission-systemserverclasspath-fragment", |
| 72 | contents: ["service-permission"], |
| 73 | apex_available: ["com.android.permission"], |
| 74 | } |