mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-09 13:59:02 +08:00
Fix: Avoid using global proxies when installing u2
This commit is contained in:
parent
b296d6a27f
commit
389f9c4234
@ -44,6 +44,12 @@ class AdbManager(DeployConfig):
|
||||
if module in message:
|
||||
show_fix_tip(module)
|
||||
exit(1)
|
||||
|
||||
# Remove global proxies, or uiautomator2 will go through it
|
||||
for k in list(os.environ.keys()):
|
||||
if k.lower().endswith('_proxy'):
|
||||
del os.environ[k]
|
||||
|
||||
from uiautomator2.init import Initer
|
||||
for device in adbutils.adb.iter_device():
|
||||
init = Initer(device, loglevel=logging.DEBUG)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user