ShellMS
ShellMS copied to clipboard
Have to protect spaces
If I type this:
> adb shell am startservice --user 0 -n com.android.shellms/.sendSMS -e contact +66..66 -e msg "word1 word2"
I will receive an SMS with only "word1" instead of "word1 word2". I have to protect spaces to get "word1 word2" with a backslash:
> adb shell am startservice --user 0 -n com.android.shellms/.sendSMS -e contact +66..66 -e msg "word1\ word2"
I worked around it with this:
$ADB shell <<EOF
am startservice --user 0 -n com.android.shellms/.sendSMS -e contact "$contact" -e msg "$message"
EOF
Will be handled in next version ;)