服务电话主义与亚行的shell(Android SDK中)? [英] Service call isms with ADB shell (Android SDK)?

查看:239
本文介绍了服务电话主义与亚行的shell(Android SDK中)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你知道命令服务呼叫主义与亚行的shell在Android? 下面是完整的命令,我使用:服务电话主义5 S16联系号码I32 0 I32 0 S16bodyText的

Do you know the command "service call isms" with adb shell on Android? Here is the complete command I use : service call isms 5 s16 "PhoneNumber" i32 0 i32 0 s16 "BodyText".

有一些参数,但我不知道这意味着什么(5,S16,I32,0)。有没有什么地方手册? 对我来说,最重要的是让当短信没有发送成功(大约10%的短信都不会发)错误=>这个问题已经问过,但没有回答(<一href="http://stackoverflow.com/questions/17395546/get-status-sms-from-isms-service-using-shell-adb-android-sdk">Get从ISMS服务使用shell ADB(Android SDK中)状态短信?)。

There are some parameter but I don't know what it means (5, s16, i32, 0). Is there somewhere a manual ? The most important for me is to get an error when the sms doesn't send successfully (about 10% of the sms aren't send) => this question asked already but there isn't answer (Get status sms from isms service using shell adb (Android SDK)?).

我不想使用的命令 (亚行外壳上午开始-a android.intent.action.SENDTO -d短信:CCXXXXXXXXXX --es sms_body短信的身体去HERE--ez exit_on_sent真 亚行的shell输入的keyEvent 22 亚行的shell输入的KeyEvent 66) 因为它使用图形界面。

I don't wanna use the commands (adb shell am start -a android.intent.action.SENDTO -d sms:CCXXXXXXXXXX --es sms_body "SMS BODY GOES HERE" --ez exit_on_sent true adb shell input keyevent 22 adb shell input keyevent 66) because it uses the graphical interface.

你能帮助我吗? (我很抱歉,我不会说英语,所以我希望你明白我的要求)

Could you help me? (I'm sorry, I can't speak English. So, I hope you understand my request)

多谢

推荐答案

在每一个服务电话命令,你需要输入:

In every "service call" command, you need to enter:

  • 您要拨打的服务,在这种情况下,它是主义;
  • 在功能你想打电话,在这种情况下,5(后面有更多描述);
  • 函数的参数。

有两种可能的参数:字符串整数。在进入一个整型参数,你需要使用 I32指定其类型。 同样的事情为一个字符串参数,而是你需要写的 S16

There's two types of possible parameters: Strings and Integers. Before entering an Integer parameter you need to specify its type using i32. Same thing for a String parameter, but instead you need to write s16.

大多数的服务电话命令没有文档,或者很少的。照片 对于ISMS你可以看看这里: http://www.androidjavadoc.com/1.0_r1_src /constant-values​​.html 得到的可能的功能,其数量code列表。按Ctrl-F,进入ISMS的快速访问。

Most of the "service call" commands have no documentation, or very little.
For the ISms you can look here: http://www.androidjavadoc.com/1.0_r1_src/constant-values.html to get a list of the possible functions and their number code. Hit ctrl-f and enter ISms for quick access.

5功能的ISMS服务是在 sendMultipartText 从Android API的ISMS接口功能。 <一href="http://www.androidjavadoc.com/1.0_r1_src/com/android/internal/telephony/gsm/ISms.html#sendMultipartText%28java.lang.String,%20java.lang.String,%20java.util.List,%20java.util.List,%20java.util.List%29"相对=nofollow>以下是关于这个功能的文档。 <一href="http://grep$c$c.com/file_/repository.grep$c$c.com/java/ext/com.google.android/android/2.1_r2/com/android/internal/telephony/ISms.java/?v=source"相对=nofollow>这是从API的实现类。

The "5" function for the ISms service is the sendMultipartText function from the ISms interface of the Android API. Here is the doc about this function. And here is the implementation class from the API.

因此​​,服务电话主义5 S16联系号码I32 0 I32 0 S16bodyText的,等于:

这与ISMS的服务调用sendMultipartText功能   字符串参数联系号码,该整数参数0,整数   参数0和字符串参数BODYTEXT。

Call the sendMultipartText function from the ISms service with the String parameter "PhoneNumber", the Integer parameter 0, the Integer parameter 0 and the String parameter "BodyText".

要回答你的问题,我是pretty的肯定,有没有办法知道,如果短信被发送或没有在命令行...但也许,如果你挖得更深比我在API中没有你会找到一个方法。

To answer your question, I am pretty sure there's no way to know if the sms are being sent or not from the command line... But maybe if you dig a little deeper than I did in the API you'll find a way.

这篇关于服务电话主义与亚行的shell(Android SDK中)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆