Loading services/java/com/android/server/NetworkManagementService.java +2 −6 Original line number Diff line number Diff line Loading @@ -1471,9 +1471,7 @@ public class NetworkManagementService extends INetworkManagementService.Stub public void setDnsInterfaceForPid(String iface, int pid) throws IllegalStateException { mContext.enforceCallingOrSelfPermission(CONNECTIVITY_INTERNAL, TAG); try { String cmd = "resolver setifaceforpid " + iface + " " + pid; mConnector.execute(cmd); mConnector.execute("resolver", "setifaceforpid", iface, pid); } catch (NativeDaemonConnectorException e) { throw new IllegalStateException( "Error communicating with native deamon to set interface for pid" + iface, e); Loading @@ -1484,9 +1482,7 @@ public class NetworkManagementService extends INetworkManagementService.Stub public void clearDnsInterfaceForPid(int pid) throws IllegalStateException { mContext.enforceCallingOrSelfPermission(CONNECTIVITY_INTERNAL, TAG); try { String cmd = "resolver clearifaceforpid " + pid; mConnector.execute(cmd); mConnector.execute("resolver", "clearifaceforpid", pid); } catch (NativeDaemonConnectorException e) { throw new IllegalStateException( "Error communicating with native deamon to clear interface for pid " + pid, e); Loading Loading
services/java/com/android/server/NetworkManagementService.java +2 −6 Original line number Diff line number Diff line Loading @@ -1471,9 +1471,7 @@ public class NetworkManagementService extends INetworkManagementService.Stub public void setDnsInterfaceForPid(String iface, int pid) throws IllegalStateException { mContext.enforceCallingOrSelfPermission(CONNECTIVITY_INTERNAL, TAG); try { String cmd = "resolver setifaceforpid " + iface + " " + pid; mConnector.execute(cmd); mConnector.execute("resolver", "setifaceforpid", iface, pid); } catch (NativeDaemonConnectorException e) { throw new IllegalStateException( "Error communicating with native deamon to set interface for pid" + iface, e); Loading @@ -1484,9 +1482,7 @@ public class NetworkManagementService extends INetworkManagementService.Stub public void clearDnsInterfaceForPid(int pid) throws IllegalStateException { mContext.enforceCallingOrSelfPermission(CONNECTIVITY_INTERNAL, TAG); try { String cmd = "resolver clearifaceforpid " + pid; mConnector.execute(cmd); mConnector.execute("resolver", "clearifaceforpid", pid); } catch (NativeDaemonConnectorException e) { throw new IllegalStateException( "Error communicating with native deamon to clear interface for pid " + pid, e); Loading