Android 数据连接关闭的情况下如何让彩信发不出去

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;
  }

Android 数据连接关闭的情况下如何让彩信发不出去

上一篇:Android 短信收件人自动匹配与用户输入的显示不一致


下一篇:Android KK上如何让三方APK发送的SMS不显示出来