博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Android 数据连接关闭的情况下如何让彩信发不出去
阅读量:4044 次
发布时间:2019-05-24

本文共 738 字,大约阅读时间需要 2 分钟。

alps\frameworks\base\services\java\com\android\server\ConnectivityService.java
如下2个函数的开头加入如下语句:
startUsingNetworkFeature()
startUsingNetworkFeatureGemini()
        int currentDataConnectionSimId = -1;
        if(FeatureOption.MTK_GEMINI_ENHANCEMENT == true){
            long currentDataConnectionMultiSimId =  Settings.System.getLong(mContext.getContentResolver(), Settings.System.GPRS_CONNECTION_SIM_SETTING, Settings.System.DEFAULT_SIM_NOT_SET);
            currentDataConnectionSimId = SIMInfo.getSlotById(mContext, currentDataConnectionMultiSimId);
        }else{
            currentDataConnectionSimId = Settings.System.getInt(mContext.getContentResolver(), GPRS_CONNECTION_SETTING, GPRS_CONNECTION_SETTING_DEFAULT) - 1;
        }
  if(currentDataConnectionSimId < 0){
                return Phone.APN_REQUEST_FAILED;
  }

转载地址:http://pcedi.baihongyu.com/

你可能感兴趣的文章
Iron Foundry和Cloud Foundry的那些事
查看>>
Iron Foundry和Cloud Foundry的vcap对比
查看>>
Cloud Foundry Service Gateway源码分析
查看>>
浅谈Cloud Foundry中cloud_controller的postgres数据库
查看>>
搜索引擎核心技术入门
查看>>
Cloud Foundry中Service Gateway功能以及通信机制
查看>>
浅谈计算机系统结构的性能与可靠性
查看>>
TCP/IP协议中的安全问题
查看>>
Winnowing:一种文档指纹的通用算法
查看>>
浏览器中的安全窗口通信
查看>>
基于网络爬虫的XSS漏洞检测技术
查看>>
JasperReports Server on Cloud Foundry
查看>>
Cloud Foundry中基于Master/Slave机制的Service Gateway——解决Service Gateway单点故障问题
查看>>
iReport+JasperReports Server开发过程的Troubleshooting
查看>>
Cloud Foundry中通用service的集成
查看>>
Cloud Foundry中 JasperReports service集成
查看>>
Cloud Foundry中vmc tunnel与caldecott原理
查看>>
ConcurrentHashMap面试详解
查看>>
深拷贝和浅拷贝
查看>>
java集合框架
查看>>