Commit b4dd78a
committed
fix: launch开头自动检测设备+锁定serial,_adb_cmd统一用_adb_args()
根因:config.device_name为空时,launch之前的_keep_screen_awake和force-stop
都不带-s参数,多设备环境下adb命令可能发到错误设备。
修复:
1. launch开头调用check_device()自动锁定第一台设备serial
2. _adb_cmd()改为使用_adb_args()统一获取带serial的前缀
3. 确保launch全流程(亮屏/force-stop/Session创建/APP启动)都指向正确设备1 parent 9b464a7 commit b4dd78a
1 file changed
Lines changed: 12 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
414 | 414 | | |
415 | 415 | | |
416 | 416 | | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
417 | 428 | | |
418 | 429 | | |
419 | 430 | | |
| |||
1499 | 1510 | | |
1500 | 1511 | | |
1501 | 1512 | | |
1502 | | - | |
1503 | | - | |
1504 | | - | |
1505 | | - | |
| 1513 | + | |
1506 | 1514 | | |
1507 | 1515 | | |
1508 | 1516 | | |
| |||
0 commit comments