- iOS/Objective-C 元类和类别
- objective-c - -1001 错误,当 NSURLSession 通过 httpproxy 和/etc/hosts
- java - 使用网络类获取 url 地址
- ios - 推送通知中不播放声音
您知道在 Android 上使用 adb shell 命令“service call isms”吗?这是我使用的完整命令:service call isms 5 s16 "PhoneNumber"i32 0 i32 0 s16 "BodyText"。
有一些参数但我不知道它是什么意思(5, s16, i32, 0)。有什么地方有手册吗?对我来说最重要的是当短信没有成功发送时出现错误(大约 10% 的短信没有发送)=> 这个问题已经问过但没有答案(https://stackoverflow.com/questions/17395546/get-status-sms-from-isms-service-using-shell-adb-android-sdk)。
我不想使用命令(adb shell am start -a android.intent.action.SENDTO -d sms:CCXXXXXXXXXX --es sms_body "SMS BODY GOES HERE"--ez exit_on_sent trueadb shell 输入keyevent 22adb shell 输入keyevent 66)因为它使用图形界面。
你能帮帮我吗? (对不起,我不会说英语。所以,我希望你理解我的请求)
非常感谢
最佳答案
在每个“服务调用”命令中,您需要输入:
有两种可能的参数:字符串 和整数。在输入整数参数之前,您需要使用 i32 指定其类型。字符串参数也是如此,但您需要编写 s16。
大多数“服务调用”命令没有文档,或者很少。
对于 ISms,您可以在此处查看:http://www.androidjavadoc.com/1.0_r1_src/constant-values.html获取可能的功能及其编号代码的列表。按 ctrl-f 并输入 ISms 以快速访问。
ISms 服务的“5”函数是来自 Android API 的 ISms 接口(interface)的sendMultipartText 函数。 Here is the doc about this function. And here is the implementation class from the API.
因此,service call isms 5 s16 "PhoneNumber"i32 0 i32 0 s16 "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".
回答你的问题,我很确定没有办法知道是否从命令行发送了短信......但也许如果你比我更深入一点在 API 中,您会找到一种方法。
关于android - 使用 ADB shell (Android SDK) 的服务调用 isms?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17719898/
使用 http://developer.android.com/training/basics/firstapp/running-app.html 上的指南,我使用 adb 将示例 Hello, Wo
如何修复 - 无法创建调试桥:无法启动 adb 服务器:无法检测 adb 版本,adb 输出:/home/dilip/Downloads/sdk/platform-tools/adb: 1:/home
我在 UBUNTU 18.x 操作系统上练习 REACT NATIVE,一切运行顺利,昨天我更新了我的 React native、react 和 android gradle 版本然后我收到一些错误,
这个问题在这里已经有了答案: android studio adb Syntax error: ")" unexpected (4 个答案) 关闭 5 年前。 我确实将我的工作室更新到 Linux
这是我的步骤: adb connect 'my android IP address' connected adb reboot //in this step my phone is rebootin
我有一个应用程序可以监听接收通知。安装后,我应该从设置 -> 安全 -> 通知访问启用通知访问 我在模拟器上安装这个应用程序并使用 ADB 运行它。但我不知道如何使用 ADB 中的命令行为其启用通知访
ADB全称Android Debug Bridge, 是android sdk里的一个工具, 用这个工具可以直接操作管理android模拟器或者真实的andriod设备(如G1手机). 它的主要功能
我知道这个问题被问了多次,也有一些替代答案。所以请不要关闭其他链接,因为我在下面添加了该链接。 [2014-01-23 16:19:44 - adb] ADB server didn't ACK [2
我在 adb 中观察到了这种新行为v1.0.39。命令: adb shell getevent -l 给出以下输出: 观察到最后一行是不完整的。这发生在许多不同的设备上。相同的命令在 adb 中无需缓
我正在尝试通过 adb shell am 和 adb shell service call 发送短信。我都收到错误消息。 a) 我正在尝试按照 adb shell am 命令发送短信 adb shel
由于某些原因,我的手机无法使用电缆。 我在 Internet 上看到可以通过 Wifi 将 adb 连接到 Wifi,但是我试了一下,结果是这样的: adb devices List of devic
尝试通过 expo 在模拟器上运行 react-native 应用程序时出现此错误。 Couldn't start project on Android: Error running adb: adb
这个问题在这里已经有了答案: adb server version doesn't match this client (41 个回答) 关闭4年前。 在启动 genymotion 模拟器后尝试从终
adb server version (39) doesn't match this client (40); killing... could not read ok from ADB Server
我已经创建了一个虚拟 Android 模拟器 (Nexus_5X_API25),我需要获得根访问权限。但是当我输入 adb remount 命令时,它总是告诉我 adb 没有以 root 身份运行。我
这个问题在这里已经有了答案: ADB - Android - Getting the name of the current activity (13 个答案) 关闭 4 年前。 我正在使用 adb
我只是想运行 adb shell,这样我就可以终止进程以进行测试。我在目录 platform-tools 中,adb 可执行文件就在那里。当我尝试运行 shell 时,它说找不到 adb 命令。我正在
我刚刚安装了 android studio 和平台工具,但我无法调用 adb,即使它们显然位于同一目录中。我收到此错误: zsh: command not found: adb 我是 android
以下命令用于使用 Android SDK 工具版本 24.4.1 退出模拟器。将工具版本更新到 25.1.6 后,它在 Mac 上停止工作。 adb -s emulator-5554 emu kill
我正在尝试 root 第 8 代 Kindle HD Fire (Fire OS 6.3.0.1)我已经打开了 Developer options,但是 Enable ADB 没有列在它下面。还有其他
我是一名优秀的程序员,十分优秀!