OSDN Git Service

Don't require CONNECTIVITY_INTERNAL check for protected broadcasts
authorVinit Deshpande <vinitd@google.com>
Thu, 11 Sep 2014 01:38:26 +0000 (18:38 -0700)
committerVinit Deshpande <vinitd@google.com>
Thu, 11 Sep 2014 01:38:26 +0000 (18:38 -0700)
This change removes requirement that sender has this permission for
protected broadcasts (since they can only come from framework)

Bug: 17409667

Change-Id: I3431c20a4ed28b3ba2bfc3cf53772e63a3424a2c

src/com/android/settings/wifi/AdvancedWifiSettings.java

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