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

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

Merge "Revert "Add unaudited exported flag to exposed runtime receivers""

parents 777ce3ec 9041b19e
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -36,8 +36,7 @@ public class LocalReceiver extends BroadcastReceiver {
        if (BroadcastTest.BROADCAST_FAIL_REGISTER.equals(intent.getAction())) {
            resultString = "Successfully registered, but expected it to fail";
            try {
                context.registerReceiver(this, new IntentFilter("foo.bar"),
                        Context.RECEIVER_EXPORTED_UNAUDITED);
                context.registerReceiver(this, new IntentFilter("foo.bar"));
                context.unregisterReceiver(this);
            } catch (ReceiverCallNotAllowedException e) {
                //resultString = "This is the correct behavior but not yet implemented";
+1 −1
Original line number Diff line number Diff line
@@ -172,7 +172,7 @@ public class ServiceTest extends TestCase {
                pidResult.complete(intent.getIntExtra(EXTRA_PID, NOT_STARTED));
                mContext.unregisterReceiver(this);
            }
        }, new IntentFilter(ACTION_SERVICE_STARTED), Context.RECEIVER_EXPORTED_UNAUDITED);
        }, new IntentFilter(ACTION_SERVICE_STARTED));

        serviceTrigger.run();
        try {
+1 −1
Original line number Diff line number Diff line
@@ -709,7 +709,7 @@ public class BubbleController implements ConfigurationChangeListener {
        IntentFilter filter = new IntentFilter();
        filter.addAction(Intent.ACTION_CLOSE_SYSTEM_DIALOGS);
        filter.addAction(Intent.ACTION_SCREEN_OFF);
        mContext.registerReceiver(mBroadcastReceiver, filter, Context.RECEIVER_EXPORTED_UNAUDITED);
        mContext.registerReceiver(mBroadcastReceiver, filter);
    }

    private final BroadcastReceiver mBroadcastReceiver = new BroadcastReceiver() {