Merge "Add unaudited exported flag to exposed runtime receivers"
This commit is contained in:
committed by
Android (Google) Code Review
commit
d1f76eea72
@@ -52,7 +52,8 @@ public class AlwaysDiscoverable extends BroadcastReceiver {
|
||||
if (mStarted) {
|
||||
return;
|
||||
}
|
||||
mContext.registerReceiver(this, mIntentFilter);
|
||||
mContext.registerReceiver(this, mIntentFilter,
|
||||
Context.RECEIVER_EXPORTED_UNAUDITED);
|
||||
mStarted = true;
|
||||
if (mBluetoothAdapter.getScanMode()
|
||||
!= BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE) {
|
||||
|
@@ -115,7 +115,8 @@ public final class BluetoothEnabler implements SwitchWidgetController.OnSwitchCh
|
||||
}
|
||||
|
||||
mSwitchController.startListening();
|
||||
mContext.registerReceiver(mReceiver, mIntentFilter);
|
||||
mContext.registerReceiver(mReceiver, mIntentFilter,
|
||||
Context.RECEIVER_EXPORTED_UNAUDITED);
|
||||
mValidListener = true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user