Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2660514e authored by Joshua Trask's avatar Joshua Trask
Browse files

Add priv-app allow-listing for unbundled chooser.

These two permissions are required for the most basic
ChooserActivity flows (as determined by runtime exceptions
during prototyping). Without this allow-listing, the
unbundled chooser's intent resolvers fail to register at
startup, and the device boot-loops.

Among the privileges that might require allow-listing,
these two in particular were sufficient for showing a
basic Chooser UI and launching the user-selected target.
More complex Chooser flows may turn out to require
additional permissions later on.

Test: manual testing as described above, but requires
several local-only changes to exercise the flow, and
this CL has to be the first to go in (but has no
side-effects of its own).

Change-Id: I6a24a46a91199e8b3fb643f047a9b9412b19eb8d
parent d1e53443
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -12,7 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.


// Sysconfig files

package {
@@ -118,6 +117,13 @@ prebuilt_etc {
    filename_from_src: true,
}

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,
+22 −0
Original line number Diff line number Diff line
<?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>