Merge "Add unaudited exported flag to exposed runtime receivers"
This commit is contained in:
committed by
Android (Google) Code Review
commit
d1f76eea72
@@ -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