我有一个rooted droid(粗野),安装了connectbot。我可以通过 dropbear
复制到 /system/xbin
,以及通过"Linux安装程序" 应用程序安装的Debian的实例,通过 abcdefghijklmn1
。我是便携式的Linux幸福。但是......
我想通过shell发送短信。像
这样的东西 sendsms 8005551234 "This is a text."
在那里这样的东西?
我有一个rooted droid(粗野),安装了connectbot。我可以通过 dropbear
复制到 /system/xbin
,以及通过"Linux安装程序" 应用程序安装的Debian的实例,通过 abcdefghijklmn1
。我是便携式的Linux幸福。但是......
我想通过shell发送短信。像
这样的东西 sendsms 8005551234 "This is a text."
在那里这样的东西?
I have a rooted Droid (Sholes), with ConnectBot installed. I can ssh
into it via dropbear
copied to /system/xbin
, and/or also the instance of Debian installed on it via the "Linux Installer" application. I'm in portable Linux bliss. But...
I would like to send an SMS message via the shell. Something like
sendsms 8005551234 "This is a text."
Anything like this out there?
您应该能够用
调用消息传递意图 am start -a android.intent.action.VIEW "sms:numberhere" -e "sms_body" "hello"
使用Intent命令如下所述:
http://learnandroid.blogspot.com /2008/01/run-android-application-from-command.html
https://stackoverflow.com/questions/4967448/send-sms-in-android
You should be able to call the messaging intent with
am start -a android.intent.action.VIEW "sms:numberhere" -e "sms_body" "hello"
Using the intent command as described here:
http://learnandroid.blogspot.com/2008/01/run-android-application-from-command.html
https://stackoverflow.com/questions/4967448/send-sms-in-android
替代方法是安装 termux termux-api
然后通过遵循这个 Link
中的ssh现在您可以发送短信并访问许多其他有用的选项:
完整列表和语法可以找到这里
因为它是Linux仿真器,您也可以将其用于许多其他目的。
An alternative approach is to install Termux and Termux-api
Then ssh in the phone by following this link
Now you can send SMS and access many other useful options mainly:
Full list and syntax can be found here
As it is linux emulator you can use it for many other purposes also.
© 2022 it.wenda123.org All Rights Reserved. 问答之家 版权所有