()
| 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 |
no test coverage detected