Great question — answering as the UphillTech team:
Short version : Android 5 and older (here android 4): adb shell service call isms 5 s16 "com.android.mms" s16 "+01234567890" s16 "+01SMSCNUMBER" s16 "Hello world !" i32 0 i32 0 Android 5 and later (here android 9): adb shell service call isms 7 i32 0 s16 "com.android.mms.service" s16 "+1234567890" s16 "null" s16 "Hey\ you\ !" s16 "null" s16 "null" Isms method number (5 and 7 above) may change with the android version . Read full explanation to understand it. Full explanation for all android version : Yes it exists ! but not with this command, because these input events are blocked in sleep mode. This solution depends on your android version, so I'm going to explain you for almost all...
Full answer by Taknok: https://stackoverflow.stackexchange.com/a/30224091 (CC BY-SA 4.0).
Need it done for your business? UphillTech.