diff options
| author | Chad Brubaker <cbrubaker@google.com> | 2013-07-15 16:34:04 -0700 |
|---|---|---|
| committer | Chad Brubaker <cbrubaker@google.com> | 2013-07-19 15:57:05 -0700 |
| commit | f336d722c773855402d91a227fc290eafca23335 (patch) | |
| tree | a8c479c48dd5878cab8c2990eef1fefad5c3f4bd /services/java/com/android/server/NetworkManagementService.java | |
| parent | a5bc070e9e7c802b32f0230c670838536a1612f4 (diff) | |
Fix supplimentary network connections with VPNs
Enables the use of supplimentary mobile networks like MMS, and HIPRI
while VPNs are running.
Change-Id: I313f57a905b4e16bd4322c68687cbff1cfbe9d3e
Diffstat (limited to 'services/java/com/android/server/NetworkManagementService.java')
| -rw-r--r-- | services/java/com/android/server/NetworkManagementService.java | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/services/java/com/android/server/NetworkManagementService.java b/services/java/com/android/server/NetworkManagementService.java index c3a43bb06ada..988b1f2ad8f3 100644 --- a/services/java/com/android/server/NetworkManagementService.java +++ b/services/java/com/android/server/NetworkManagementService.java @@ -1473,6 +1473,26 @@ public class NetworkManagementService extends INetworkManagementService.Stub } @Override + public void setHostExemption(LinkAddress host) { + mContext.enforceCallingOrSelfPermission(CONNECTIVITY_INTERNAL, TAG); + try { + mConnector.execute("interface", "fwmark", "exempt", "add", host); + } catch (NativeDaemonConnectorException e) { + throw e.rethrowAsParcelableException(); + } + } + + @Override + public void clearHostExemption(LinkAddress host) { + mContext.enforceCallingOrSelfPermission(CONNECTIVITY_INTERNAL, TAG); + try { + mConnector.execute("interface", "fwmark", "exempt", "remove", host); + } catch (NativeDaemonConnectorException e) { + throw e.rethrowAsParcelableException(); + } + } + + @Override public void setDnsInterfaceForUidRange(String iface, int uid_start, int uid_end) { mContext.enforceCallingOrSelfPermission(CONNECTIVITY_INTERNAL, TAG); try { |
