三星设备API 12不会自动拨号代码

发布于 01-20 20:07 字数 303 浏览 2 评论 0原文

我们正在尝试通过ADB命令拨打代码,

  "*%2306%23" = "*#06#" 

以获取有关IMEI的信息。

 adb -s "DEVICE SERIAL" shell am start -a android.intent.action.DIAL -d tel:*%2306%23

连接的设备在屏幕上显示代码,但没有自动拨号。但是,当我们尝试手动拨号时,它可以正常工作。

该设备已连接,并启用了开发人员选项。

任何帮助将不胜感激。

We are trying to dial the code

  "*%2306%23" = "*#06#" 

through the adb command to fetch the information about the IMEI

 adb -s "DEVICE SERIAL" shell am start -a android.intent.action.DIAL -d tel:*%2306%23

The connected device shows the code on the screen but doesn't auto-dial. But, when we try to dial manually it's working fine.

The device is connected and the developer option is enabled.

Any help would be appreciated.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

云淡月浅2025-01-27 20:07:01

您发送的意图仅打开拨号应用程序并输入该号码,它不会拨号。为了拨打
您没有拨打常规号码,要输入一些代码,因此您必须打开拨号器并通过符号输入代码符号:

adb shell am start -a android.intent.action.DIAL
adb shell input keyevent KEYCODE_STAR
adb shell input keyevent KEYCODE_POUND
adb shell input keyevent KEYCODE_0
adb shell input keyevent KEYCODE_6
adb shell input keyevent KEYCODE_POUND

The intent that you are sending only opens the dialer app and enters the number, it does not dial. In order to dial you have to press the call button - adb shell input keyevent KEYCODE_CALL, but...
you are not dialing a regular number, you want to enter some code, so you have to open the dialer and enter the code symbol by symbol:

adb shell am start -a android.intent.action.DIAL
adb shell input keyevent KEYCODE_STAR
adb shell input keyevent KEYCODE_POUND
adb shell input keyevent KEYCODE_0
adb shell input keyevent KEYCODE_6
adb shell input keyevent KEYCODE_POUND
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文