summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Joshua Trask <joshtrask@google.com> 2021-11-17 15:58:27 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2021-11-17 15:58:27 +0000
commitbab70a55ba7248cccb11a4f25e55b753582b922c (patch)
tree6eca30cda8330fe77d46b47346543c9cfcd01f82
parent513100fee56c21c2e6602c04c8b0d8a2ac720426 (diff)
parent2660514eeabd7c4bdef1861a2752e6ceff69a478 (diff)
Merge "Add priv-app allow-listing for unbundled chooser."
-rw-r--r--data/etc/Android.bp8
-rw-r--r--data/etc/com.android.intentresolver.xml22
2 files changed, 29 insertions, 1 deletions
diff --git a/data/etc/Android.bp b/data/etc/Android.bp
index be1e2b2247fb..88228f26f17e 100644
--- a/data/etc/Android.bp
+++ b/data/etc/Android.bp
@@ -12,7 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-
// Sysconfig files
package {
@@ -119,6 +118,13 @@ prebuilt_etc {
}
prebuilt_etc {
+ name: "privapp_whitelist_com.android.intentresolver",
+ sub_dir: "permissions",
+ src: "com.android.intentresolver.xml",
+ filename_from_src: true,
+}
+
+prebuilt_etc {
name: "privapp_whitelist_com.android.launcher3",
system_ext_specific: true,
sub_dir: "permissions",
diff --git a/data/etc/com.android.intentresolver.xml b/data/etc/com.android.intentresolver.xml
new file mode 100644
index 000000000000..0f1c4673562e
--- /dev/null
+++ b/data/etc/com.android.intentresolver.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ ~ Copyright (C) 2021 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
+ -->
+<permissions>
+ <privapp-permissions package="com.android.intentresolver">
+ <permission name="android.permission.INTERACT_ACROSS_USERS"/>
+ <permission name="android.permission.MANAGE_USERS"/>
+ </privapp-permissions>
+</permissions>