[Android Software Development] jimbo77:
Hey Guys!

Superb Job maintaining such Excellent Guide :)...

Here I come asking for your help, with the latest MIUI Releases I've been having a issues with SMS Service. Any time I send a Message it will restart the GSM Network, it's something like loosing the Network signal for about 5~10 seconds and then coming back.

I've taken a logcat of the issue but I can't find any unusual on it so I was hopping you can help me out :)

This is when the message is being sent:

D/MmsSmsProvider( 4315): getSingleAddressId: insert new canonical_address for xxxxxx, _id=2

D/MmsSmsProvider( 4315): getThreadId: create new thread_id for recipients xxxxxxxx

D/MmsSmsProvider( 4315): insertThread: created new thread_id 2 for recipientIds xxxxxxx

D/Mms:transaction( 5109): sendSmsWorker sending message: recipients=4027****, threadId=2

D/Mms ( 5109): [136] SmsMessageSender.java(140): æ˜¯å¦èŽ·å–å‘é€æŠ¥å‘Š:true

I/MmsSmsDatabaseHelper( 4315): Deleted 0 obsolete threads

D/SmsMessageSender( 5109): message queued, uri:content://sms/4, recipient:402744??

D/Mms ( 5109): [136] SmsMessageSender.java(214): å‘ç»™4027????çš„çŸ*ä¿¡å·²æ”¾å…¥å‘é€é˜Ÿåˆ—

D/Mms ( 5109): [136] SmsMessageSender.java(223): å¹¿æ’*SmsReceiverService.ACTION_SEND_MESSAGE

W/Mms/cache( 5109): RecipientId 2 not in cache!

D/Mms ( 5109): [1] RecipientIdCache.java(72): [RecipientIdCache] fill: begin

D/dalvikvm( 4315): GC_EXPLICIT freed 1469K, 38% free 12655K/20099K, paused 1ms+3ms, total 25ms

D/Mms ( 5109): [1] ComposeMessageRouterActivity.java(54): routing: threadId=2, messageCount=1, recipientCount=1

I/ActivityManager( 2490): START {flg=0x4010000 cmp=com.android.mms/.ui.SingleRecipientConversationActivity (has extras) u=0} from pid 5109

I/MiuiCursorController( 5109): InsertionPointCursorController is hidden including all panels and handle

I/MiuiHandleView( 5109): Hide the HandleView and remove from PositionListener, mVisible=false mDelayed=true

V/SmsReceiverService( 5109): onStart: #1 mResultCode: -1 = Activity.RESULT_OK

D/dalvikvm( 5109): GC_EXPLICIT freed 1658K, 25% free 15092K/20099K, paused 1ms+5ms, total 33ms

D/MessageEditableActivityBase( 5109): switching msg type, , no mid phones:0, channel opened:false, recipients size:1

I/MmsSmsDatabaseHelper( 4315): Deleted 0 obsolete threads

D/MessageEditableActivityBase( 5109): switching msg type, , no mid phones:1, channel opened:false, recipients size:1

D/MessageEditableActivityBase( 5109): switching msg type, , no mid phones:1, channel opened:false, recipients size:1

I/MiuiCursorController( 5109): InsertionPointCursorController is hidden including all panels and handle

I/MiuiHandleView( 5109): Hide the HandleView and remove from PositionListener, mVisible=false mDelayed=true

D/MessageEditableActivityBase( 5109): switching msg type, , no mid phones:1, channel opened:false, recipients size:1

D/SmsSingleRecipientSender( 5109): message handed off to framework, uri: content://sms/4, recipient: 402744??

V/PhoneStatusBar( 4245): setLightsOn(true)

W/ResourceType( 2490): Skipping entry 0x10a0000 in package table 0 because it is not complex!

I/ActivityManager( 2490): Displayed com.android.mms/.ui.SingleRecipientConversationActivity: +190ms

W/ResourceType( 2490): Skipping entry 0x10a0001 in package table 0 because it is not complex!

I/InputAttributes( 4295): InputType.TYPE_NULL is specified

D/dalvikvm( 4459): GC_EXPLICIT freed 474K, 39% free 12302K/20099K, paused 2ms+5ms, total 27ms

D/Mms ( 5109): [1] WorkingMessage.java(891): [WorkingMessage] discard

And here is where the Signal is lost AND back again:

D/SmsReceiver( 5109): sms ack received, uri: content://sms/4, result: -1

V/SmsReceiverService( 5109): onStart: #1 mResultCode: -1 = Activity.RESULT_OK

V/Mms ( 5109): [1] MmsSystemEventReceiver.java(131): Intent received: Intent { act=android.intent.action.SERVICE_STATE flg=0x10 (has extras) }

V/Mms ( 5109): [1] MmsSystemEventReceiver.java(140): ACTION_SERVICE_STATE_CHANGED: 1

D/SmsReceiverService( 5109): message sent, uri: content://sms/4, result: -1

I/LocationManagerService( 2490): request passive (pid 2490) 0 0

I/MmsSmsDatabaseHelper( 4315): Deleted 0 obsolete threads

D/SimStateChangeReceiver( 6851): ACTION_SIM_STATE_CHANGED state : NOT_READY reason : null

D/SimStateChangeReceiver( 6851): ACTION_SIM_STATE_CHANGED state : READY reason : null

D/CAT ( 4315): CatService: SIM ready. Reporting STK service running now...

D/AlarmManagerService( 2490): Kernel timezone updated to 360 minutes west of GMT

D/SimStateChangeReceiver( 6851): ACTION_SIM_STATE_CHANGED state : IMSI reason : null

D/AlarmManagerService( 2490): Kernel timezone updated to 360 minutes west of GMT

V/Mms ( 5109): [1] MmsSystemEventReceiver.java(131): Intent received: Intent { act=android.intent.action.SERVICE_STATE flg=0x10 (has extras) }

V/Mms ( 5109): [1] MmsSystemEventReceiver.java(140): ACTION_SERVICE_STATE_CHANGED: 1

I/LocationManagerService( 2490): remove passive (pid 2490), next minTime = 0

D/MccTable( 4315): updateMccMncConfiguration: mcc=704, mnc=1

D/MccTable( 4315): locale set to null_gt

D/MccTable( 4315): WIFI_COUNTRY_CODE set to gt

I/WifiService( 2490): WifiService trying to set country code to gt with persist set to true

D/SimStateChangeReceiver( 6851): ACTION_SIM_STATE_CHANGED state : LOADED reason : null

E/TelephonyProvider( 4315): Failed setting numeric '70401' to the current operator

V/Mms ( 5109): [1] MmsSystemEventReceiver.java(131): Intent received: Intent { act=android.intent.action.SERVICE_STATE flg=0x10 (has extras) }

V/Mms ( 5109): [1] MmsSystemEventReceiver.java(140): ACTION_SERVICE_STATE_CHANGED: 3

I/LocationManagerService( 2490): request passive (pid 2490) 0 0

D/SimStateChangeReceiver( 6851): ACTION_SIM_STATE_CHANGED state : NOT_READY reason : null

D/SimStateChangeReceiver( 6851): ACTION_SIM_STATE_CHANGED state : READY reason : null

D/CAT ( 4315): CatService: SIM ready. Reporting STK service running now...

D/AlarmManagerService( 2490): Kernel timezone updated to 360 minutes west of GMT

D/SimStateChangeReceiver( 6851): ACTION_SIM_STATE_CHANGED state : IMSI reason : null

D/AlarmManagerService( 2490): Kernel timezone updated to 360 minutes west of GMT

V/Mms ( 5109): [1] MmsSystemEventReceiver.java(131): Intent received: Intent { act=android.intent.action.SERVICE_STATE flg=0x10 (has extras) }

V/Mms ( 5109): [1] MmsSystemEventReceiver.java(140): ACTION_SERVICE_STATE_CHANGED: 1

I/LocationManagerService( 2490): remove passive (pid 2490), next minTime = 0

D/AndroidRuntime( 8285):

D/AndroidRuntime( 8285): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<

D/AndroidRuntime( 8285): CheckJNI is OFF

D/dalvikvm( 8285): Trying to load lib libjavacore.so 0x0

D/dalvikvm( 8285): Added shared lib libjavacore.so 0x0

D/dalvikvm( 8285): Trying to load lib libnativehelper.so 0x0

D/dalvikvm( 8285): Added shared lib libnativehelper.so 0x0

D/AndroidRuntime( 8285): Calling main entry com.android.commands.am.Am

D/AndroidRuntime( 8285): Shutting down VM

D/dalvikvm( 8285): GC_CONCURRENT freed 99K, 88% free 493K/4096K, paused 0ms+0ms, total 2ms

D/dalvikvm( 2490): GC_EXPLICIT freed 780K, 51% free 23310K/46983K, paused 2ms+7ms, total 48ms

D/MccTable( 4315): updateMccMncConfiguration: mcc=704, mnc=1

D/MccTable( 4315): locale set to null_gt

D/MccTable( 4315): WIFI_COUNTRY_CODE set to gt

I/WifiService( 2490): WifiService trying to set country code to gt with persist set to true

D/SimStateChangeReceiver( 6851): ACTION_SIM_STATE_CHANGED state : LOADED reason : null

E/TelephonyProvider( 4315): Failed setting numeric '70401' to the current operator

D/AlarmManagerService( 2490): Kernel timezone updated to 360 minutes west of GMT

V/Mms ( 5109): [1] MmsSystemEventReceiver.java(131): Intent received: Intent { act=android.intent.action.SERVICE_STATE flg=0x10 (has extras) }

V/Mms ( 5109): [1] MmsSystemEventReceiver.java(140): ACTION_SERVICE_STATE_CHANGED: 0

D/StatusBar.NetworkController( 4245): updateTelephonySignalStrength: mSignalStrength == 1(GSM) 16(CDMA)

D/StatusBar.NetworkController( 4245): updateTelephonySignalStrength: mSignalStrength == 3(GSM) 16(CDMA)

D/dalvikvm( 4459): GC_EXPLICIT freed 477K, 39% free 12302K/20099K, paused 2ms+4ms, total 28ms

D/StatusBar.NetworkController( 4245): updateTelephonySignalStrength: mSignalStrength == 5(GSM) 16(CDMA)

I'd really appreciate if any of you can give me a hint of where the issue might be :D