You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何使用ADB命令切换至SIM2发起通话(双卡双待场景)

双卡双待下通过ADB指定SIM卡发起通话或修改默认SIM

一、直接使用SIM2发起通话

Android 5.1(API 22)及以上版本支持通过android.intent.extra.PHONE_ACCOUNT_HANDLE参数指定SIM卡发起通话,步骤如下:

  1. 获取SIM卡的Phone Account Handle
    执行以下命令查询所有可用SIM卡的账户信息:

    adb shell content query --uri content://telephony/phone_accounts
    

    在输出结果中找到对应SIM2的phone_account_handle字段值,格式通常为ComponentInfo{com.android.server.telephony/com.android.server.telephony.TelephonyConnectionService}:2(末尾数字2一般对应SIM2,具体以实际输出为准)。

  2. 指定SIM2发起通话
    将获取到的phone_account_handle值带入以下命令:

    adb shell am start -a android.intent.action.CALL -d tel:123-4567 --es android.intent.extra.PHONE_ACCOUNT_HANDLE "ComponentInfo{com.android.server.telephony/com.android.server.telephony.TelephonyConnectionService}:2"
    

二、修改默认通话SIM卡

若需要长期设置默认使用SIM2发起通话,可通过修改系统全局设置实现:

  1. 获取SIM2的Phone Account ID
    同样使用上述content query命令获取SIM2的phone_account_handle值。

  2. 设置默认通话SIM卡
    执行以下命令(替换为你获取到的SIM2的phone_account_handle值):

    adb shell settings put global default_phone_account "ComponentInfo{com.android.server.telephony/com.android.server.telephony.TelephonyConnectionService}:2"
    

注意事项

  • 部分定制化Android系统(如小米、华为等)可能存在参数差异,若上述命令无效,可尝试查询厂商专属的设置项或Phone Account路径。
  • 修改系统全局设置可能需要ROOT权限,部分无ROOT设备可能无法执行该操作。

内容的提问来源于stack exchange,提问作者Boo Seok hyun

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.03 18:01:08