Skip to content

Instantly share code, notes, and snippets.

@AliMD
Created November 14, 2016 07:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AliMD/49c7fb15148e14b6316a48ad0087d762 to your computer and use it in GitHub Desktop.
Save AliMD/49c7fb15148e14b6316a48ad0087d762 to your computer and use it in GitHub Desktop.
Android Accept Licenses
#!/usr/bin/expect -f
set timeout 1800
set cmd [lindex $argv 0]
set licenses [lindex $argv 1]
spawn {*}$cmd
expect {
"Do you accept the license '*'*" {
exp_send "y\r"
exp_continue
}
eof
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment