mms receive 彩信接收

 

frameworks/opt/telephony/src/java/com/android/internal/telephony/RIL.java

processUnsolicited(RIL_UNSOL_RESPONSE_NEW_SMS) mGsmSmsRegistrant.notifyRegistrant(new AsyncResult(null, sms, null));

 

/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/GsmInboundSmsHandler.java

frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/CdmaInboundSmsHandler.java

GsmInboundSmsHandler(phone.mCi.setOnNewGsmSms(getHandler(), EVENT_NEW_SMS, null);)

 

/frameworks/opt/telephony/src/java/com/android/internal/telephony/InboundSmsHandler.java

processMessage(EVENT_NEW_SMS / EVENT_INJECT_SMS)

handleNewSms() / handleInjectSms()

dispatchMessage()

 

frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/GsmInboundSmsHandler.java

frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/CdmaInboundSmsHandler.java

dispatchMessageRadioSpecific()

 

frameworks/opt/telephony/src/java/com/android/internal/telephony/InboundSmsHandler.java

dispatchNormalMessage()

addTrackerToRawTableAndSendMessage()

processMessage(processMessage)

processMessagePart()

 

frameworks/opt/telephony/src/java/com/android/internal/telephony/WapPushOverSms.java

dispatchWapPdu(handler.dispatchIntent)

 

frameworks/opt/telephony/src/java/com/android/internal/telephony/InboundSmsHandler.java

dispatchIntent( mContext.sendOrderedBroadcastAsUser)

 

 

android/frameworks/opt/telephony/src/java/com/android/internal/telephony/WapPushOverSms.java:341:        Intent intent = new Intent(Intents.WAP_PUSH_DELIVER_ACTION);
android/frameworks/opt/telephony/src/java/com/android/internal/telephony/SmsApplication.java:90:         * The class name of the WAP_PUSH_DELIVER_ACTION receiver in this app.
android/frameworks/opt/telephony/src/java/com/android/internal/telephony/SmsApplication.java:178:     * Implement WAP_PUSH_DELIVER_ACTION broadcast receiver.
android/frameworks/opt/telephony/src/java/com/android/internal/telephony/SmsApplication.java:229:        intent = new Intent(Intents.WAP_PUSH_DELIVER_ACTION);
android/frameworks/opt/telephony/src/java/com/android/internal/telephony/InboundSmsHandler.java:1028:                || Intents.WAP_PUSH_DELIVER_ACTION.equals(action)
android/frameworks/opt/telephony/src/java/com/android/internal/telephony/InboundSmsHandler.java:1280:            } else if (action.equals(Intents.WAP_PUSH_DELIVER_ACTION)) {

 

/frameworks/opt/telephony/src/java/android/provider/Telephony.java

WAP_PUSH_DELIVER_ACTION = "android.provider.Telephony.WAP_PUSH_DELIVER";

 

/packages/apps/Mms/src/com/android/mms/transaction/PushReceiver.java   

<action android:name="android.provider.Telephony.WAP_PUSH_DELIVER" />

onReceive(new ReceivePushTask(context).execute(intent);)

doInBackground(MESSAGE_TYPE_NOTIFICATION_IND)startService

 

 

/packages/apps/Mms/src/com/android/mms/transaction/TransactionService.java

onStartCommand()

handleMessage(EVENT_NEW_INTENT)

onNewIntent()

launchTransaction(mServiceHandler.sendMessage(msg);)

handleMessage()

processTransaction(transaction.process();)

 

packages/apps/Mms/com.android.mms.transaction

NotificationTransaction.java

process() ---> run()

{       DownloadManager downloadManager = DownloadManager.getInstance();
        boolean autoDownload = allowAutoDownload();
        boolean isMemoryFull = MessageUtils.isMmsMemoryFull();
        boolean isTooLarge = isMmsSizeTooLarge(mNotificationInd);

}

sendNotifyRespInd    //发送接收mms的回调到mmsc

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值