diff options
author | Nate Jiang <qiangjiang@google.com> | 2019-08-12 17:18:38 -0700 |
---|---|---|
committer | Nate Jiang <qiangjiang@google.com> | 2019-08-13 00:36:06 +0000 |
commit | a5dd8bd03bd02dd67f6853fb730948e401118afa (patch) | |
tree | c3eeac37e0a132e445814b16d72d9f1bed6b5162 /service | |
parent | 1a4506f84efd3b80dff74616cae060d294f602ca (diff) |
[NetworkSuggestion] ask user approval when first time add suggestions
Post a user approval notification when App first time add suggestions.
If user dismissal the notification, will post notification again when
suggestion matched in scan result.
Bug: 139037269
Test: atest android.net.wifi
Test: atest com.android.server.wifi
Test: acts WifiNetworkSuggestionTest
Change-Id: I72deeefb90f43af97e8574e40ebadca5e16a35f8
Diffstat (limited to 'service')
-rw-r--r-- | service/java/com/android/server/wifi/WifiNetworkSuggestionsManager.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/service/java/com/android/server/wifi/WifiNetworkSuggestionsManager.java b/service/java/com/android/server/wifi/WifiNetworkSuggestionsManager.java index c30d78a08..e1d2a02e4 100644 --- a/service/java/com/android/server/wifi/WifiNetworkSuggestionsManager.java +++ b/service/java/com/android/server/wifi/WifiNetworkSuggestionsManager.java @@ -570,6 +570,8 @@ public class WifiNetworkSuggestionsManager { if (mWifiPermissionsUtil.checkNetworkCarrierProvisioningPermission(uid)) { Log.i(TAG, "Setting the carrier provisioning app approved"); perAppInfo.hasUserApproved = true; + } else { + sendUserApprovalNotification(packageName, uid); } } Set<ExtendedWifiNetworkSuggestion> extNetworkSuggestions = |