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

Commit 24dd3d74 authored by Michael Groover's avatar Michael Groover Committed by Android (Google) Code Review
Browse files

Merge "Add flags to permission protected SysUI broadcasts"

parents c6cc9a76 5d9f23f4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -144,7 +144,7 @@ public class PipMediaController {
        mediaControlFilter.addAction(ACTION_NEXT);
        mediaControlFilter.addAction(ACTION_PREV);
        mContext.registerReceiverForAllUsers(mMediaActionReceiver, mediaControlFilter,
                SYSTEMUI_PERMISSION, mainHandler);
                SYSTEMUI_PERMISSION, mainHandler, Context.RECEIVER_EXPORTED);

        // Creates the standard media buttons that we may show.
        mPauseAction = getDefaultRemoteAction(R.string.pip_pause,
+2 −1
Original line number Diff line number Diff line
@@ -174,7 +174,8 @@ public class SystemActions extends SystemUI {
                mReceiver,
                mReceiver.createIntentFilter(),
                PERMISSION_SELF,
                null);
                null,
                Context.RECEIVER_EXPORTED);
        registerActions();
    }

+1 −1
Original line number Diff line number Diff line
@@ -81,7 +81,7 @@ class DemoModeController constructor(
        val demoFilter = IntentFilter()
        demoFilter.addAction(ACTION_DEMO)
        context.registerReceiverAsUser(broadcastReceiver, UserHandle.ALL, demoFilter,
                android.Manifest.permission.DUMP, null)
                android.Manifest.permission.DUMP, null, Context.RECEIVER_EXPORTED)
    }

    override fun addCallback(listener: DemoMode) {
+1 −1
Original line number Diff line number Diff line
@@ -749,7 +749,7 @@ public class PowerNotificationWarnings implements PowerUI.WarningsUI {
            filter.addAction(ACTION_AUTO_SAVER_NO_THANKS);
            filter.addAction(ACTION_DISMISS_AUTO_SAVER_SUGGESTION);
            mContext.registerReceiverAsUser(this, UserHandle.ALL, filter,
                    android.Manifest.permission.DEVICE_POWER, mHandler);
                    android.Manifest.permission.DEVICE_POWER, mHandler, Context.RECEIVER_EXPORTED);
        }

        @Override