Loading services/java/com/android/server/NetworkManagementService.java +2 −6 Original line number Original line 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 { public void setDnsInterfaceForPid(String iface, int pid) throws IllegalStateException { mContext.enforceCallingOrSelfPermission(CONNECTIVITY_INTERNAL, TAG); mContext.enforceCallingOrSelfPermission(CONNECTIVITY_INTERNAL, TAG); try { try { String cmd = "resolver setifaceforpid " + iface + " " + pid; mConnector.execute("resolver", "setifaceforpid", iface, pid); mConnector.execute(cmd); } catch (NativeDaemonConnectorException e) { } catch (NativeDaemonConnectorException e) { throw new IllegalStateException( throw new IllegalStateException( "Error communicating with native deamon to set interface for pid" + iface, e); "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 { public void clearDnsInterfaceForPid(int pid) throws IllegalStateException { mContext.enforceCallingOrSelfPermission(CONNECTIVITY_INTERNAL, TAG); mContext.enforceCallingOrSelfPermission(CONNECTIVITY_INTERNAL, TAG); try { try { String cmd = "resolver clearifaceforpid " + pid; mConnector.execute("resolver", "clearifaceforpid", pid); mConnector.execute(cmd); } catch (NativeDaemonConnectorException e) { } catch (NativeDaemonConnectorException e) { throw new IllegalStateException( throw new IllegalStateException( "Error communicating with native deamon to clear interface for pid " + pid, e); "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 Original line 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 { public void setDnsInterfaceForPid(String iface, int pid) throws IllegalStateException { mContext.enforceCallingOrSelfPermission(CONNECTIVITY_INTERNAL, TAG); mContext.enforceCallingOrSelfPermission(CONNECTIVITY_INTERNAL, TAG); try { try { String cmd = "resolver setifaceforpid " + iface + " " + pid; mConnector.execute("resolver", "setifaceforpid", iface, pid); mConnector.execute(cmd); } catch (NativeDaemonConnectorException e) { } catch (NativeDaemonConnectorException e) { throw new IllegalStateException( throw new IllegalStateException( "Error communicating with native deamon to set interface for pid" + iface, e); "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 { public void clearDnsInterfaceForPid(int pid) throws IllegalStateException { mContext.enforceCallingOrSelfPermission(CONNECTIVITY_INTERNAL, TAG); mContext.enforceCallingOrSelfPermission(CONNECTIVITY_INTERNAL, TAG); try { try { String cmd = "resolver clearifaceforpid " + pid; mConnector.execute("resolver", "clearifaceforpid", pid); mConnector.execute(cmd); } catch (NativeDaemonConnectorException e) { } catch (NativeDaemonConnectorException e) { throw new IllegalStateException( throw new IllegalStateException( "Error communicating with native deamon to clear interface for pid " + pid, e); "Error communicating with native deamon to clear interface for pid " + pid, e); Loading