Don't require CONNECTIVITY_INTERNAL check for protected broadcasts

This change removes requirement that sender has this permission for
protected broadcasts (since they can only come from framework)

Bug: 17409667

Change-Id: I3431c20a4ed28b3ba2bfc3cf53772e63a3424a2c
This commit is contained in:
Vinit Deshpande
2014-09-10 18:38:26 -07:00
parent 1e7dbd455e
commit 8a7cd97457

View File

@@ -98,8 +98,7 @@ public class AdvancedWifiSettings extends SettingsPreferenceFragment
public void onResume() { public void onResume() {
super.onResume(); super.onResume();
initPreferences(); initPreferences();
getActivity().registerReceiver(mReceiver, mFilter, getActivity().registerReceiver(mReceiver, mFilter);
android.Manifest.permission.CHANGE_NETWORK_STATE, null);
refreshWifiInfo(); refreshWifiInfo();
} }