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

Commit 48935269 authored by Eugene Susla's avatar Eugene Susla Committed by Automerger Merge Worker
Browse files

RESTRICT AUTOMERGE am: 98f45443 am: 68a439a7

Change-Id: I6f602ceed2bfd50a9180d68bcc9a992aa8d89395
parents d28fc17d 68a439a7
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -2843,6 +2843,11 @@
    <permission android:name="android.permission.OBSERVE_GRANT_REVOKE_PERMISSIONS"
        android:protectionLevel="signature|privileged" />

    <!-- Allows an application to manage the companion devices.
         @hide -->
    <permission android:name="android.permission.MANAGE_COMPANION_DEVICES"
                android:protectionLevel="signature" />

    <!-- @SystemApi Allows an application to use SurfaceFlinger's low level features.
         <p>Not for use by third-party applications.
         @hide
+5 −0
Original line number Diff line number Diff line
@@ -624,6 +624,11 @@ public class CompanionDeviceManagerService extends SystemService implements Bind
                + "associate USER_ID PACKAGE MAC_ADDRESS\n"
                + "disassociate USER_ID PACKAGE MAC_ADDRESS";

        ShellCmd() {
            getContext().enforceCallingOrSelfPermission(
                    android.Manifest.permission.MANAGE_COMPANION_DEVICES, "ShellCmd");
        }

        @Override
        public int onCommand(String cmd) {
            switch (cmd) {