summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoshan Pius <rpius@google.com>2020-04-28 20:56:33 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2020-04-28 20:56:33 +0000
commitf2f12a41f0291492a8c56f73cf1e31ab03829cf8 (patch)
tree08e834720e374f8da6ad7e9e551f022c213fe6ca
parent70774fd42719e7dc76a0a23b36f9d474106abb3b (diff)
parent3d3e2bcb051ddb98acec07156ef5c69e31c6c482 (diff)
Merge "AvailableNetworkNotifier: Use SYSTEM_UID for ONA connection" into rvc-dev
-rw-r--r--service/java/com/android/server/wifi/AvailableNetworkNotifier.java2
-rw-r--r--tests/wifitests/src/com/android/server/wifi/OpenNetworkNotifierTest.java6
2 files changed, 4 insertions, 4 deletions
diff --git a/service/java/com/android/server/wifi/AvailableNetworkNotifier.java b/service/java/com/android/server/wifi/AvailableNetworkNotifier.java
index 1ec6fba4a..7243193cd 100644
--- a/service/java/com/android/server/wifi/AvailableNetworkNotifier.java
+++ b/service/java/com/android/server/wifi/AvailableNetworkNotifier.java
@@ -438,7 +438,7 @@ public class AvailableNetworkNotifier {
mWifiMetrics.setNominatorForNetwork(result.netId, mNominatorId);
ConnectActionListener connectActionListener = new ConnectActionListener();
mClientModeImpl.connect(null, result.netId, new Binder(), connectActionListener,
- connectActionListener.hashCode(), Process.WIFI_UID);
+ connectActionListener.hashCode(), Process.SYSTEM_UID);
addNetworkToBlacklist(mRecommendedNetwork.SSID);
}
diff --git a/tests/wifitests/src/com/android/server/wifi/OpenNetworkNotifierTest.java b/tests/wifitests/src/com/android/server/wifi/OpenNetworkNotifierTest.java
index f1eeb389d..6dae6f55a 100644
--- a/tests/wifitests/src/com/android/server/wifi/OpenNetworkNotifierTest.java
+++ b/tests/wifitests/src/com/android/server/wifi/OpenNetworkNotifierTest.java
@@ -495,7 +495,7 @@ public class OpenNetworkNotifierTest extends WifiBaseTest {
public void actionConnectToNetwork_notificationNotShowing_doesNothing() {
mBroadcastReceiver.onReceive(mContext, createIntent(ACTION_CONNECT_TO_NETWORK));
verify(mClientModeImpl, never()).connect(any(), anyInt(), any(Binder.class),
- any(IActionListener.class), anyInt(), eq(Process.WIFI_UID));
+ any(IActionListener.class), anyInt(), eq(Process.SYSTEM_UID));
}
/**
@@ -516,7 +516,7 @@ public class OpenNetworkNotifierTest extends WifiBaseTest {
mBroadcastReceiver.onReceive(mContext, createIntent(ACTION_CONNECT_TO_NETWORK));
verify(mClientModeImpl).connect(eq(null), eq(TEST_NETWORK_ID), any(Binder.class),
- any(IActionListener.class), anyInt(), eq(Process.WIFI_UID));
+ any(IActionListener.class), anyInt(), eq(Process.SYSTEM_UID));
// Connecting Notification
verify(mNotificationBuilder).createNetworkConnectingNotification(OPEN_NET_NOTIFIER_TAG,
mDummyNetwork);
@@ -697,7 +697,7 @@ public class OpenNetworkNotifierTest extends WifiBaseTest {
ArgumentCaptor<IActionListener> connectListenerCaptor =
ArgumentCaptor.forClass(IActionListener.class);
verify(mClientModeImpl).connect(eq(null), eq(TEST_NETWORK_ID), any(Binder.class),
- connectListenerCaptor.capture(), anyInt(), eq(Process.WIFI_UID));
+ connectListenerCaptor.capture(), anyInt(), eq(Process.SYSTEM_UID));
IActionListener connectListener = connectListenerCaptor.getValue();
// Connecting Notification