diff options
Diffstat (limited to 'service')
-rw-r--r-- | service/java/com/android/server/wifi/WifiServiceImpl.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/service/java/com/android/server/wifi/WifiServiceImpl.java b/service/java/com/android/server/wifi/WifiServiceImpl.java index f04755fd9..b25a84593 100644 --- a/service/java/com/android/server/wifi/WifiServiceImpl.java +++ b/service/java/com/android/server/wifi/WifiServiceImpl.java @@ -2970,9 +2970,20 @@ public class WifiServiceImpl extends BaseWifiService { mWifiNetworkSuggestionsManager.clear(); mWifiInjector.getWifiScoreCard().clear(); }); + notifyFactoryReset(); } } + /** + * Notify the Factory Reset Event to application who may installed wifi configurations. + */ + private void notifyFactoryReset() { + Intent intent = new Intent(WifiManager.WIFI_NETWORK_SETTINGS_RESET_ACTION); + intent.addFlags(Intent.FLAG_RECEIVER_INCLUDE_BACKGROUND); + mContext.sendBroadcastAsUser(intent, UserHandle.ALL, + android.Manifest.permission.NETWORK_CARRIER_PROVISIONING); + } + /* private methods */ static boolean logAndReturnFalse(String s) { Log.d(TAG, s); |