From a5dd8bd03bd02dd67f6853fb730948e401118afa Mon Sep 17 00:00:00 2001 From: Nate Jiang Date: Mon, 12 Aug 2019 17:18:38 -0700 Subject: [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 --- service/java/com/android/server/wifi/WifiNetworkSuggestionsManager.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'service') 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 extNetworkSuggestions = -- cgit v1.2.3