There is annoying issue with device which very often get this:
List of devices attached
???????????? no permissions
Due the fact we lack time I wanted to write simple bash script that would get restart the adb
untill this device
get permissions
, something like:
#!/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
I would appreciate any solutions
.