diff options
author | Sreeram Ramachandran <sreeram@google.com> | 2014-09-11 14:08:25 -0700 |
---|---|---|
committer | Sreeram Ramachandran <sreeram@google.com> | 2014-09-11 14:17:10 -0700 |
commit | a1e06807eeb6587c3ea12778440226977d63b064 (patch) | |
tree | 7c1a133de161789edc9980b5c66b865dc4e57180 /api | |
parent | d6adcef917aac893fd82e7628781145693d6187f (diff) | |
download | frameworks_base-a1e06807eeb6587c3ea12778440226977d63b064.zip frameworks_base-a1e06807eeb6587c3ea12778440226977d63b064.tar.gz frameworks_base-a1e06807eeb6587c3ea12778440226977d63b064.tar.bz2 |
Hide mutable VpnService APIs to add/remove IP addresses dynamically.
These APIs were added because we thought we needed them to provide
seamless transition from one server backend to another using local IP
addresses to distinguish between the backends. I.e., connections whose
local IP address was old would be routed to the old backend; connections
whose local IP address was new would be routed to the new backend.
It turns out that's not needed. VpnService already supports seamless
re-establishment, so VPNs just need to call establish() again with a
different IP address. I've verified with a custom VPN app that this
works, and can distinguish traffic based on the old and new addresses.
Nobody is using these APIs at the moment, so we could even consider
removing them altogether, but I prefer just hiding them, just in case.
Bug: 15409819
Change-Id: I30949926a0f859c9d839981ccbc5d8e1e535a3a5
Diffstat (limited to 'api')
-rw-r--r-- | api/current.txt | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/api/current.txt b/api/current.txt index b6e600b..ca42569 100644 --- a/api/current.txt +++ b/api/current.txt @@ -17537,14 +17537,12 @@ package android.net { public class VpnService extends android.app.Service { ctor public VpnService(); - method public boolean addAddress(java.net.InetAddress, int); method public android.os.IBinder onBind(android.content.Intent); method public void onRevoke(); method public static android.content.Intent prepare(android.content.Context); method public boolean protect(int); method public boolean protect(java.net.Socket); method public boolean protect(java.net.DatagramSocket); - method public boolean removeAddress(java.net.InetAddress, int); field public static final java.lang.String SERVICE_INTERFACE = "android.net.VpnService"; } |