Merge "Add unaudited exported flag to exposed runtime receivers"
This commit is contained in:
committed by
Android (Google) Code Review
commit
d1f76eea72
@@ -118,7 +118,8 @@ public class WifiEnabler implements SwitchWidgetController.OnSwitchChangeListene
|
||||
public void resume(Context context) {
|
||||
mContext = context;
|
||||
// Wi-Fi state is sticky, so just let the receiver update UI
|
||||
mContext.registerReceiver(mReceiver, mIntentFilter);
|
||||
mContext.registerReceiver(mReceiver, mIntentFilter,
|
||||
Context.RECEIVER_EXPORTED_UNAUDITED);
|
||||
if (!mListeningToOnSwitchChange) {
|
||||
mSwitchWidget.startListening();
|
||||
mListeningToOnSwitchChange = true;
|
||||
|
@@ -125,7 +125,8 @@ public class WifiStatusTest extends Activity {
|
||||
mWifiStateFilter.addAction(WifiManager.RSSI_CHANGED_ACTION);
|
||||
mWifiStateFilter.addAction(WifiManager.WIFI_STATE_CHANGED_ACTION);
|
||||
|
||||
registerReceiver(mWifiStateReceiver, mWifiStateFilter);
|
||||
registerReceiver(mWifiStateReceiver, mWifiStateFilter,
|
||||
Context.RECEIVER_EXPORTED_UNAUDITED);
|
||||
|
||||
setContentView(R.layout.wifi_status_test);
|
||||
|
||||
@@ -157,7 +158,8 @@ public class WifiStatusTest extends Activity {
|
||||
@Override
|
||||
protected void onResume() {
|
||||
super.onResume();
|
||||
registerReceiver(mWifiStateReceiver, mWifiStateFilter);
|
||||
registerReceiver(mWifiStateReceiver, mWifiStateFilter,
|
||||
Context.RECEIVER_EXPORTED_UNAUDITED);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@@ -76,7 +76,8 @@ public final class WifiSummaryUpdater extends SummaryUpdater {
|
||||
if (register) {
|
||||
mWifiTracker.fetchInitialState();
|
||||
notifyChangeIfNeeded();
|
||||
mContext.registerReceiver(mReceiver, INTENT_FILTER);
|
||||
mContext.registerReceiver(mReceiver, INTENT_FILTER,
|
||||
Context.RECEIVER_EXPORTED_UNAUDITED);
|
||||
} else {
|
||||
mContext.unregisterReceiver(mReceiver);
|
||||
}
|
||||
|
@@ -429,7 +429,8 @@ public class WifiCallingSettingsForSub extends SettingsPreferenceFragment
|
||||
mValidListener = true;
|
||||
}
|
||||
|
||||
context.registerReceiver(mIntentReceiver, mIntentFilter);
|
||||
context.registerReceiver(mIntentReceiver, mIntentFilter,
|
||||
Context.RECEIVER_EXPORTED_UNAUDITED);
|
||||
|
||||
final Intent intent = getActivity().getIntent();
|
||||
if (intent.getBooleanExtra(Phone.EXTRA_KEY_ALERT_SHOW, false)) {
|
||||
|
@@ -147,7 +147,8 @@ public class WifiTetherSettings extends RestrictedDashboardFragment
|
||||
}
|
||||
final Context context = getContext();
|
||||
if (context != null) {
|
||||
context.registerReceiver(mTetherChangeReceiver, TETHER_STATE_CHANGE_FILTER);
|
||||
context.registerReceiver(mTetherChangeReceiver, TETHER_STATE_CHANGE_FILTER,
|
||||
Context.RECEIVER_EXPORTED_UNAUDITED);
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -83,7 +83,8 @@ public class WifiTetherSwitchBarController implements
|
||||
public void onStart() {
|
||||
mDataSaverBackend.addListener(this);
|
||||
mSwitch.setOnClickListener(this);
|
||||
mContext.registerReceiver(mReceiver, WIFI_INTENT_FILTER);
|
||||
mContext.registerReceiver(mReceiver, WIFI_INTENT_FILTER,
|
||||
Context.RECEIVER_EXPORTED_UNAUDITED);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user