Skip to content

Instantly share code, notes, and snippets.

@shorti1996
Last active March 20, 2020 11:52
Show Gist options
  • Save shorti1996/428d3e00518a8b2ca3e51866d4f9f6eb to your computer and use it in GitHub Desktop.
Save shorti1996/428d3e00518a8b2ca3e51866d4f9f6eb to your computer and use it in GitHub Desktop.
Channel Digital provision
alias cdlogin='f(){ login="$1"; pass="$2"; [ -z "$login" ] && login=xxx; [ -z "$pass" ] && pass=xxx; for ((n=0;n<4;n++)); do adbkey 19 && sleep 0.2; done && adbtext "$login" && adbkey 66 && sleep 1 && adbtext "$pass" && adbkey 66; unset -f f; }; f'
alias cdlogin='f(){ login="$1"; pass="$2"; for ((n=0;n<4;n++)); do adbkey 19 && sleep 0.2; done && adbtext "$login" && adbkey 66 && sleep 1 && adbtext "$pass" && adbkey 66; unset -f f; }; f'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment