MCPcopy Create free account
hub / github.com/dedsec1121fk/DedSec / network_disable_vpn

Function network_disable_vpn

Scripts/Settings.py:7462–7469  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7460 commands.append([am_bin, 'start', '--user', '0', '-a', 'android.intent.action.VIEW', '-d', url])
7461 if shutil.which('xdg-open'):
7462 commands.append(['xdg-open', url])
7463 for command in commands:
7464 try:
7465 result = subprocess.run(command, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL, timeout=8)
7466 if result.returncode == 0:
7467 return True
7468 except Exception:
7469 continue
7470 return False
7471
7472

Callers 1

network_utilities_menuFunction · 0.70

Calls 5

printFunction · 0.85
network_load_configFunction · 0.70
network_save_configFunction · 0.70
_Function · 0.70

Tested by

no test coverage detected