diff options
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/android/net/Network.java | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/core/java/android/net/Network.java b/core/java/android/net/Network.java index 2bac7a97b717..3d641f5a0029 100644 --- a/core/java/android/net/Network.java +++ b/core/java/android/net/Network.java @@ -65,7 +65,7 @@ public class Network implements Parcelable { * The unique id of the network. * @hide */ - @SystemApi + @UnsupportedAppUsage public final int netId; // Objects used to perform per-network operations such as getSocketFactory @@ -171,6 +171,17 @@ public class Network implements Parcelable { } /** + * Get the unique id of the network. + * + * @hide + */ + @TestApi + @SystemApi + public int getNetId() { + return netId; + } + + /** * Returns a netid marked with the Private DNS bypass flag. * * This flag must be kept in sync with the NETID_USE_LOCAL_NAMESERVERS flag |
