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

Commit 3cd0eb7e authored by Michael Groover's avatar Michael Groover
Browse files

Add required flag to registerReceiver call in WindowMagnificationPC

Android T adds support to allow a runtime receiver to be registered as
not exported, but to ensure apps can take advantage of this, calls to
registerReceiver must specify a flag indicating whether the receiver
should be exported for apps targeting T+ that are registering for
unprotected broadcasts. This commit adds the RECEIVER_EXPORTED flag
to the call to registerReceiver in WindowMagnificationPromptController
since this receiver is protected by a signature permission.

Bug: 161145287
Test: Manually verified logcat warning was not reported
Change-Id: I43b7fdd71b4a0427f8cd86b644325de289fbb259
parent 4e67e63b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -160,7 +160,7 @@ public class WindowMagnificationPromptController {
        intentFilter.addAction(ACTION_DISMISS);
        intentFilter.addAction(ACTION_TURN_ON_IN_SETTINGS);
        mContext.registerReceiver(mNotificationActionReceiver, intentFilter,
                Manifest.permission.MANAGE_ACCESSIBILITY, null);
                Manifest.permission.MANAGE_ACCESSIBILITY, null, Context.RECEIVER_EXPORTED);
    }

    private void launchMagnificationSettings() {