Merge "Revert "Add unaudited exported flag to exposed runtime receivers""
This commit is contained in:
committed by
Android (Google) Code Review
commit
c41aa95b6e
@@ -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";
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user