Created
July 18, 2018 12:47
-
-
Save agateau-g/22342c3e8a29e990f7062d39b192076a to your computer and use it in GitHub Desktop.
Send an SMS via Genyshell, using Python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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