components/cronet/tools/android_rndis_forwarder.py
def OverrideRoutingPolicy(self):
    """Override any routing policy that could prevent
    packets from reaching the rndis interface
    """
    policies = self._device.RunShellCommand(['ip', 'rule'], check_return=True)
    if len(policies) > 1 and not 'lookup main' in policies[1]:
      self._device.RunShellCommand(
          ['ip', 'rule', 'add', 'prio', '1', 'from', 'all', 'table', 'main'],
          check_return=True)
      self._device.RunShellCommand(
          ['ip', 'route', 'flush', 'cache'], check_return=True)
Override any routing policy that could prevent
    packets from reaching the rndis interface
    
Override any routing policy that could prevent
packets from reaching the rndis interface
Override any routing policy that could prevent packets from reaching the rndis interface
def OverrideRoutingPolicy(self):
    policies = self._device.RunShellCommand(['ip', 'rule'], check_return=True)
    if len(policies) > 1 and not 'lookup main' in policies[1]:
      self._device.RunShellCommand(
          ['ip', 'rule', 'add', 'prio', '1', 'from', 'all', 'table', 'main'],
          check_return=True)
      self._device.RunShellCommand(
          ['ip', 'route', 'flush', 'cache'], check_return=True)
def OverrideRoutingPolicy ( self ) : policies = self . _device . RunShellCommand ( [ 'ip' , 'rule' ] , check_return = True ) if len ( policies ) > 1 and not 'lookup main' in policies [ 1 ] : self . _device . RunShellCommand ( [ 'ip' , 'rule' , 'add' , 'prio' , '1' , 'from' , 'all' , 'table' , 'main' ] , check_return = True ) self . _device . RunShellCommand ( [ 'ip' , 'route' , 'flush' , 'cache' ] , check_return = True )
Override any routing policy that could prevent
packets from reaching the rndis interface
Override any routing policy that could prevent packets from reaching the rndis interface
"""Override any routing policy that could prevent
    packets from reaching the rndis interface
    """
self