ShellMS icon indicating copy to clipboard operation
ShellMS copied to clipboard

Have to protect spaces

Open DamienCassou opened this issue 7 years ago • 2 comments

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"

DamienCassou avatar Jun 20 '18 14:06 DamienCassou

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

DamienCassou avatar Jun 20 '18 15:06 DamienCassou

Will be handled in next version ;)

try2codesecure avatar Jun 24 '18 18:06 try2codesecure