设备经常出现这个问题:
List of devices attached
???????????? no permissions
由于我们缺少时间,因此我想编写简单的bash脚本,重新启动adb
,直到此device
获取permissions
,例如:
#!/bin/bash
alias_to_adb_dir/adb kill-server
alias_to_adb_dir/adb start-server
while [$? -ne "???????????? no permissions"]; do
alias_to_adb_dir/adb kill-server
alias_to_adb_dir/adb start-server
done
我很感激solutions
。