summaryrefslogtreecommitdiff
path: root/Android.bp
diff options
context:
space:
mode:
authorHai Zhang <zhanghai@google.com>2019-10-09 14:58:52 -0700
committerHai Zhang <zhanghai@google.com>2019-10-11 12:32:38 -0700
commita130e33a6ef8dc7f70327b1ed8f89348df497868 (patch)
treee2b613587ee122210a8145948e6c9efd94540c76 /Android.bp
parent54e0c99fe8d97e521feba2641b4fb6b6c43485c9 (diff)
downloadPermission-a130e33a6ef8dc7f70327b1ed8f89348df497868.tar.gz
Add APEX module for permission.
We need an APEX module for permission to reliably roll back runtime permission state, specifically, platform runtime-permissions.xml will be moved into the data directory of this APEX and be rolled back when PermissionController is rolled back. Bug: 136503238 Test: build Change-Id: I93166f8dc4783bd09afa6be19a302fb0c2decd0d
Diffstat (limited to 'Android.bp')
-rw-r--r--Android.bp33
1 files changed, 33 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
new file mode 100644
index 000000000..027481401
--- /dev/null
+++ b/Android.bp
@@ -0,0 +1,33 @@
+// Copyright (C) 2019 The Android Open Source Project
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+apex {
+ name: "com.android.permission",
+
+ manifest: "apex_manifest.json",
+
+ key: "com.android.permission.key",
+ certificate: ":com.android.permission.certificate",
+}
+
+apex_key {
+ name: "com.android.permission.key",
+ public_key: "com.android.permission.avbpubkey",
+ private_key: "com.android.permission.pem",
+}
+
+android_app_certificate {
+ name: "com.android.permission.certificate",
+ certificate: "com.android.permission",
+}