From 440df92ff31718a767f6305adbb18db5bc3b3487 Mon Sep 17 00:00:00 2001 From: Jeff Vander Stoep Date: Wed, 27 Feb 2019 13:31:22 -0800 Subject: [PATCH] getConnectionOwnerUid: Clarify documentation Test: build Bug: 117573763 Change-Id: Ia899a541987b9c72a83287ed69fc47ab4d38f680 --- core/java/android/net/ConnectivityManager.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/java/android/net/ConnectivityManager.java b/core/java/android/net/ConnectivityManager.java index 92b30a440d..ae356f8310 100644 --- a/core/java/android/net/ConnectivityManager.java +++ b/core/java/android/net/ConnectivityManager.java @@ -4275,6 +4275,8 @@ public class ConnectivityManager { * @return {@code uid} if the connection is found and the app has permission to observe it * (e.g., if it is associated with the calling VPN app's tunnel) or * {@link android.os.Process#INVALID_UID} if the connection is not found. + * Throws {@link SecurityException} if the caller is not the active VPN for the current user. + * Throws {@link IllegalArgumentException} if an unsupported protocol is requested. */ public int getConnectionOwnerUid(int protocol, @NonNull InetSocketAddress local, @NonNull InetSocketAddress remote) {