Skip to content

Instantly share code, notes, and snippets.

@agateau-g
Created July 18, 2018 12:47
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 agateau-g/22342c3e8a29e990f7062d39b192076a to your computer and use it in GitHub Desktop.
Save agateau-g/22342c3e8a29e990f7062d39b192076a to your computer and use it in GitHub Desktop.
Send an SMS via Genyshell, using Python
#!/usr/bin/env python3
import subprocess
import sys
GENYSHELL_PATH = "/Applications/Genymotion Shell.app/Contents/MacOS/genyshell"
def main():
phone_number = sys.argv[1]
message = sys.argv[2]
command = "phone baseband sms send {} {}".format(phone_number, message)
subprocess.check_call([GENYSHELL_PATH, "-c", command])
if __name__ == "__main__":
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment