components/cronet/tools/android_rndis_forwarder.py
def _LoadInstalledHoRNDIS(self):
    """Attempt to load HoRNDIS if installed.
    If kext could not be loaded or if HoRNDIS is not installed, return False.
    """
    if not os.path.isdir('/System/Library/Extensions/HoRNDIS.kext'):
      logging.info('HoRNDIS not present on system.')
      return False

    def HoRNDISLoaded():
      return 'HoRNDIS' in subprocess.check_output(['kextstat'])

    if HoRNDISLoaded():
      return True

    logging.info('HoRNDIS installed but not running, trying to load manually.')
    subprocess.check_call(
        ['/usr/bin/sudo', 'kextload', '-b', 'com.joshuawise.kexts.HoRNDIS'])

    return HoRNDISLoaded()
Attempt to load HoRNDIS if installed.
    If kext could not be loaded or if HoRNDIS is not installed, return False.
    
Attempt to load HoRNDIS if installed.
If kext could not be loaded or if HoRNDIS is not installed, return False.
Attempt to load HoRNDIS if installed . If kext could not be loaded or if HoRNDIS is not installed return False .
def _LoadInstalledHoRNDIS(self):
    if not os.path.isdir('/System/Library/Extensions/HoRNDIS.kext'):
      logging.info('HoRNDIS not present on system.')
      return False
    def HoRNDISLoaded():
      return 'HoRNDIS' in subprocess.check_output(['kextstat'])
    if HoRNDISLoaded():
      return True
    logging.info('HoRNDIS installed but not running, trying to load manually.')
    subprocess.check_call(
        ['/usr/bin/sudo', 'kextload', '-b', 'com.joshuawise.kexts.HoRNDIS'])
    return HoRNDISLoaded()
def _LoadInstalledHoRNDIS ( self ) : if not os . path . isdir ( '/System/Library/Extensions/HoRNDIS.kext' ) : logging . info ( 'HoRNDIS not present on system.' ) return False def HoRNDISLoaded ( ) : return 'HoRNDIS' in subprocess . check_output ( [ 'kextstat' ] ) if HoRNDISLoaded ( ) : return True logging . info ( 'HoRNDIS installed but not running, trying to load manually.' ) subprocess . check_call ( [ '/usr/bin/sudo' , 'kextload' , '-b' , 'com.joshuawise.kexts.HoRNDIS' ] ) return HoRNDISLoaded ( )
Attempt to load HoRNDIS if installed.
Attempt to load HoRNDIS if installed .
"""Attempt to load HoRNDIS if installed.
    If kext could not be loaded or if HoRNDIS is not installed, return False.
    """
self