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

Commit 9f0119b7 authored by Arc Wang's avatar Arc Wang
Browse files

Add the permissions for Settings deep link

android.permission.ALLOW_TWO_PANE_DEEP_LINK_IN_SETTINGS:

  The permission allows system or preinstalled APP to show
  its Activity in split mode of Settings app for large screen
  devices.

android.permission.START_ACTIVITY_IN_SETTINGS_TWO_PANE:

  The permission for Activity to controll only Settings app can
  start it if it's expected to deep link into Settings app and
  shown as 2-pane.

Bug: 197048599
Test: build pass
Change-Id: I018fc0e8447f795637f911445ab01afabdeb0b4c
parent 5082dcb7
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -99,6 +99,7 @@ package android {
    field public static final String INTERACT_ACROSS_PROFILES = "android.permission.INTERACT_ACROSS_PROFILES";
    field public static final String INTERNET = "android.permission.INTERNET";
    field public static final String KILL_BACKGROUND_PROCESSES = "android.permission.KILL_BACKGROUND_PROCESSES";
    field public static final String LAUNCH_TWO_PANE_SETTINGS_DEEP_LINK = "android.permission.LAUNCH_TWO_PANE_SETTINGS_DEEP_LINK";
    field public static final String LOADER_USAGE_STATS = "android.permission.LOADER_USAGE_STATS";
    field public static final String LOCATION_HARDWARE = "android.permission.LOCATION_HARDWARE";
    field public static final String MANAGE_DOCUMENTS = "android.permission.MANAGE_DOCUMENTS";
+1 −0
Original line number Diff line number Diff line
@@ -26,6 +26,7 @@ package android {
    field public static final String ADJUST_RUNTIME_PERMISSIONS_POLICY = "android.permission.ADJUST_RUNTIME_PERMISSIONS_POLICY";
    field public static final String ALLOCATE_AGGRESSIVE = "android.permission.ALLOCATE_AGGRESSIVE";
    field public static final String ALLOW_ANY_CODEC_FOR_PLAYBACK = "android.permission.ALLOW_ANY_CODEC_FOR_PLAYBACK";
    field public static final String ALLOW_PLACE_IN_TWO_PANE_SETTINGS = "android.permission.ALLOW_PLACE_IN_TWO_PANE_SETTINGS";
    field public static final String AMBIENT_WALLPAPER = "android.permission.AMBIENT_WALLPAPER";
    field public static final String APPROVE_INCIDENT_REPORTS = "android.permission.APPROVE_INCIDENT_REPORTS";
    field public static final String ASSOCIATE_COMPANION_DEVICES = "android.permission.ASSOCIATE_COMPANION_DEVICES";
+12 −0
Original line number Diff line number Diff line
@@ -4862,6 +4862,18 @@
    <permission android:name="android.permission.WRITE_SETTINGS_HOMEPAGE_DATA"
                android:protectionLevel="signature|privileged" />

    <!-- An application needs this permission for
         {@link android.provider.Settings#ACTION_SETTINGS_LARGE_SCREEN_DEEP_LINK} to show its
         {@link android.app.Activity} in 2-pane of Settings app. -->
    <permission android:name="android.permission.LAUNCH_TWO_PANE_SETTINGS_DEEP_LINK"
                android:protectionLevel="signature|preinstalled" />

    <!-- @SystemApi {@link android.app.Activity} should require this permission to ensure that only
         the settings app can embed it in a 2-pane window.
         @hide -->
    <permission android:name="android.permission.ALLOW_PLACE_IN_TWO_PANE_SETTINGS"
                android:protectionLevel="signature" />

    <!-- @SystemApi Allows applications to set a live wallpaper.
         @hide XXX Change to signature once the picker is moved to its
         own apk as Ghod Intended. -->