使用ADB从双SIM卡Android设备拨打电话 [英] Making a call from a dual sim android device using adb

查看:1206
本文介绍了使用ADB从双SIM卡Android设备拨打电话的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用adb在双SIM卡电话(SIM 0和SIM 1)上通过特定SIM卡拨打电话,但我不知道如何将呼叫定向到该特定SIM卡插槽。
到目前为止,我尝试使用以下命令进行呼叫:

I am trying to make a call from a specific sim on a dual sim phone (SIM 0 and SIM 1) using adb and I can't figure out how to direct the call to that particular sim slot. So far, I have tried making a call using the following command:

adb shell am start -a android.intent.action.CALL -d tel:XXXXXXXXXX

此方法工作正常,但始终使用SIM 0进行调用。

This works fine, but it always calls using SIM 0.

我尝试将radiooptions用作:

I tried using radiooptions as:

adb shell radiooptions

但事实证明,此特定设备不支持radiooptions。

but it turns out, radiooptions is not supported on this particular device.

/system/bin/sh: radiooptions: not found

我确实在另一台设备(不是双卡双待)上尝试过它,而radiooptions似乎可以在该设备上工作。这就是我首先尝试使用radiooptions的全部原因,因为它有一个非常明确的实现来选择特定的SIM卡。

I did try it on another device, which is not dual sim, and radiooptions seems to work on that. That was the whole reason I was trying out radiooptions in the first place because it has a very clear cut implementation for selecting specific sim cards.

无论如何,我发现了以下问题适用于双SIM卡Android手机,但它们不是基于adb的。它们都是Java问题。

Anyways, I found the following questions for dual sim android phones, but they are not adb based. they are all Java questions.

使用双SIM卡设备中的指定SIM卡拨打电话

从第二个SIM卡拨打电话

他们似乎有所帮助并提供了一些线索如何做到的,尤其是这个:

They seem to help and give some clues as to how it can be done,especially this one:

SO更改SIM卡的答案

这与我的需求非常接近,但是我不知道如何将其转换为命令提示符友好代码。

This is very close to what I need, but I don't know how to convert this into a command prompt friendly code.

以上链接中使用的方法 intent在此处提供文档:

The method "intent" used in the above links has a documentation here:

https://developer.android.com/reference/android/content/Intent.html

Multi sim android Official documenta tion:
https://developer.android.com/ about / versions / android-5.1.html#multisim

Multi sim android official documentation: https://developer.android.com/about/versions/android-5.1.html#multisim

非常感谢您的帮助。

推荐答案

SIM卡只是一个容器。电话用于在网络上注册并进行呼叫的实体的名称为 SubscriberID 。一张SIM卡可能包含多个 SubscriberID

SIM Card is just a container. The name of the entity being used by the phone to register with the network and to make calls is SubscriberID. A single SIM Card may contain multiple SubscriberIDs.

因此,您无需询问如何从另一张SIM卡拨打电话 >您应该问如何使用默认ID以外的SubscriberID进行呼叫 -其他 SubscriberID 是存储在同一张SIM卡还是另一张SIM卡上几乎无关。

So instead of asking how to make a call from another SIM Card you should be asking how to make a call using SubscriberID other than the default one - whether this other SubscriberID is stored on the same or another SIM Card is mostly irrelevant.

我不知道是否可以为单个呼叫指定其他 SubscriberID 。但是您可以在调用之前设置一个新的默认 SubscriberID ,然后再将其还原回来。

I do not know if there is a way to specify a different SubscriberID for a single call. But you should be fine with setting a new default SubscriberID before the call and then reverting it back afterwards.

要查找当前ID值,请运行:

To find out the current ID value run:

adb shell settings get global multi_sim_voice_call

然后通过UI更改活动的订户并再次运行命令以获取另一个ID。

Then change the active Subscriber via UI and run the command again to get another ID.

在调用之前使用此命令切换到适当的ID:

Use this command to switch to the appropriate ID before calling:

adb shell settings put global multi_sim_voice_call <ID>

要更改数据通话设置-使用 multi_sim_data_call 代替 multi_sim_voice_call

To change data call settings - use multi_sim_data_call instead of multi_sim_voice_call.

这篇关于使用ADB从双SIM卡Android设备拨打电话的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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