Closed Bug 1155101 Opened 9 years ago Closed 9 years ago

[FFOS2.0][Woodduck][STK]The device show a pop-up SMS sent witout user interaction Randomly

Categories

(Firefox OS Graveyard :: RIL, defect, P1)

defect

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: sync-1, Unassigned)

References

Details

Attachments

(5 files)

2.37 MB, application/octet-stream
Details
1.45 MB, image/png
Details
8.13 MB, application/x-rar-compressed
Details
8.13 MB, application/x-rar-compressed
Details
8.13 MB, application/x-rar-compressed
Details
Created an attachment (id=1241464)
 MTK logs
 
 I only could take the MTK log, a will be alert to catch more logs in catcher or ADB logcat
 
 
 		
 
  DEFECT DESCRIPTION:
 
 The device randomly show pop-up "SMS sent" witout any user interaction
 This issue is more reproducible when you restart the devices, and happens in the first 5 minutes
 
  REPRODUCING PROCEDURES:
 
 In idle or after resarting the MUT shows a pop up  randomly
 in the idle screen 
 
  EXPECTED BEHAVIOUR:
 
 Device shouldnt show a pop Up about an SMS sent witout the user interaction 
 
 
  ASSOCIATE SPECIFICATION:
 
  TEST PLAN REFERENCE:
 
  TOOLS AND PLATFORMS USED:
 
  USER IMPACT:
 
  REPRODUCING RATE:
 
  For FT PR, Please list reference mobile's behavior:
Attached file MTK logs
Attached image log-sms.bmp
Hi,

Please help to collect the adb logcat of both radio/main logs with RIL related debug flags enabled for further analysis:
https://github.com/bevis-tseng/Debug_Tools

Please also help to provide a screen shot for further clarification.

I wonder if it's a STK SMS sent notification instead.

Thanks!
Component: Gaia::SMS → RIL
Flags: needinfo?(sync-1)
Hi Bevis,
  The log you require is in folder "APLog_2015_0414_211846". 
I found that in the log:
  we receive the STK event notify "UNSOLICITED_STK_EVENT_NOTIFY", but it was handled as "SEND_SMS" command. Is it possible occurred?

---------------------------------------------------------------------------
RIL Worker: We have at least one complete parcel.
RIL Worker: [0] Unsolicited response for request type 1014
RIL Worker: [0] Handling parcel as UNSOLICITED_STK_EVENT_NOTIFY
RIL Worker: [0] PDU: Going to read Dialling number: 7
RIL Worker: [0] Unknown comprehension tag b
RIL Worker: [0] commandNumber = 1 typeOfCommand = 13 commandQualifier = 0
RIL Worker: Next parcel size unknown, going to sleep.
RadioInterface[0]: Received message from worker: {"commandNumber":1,"typeOfCommand":19,"commandQualifier":0,"rilMessageType":"stkcommand","options":{"text":""},"rilMessageClientId":0}
RadioInterface[0]: handleStkProactiveCommand {"commandNumber":1,"typeOfCommand":19,"commandQualifier":0,"rilMessageType":"stkcommand","options":{"text":""},"rilMessageClientId":0}
GeckoDump: [system] STK Proactive Command for SIM 8951061111304189894: {"commandNumber":1,"typeOfCommand":19,"commandQualifier":0,"rilMessageType":"stkcommand","options":{"text":""},"rilMessageClientId":0}
GeckoDump: [system] STK_CMD_SEND_SMS:{"text":""}
---------------------------------------------------------------------------
  and at gaia, the SMS sent as a alert.

-------------------------------
  // STK_CMD_SEND_SS
  '0x11': function STK_CMD_SEND_SS(message) {
    DUMP('STK_CMD_SEND_SS:', message.command.options);
  ...
    icc.alert(message, options.text);
  },
-------------------------------
  
  I will ask the HOMO co-worker for the screen shot. And help us figure it out, please.
Many thanks.
Sorry for the wrong code about SMS sent. The correct code about send SMS as follow,

  // STK_CMD_SEND_SMS
  '0x13': function STK_CMD_SEND_SMS(message) {
    DUMP('STK_CMD_SEND_SMS:', message.command.options);
    var options = message.command.options;
    //options.text exist and not empty
    if (options.text) {
      icc.confirm(message, options.text);
    } else if (options.text !== undefined) {
      //options.text can be empty or not empty
      var _ = navigator.mozL10n.get;
      icc.alert(message, _('icc-alertMessage-send-sms'));
    }
  },
I think the SMS was requested to sent by STK App of the inserted SIM card.
We just display the notification to the users.

There is not much we can do in gecko side.

Maybe you can double check the behavior of the same sim card on other reference phone to double confirm the behavior.
  Right, we are confirming with another phone. If any progress we will inform you ASAP.
Thanks.
Hi Bevis,
  Our co-worker has confirmed that this dont happened with any other device, so shouldn't show the pop up of a SMS sent.
Then, we might need chip vendor's help to check why STK App of the inserted SIM will request to send a SMS instead, since all this request were done in modem side and we showed this dialog just because we got a STK notification for sending SMS.
  I agree with you. We have consulted the chip vendor but they hasn't given an answer. Inform you ASAP when we get the information.
Thanks.
Hi Jason,
Could you help to find someone who can help from chipset side?
Thanks!
Flags: needinfo?(chien-hao.li)
Created an attachment (id=1247999)
 no popup sms log
 
 Dear Mozilla,
   MTK has replied that:
 In the incorrect log, there is a request of STK_SEND_TERMINAL_RESPONSE from Gaia. However, on MT6572 chip platform or maybe other chip, it's unnecessary
  to send a Terminal Response from AP(Gecko or Gaia). And MTK not sure whether the TR will cause the SMS sent pop-up.
   Hence, Shall we have to remove the responseSTKCommand code form gaia when PROVIDE_LOCAL_INFO command executed ?
 
 incorrect log:
 04-14 21:19:34.090   611   635 D use-Rlog/RLOG-AT: +STKPCI: 1,"D009810301260182028182"
 04-14 21:19:34.124   611   624 D use-Rlog/RLOG-RIL: onRequest: 70, STK_SEND_TERMINAL_RESPONSE, datalen = 4
 04-14 21:19:34.124   611   624 D use-Rlog/RLOG-AT: AT> AT+STKTR="81030126010202828183010014080142570000065020"
 04-14 21:19:35.457   611   635 D use-Rlog/RLOG-AT: +STKPCI: 1,"D07581030113008202818305000607911591559900F00B
 5F510105819910F700F60154027000004F0D00000000494D45000000001000109087961608000319898020A981560111103149898F4830
 80A4152070000560004080A000000400000000514FFFFFFFF7F9500DFFF0000000208110687C00000"
 
 correct log:
 04-20 19:16:34.539229   566   590 D AT      : +STKPCI: 1,"D009810301260182028182"
Created an attachment (id=1247999)
 no popup sms log
 
 Dear Mozilla,
   MTK has replied that:
 In the incorrect log, there is a request of STK_SEND_TERMINAL_RESPONSE from Gaia. However, on MT6572 chip platform or maybe other chip, it's unnecessary
  to send a Terminal Response from AP(Gecko or Gaia). And MTK not sure whether the TR will cause the SMS sent pop-up.
   Hence, Shall we have to remove the responseSTKCommand code form gaia when PROVIDE_LOCAL_INFO command executed ?
 
 incorrect log:
 04-14 21:19:34.090   611   635 D use-Rlog/RLOG-AT: +STKPCI: 1,"D009810301260182028182"
 04-14 21:19:34.124   611   624 D use-Rlog/RLOG-RIL: onRequest: 70, STK_SEND_TERMINAL_RESPONSE, datalen = 4
 04-14 21:19:34.124   611   624 D use-Rlog/RLOG-AT: AT> AT+STKTR="81030126010202828183010014080142570000065020"
 04-14 21:19:35.457   611   635 D use-Rlog/RLOG-AT: +STKPCI: 1,"D07581030113008202818305000607911591559900F00B
 5F510105819910F700F60154027000004F0D00000000494D45000000001000109087961608000319898020A981560111103149898F4830
 80A4152070000560004080A000000400000000514FFFFFFFF7F9500DFFF0000000208110687C00000"
 
 correct log:
 04-20 19:16:34.539229   566   590 D AT      : +STKPCI: 1,"D009810301260182028182"
Created an attachment (id=1247999)
 no popup sms log
 
 Dear Mozilla,
   MTK has replied that:
 In the incorrect log, there is a request of STK_SEND_TERMINAL_RESPONSE from Gaia. However, on MT6572 chip platform or maybe other chip, it's unnecessary
  to send a Terminal Response from AP(Gecko or Gaia). And MTK not sure whether the TR will cause the SMS sent pop-up.
   Hence, Shall we have to remove the responseSTKCommand code form gaia when PROVIDE_LOCAL_INFO command executed ?
 
 incorrect log:
 04-14 21:19:34.090   611   635 D use-Rlog/RLOG-AT: +STKPCI: 1,"D009810301260182028182"
 04-14 21:19:34.124   611   624 D use-Rlog/RLOG-RIL: onRequest: 70, STK_SEND_TERMINAL_RESPONSE, datalen = 4
 04-14 21:19:34.124   611   624 D use-Rlog/RLOG-AT: AT> AT+STKTR="81030126010202828183010014080142570000065020"
 04-14 21:19:35.457   611   635 D use-Rlog/RLOG-AT: +STKPCI: 1,"D07581030113008202818305000607911591559900F00B
 5F510105819910F700F60154027000004F0D00000000494D45000000001000109087961608000319898020A981560111103149898F4830
 80A4152070000560004080A000000400000000514FFFFFFFF7F9500DFFF0000000208110687C00000"
 
 correct log:
 04-20 19:16:34.539229   566   590 D AT      : +STKPCI: 1,"D009810301260182028182"
Created an attachment (id=1247999)
 no popup sms log
 
 Dear Mozilla,
   MTK has replied that:
 In the incorrect log, there is a request of STK_SEND_TERMINAL_RESPONSE from Gaia. However, on MT6572 chip platform or maybe other chip, it's unnecessary
  to send a Terminal Response from AP(Gecko or Gaia). And MTK not sure whether the TR will cause the SMS sent pop-up.
   Hence, Shall we have to remove the responseSTKCommand code form gaia when PROVIDE_LOCAL_INFO command executed ?
 
 incorrect log:
 04-14 21:19:34.090   611   635 D use-Rlog/RLOG-AT: +STKPCI: 1,"D009810301260182028182"
 04-14 21:19:34.124   611   624 D use-Rlog/RLOG-RIL: onRequest: 70, STK_SEND_TERMINAL_RESPONSE, datalen = 4
 04-14 21:19:34.124   611   624 D use-Rlog/RLOG-AT: AT> AT+STKTR="81030126010202828183010014080142570000065020"
 04-14 21:19:35.457   611   635 D use-Rlog/RLOG-AT: +STKPCI: 1,"D07581030113008202818305000607911591559900F00B
 5F510105819910F700F60154027000004F0D00000000494D45000000001000109087961608000319898020A981560111103149898F4830
 80A4152070000560004080A000000400000000514FFFFFFFF7F9500DFFF0000000208110687C00000"
 
 correct log:
 04-20 19:16:34.539229   566   590 D AT      : +STKPCI: 1,"D009810301260182028182"
Attached file no popup sms log
Created an attachment (id=1247999)
 no popup sms log
 
 Dear Mozilla,
   MTK has replied that:
 In the incorrect log, there is a request of STK_SEND_TERMINAL_RESPONSE from Gaia. However, on MT6572 chip platform or maybe other chip, it's unnecessary
  to send a Terminal Response from AP(Gecko or Gaia). And MTK not sure whether the TR will cause the SMS sent pop-up.
   Hence, Shall we have to remove the responseSTKCommand code form gaia when PROVIDE_LOCAL_INFO command executed ?
 
 incorrect log:
 04-14 21:19:34.090   611   635 D use-Rlog/RLOG-AT: +STKPCI: 1,"D009810301260182028182"
 04-14 21:19:34.124   611   624 D use-Rlog/RLOG-RIL: onRequest: 70, STK_SEND_TERMINAL_RESPONSE, datalen = 4
 04-14 21:19:34.124   611   624 D use-Rlog/RLOG-AT: AT> AT+STKTR="81030126010202828183010014080142570000065020"
 04-14 21:19:35.457   611   635 D use-Rlog/RLOG-AT: +STKPCI: 1,"D07581030113008202818305000607911591559900F00B
 5F510105819910F700F60154027000004F0D00000000494D45000000001000109087961608000319898020A981560111103149898F4830
 80A4152070000560004080A000000400000000514FFFFFFFF7F9500DFFF0000000208110687C00000"
 
 correct log:
 04-20 19:16:34.539229   566   590 D AT      : +STKPCI: 1,"D009810301260182028182"
Created an attachment (id=1247999)
 no popup sms log
 
 Dear Mozilla,
   MTK has replied that:
 In the incorrect log, there is a request of STK_SEND_TERMINAL_RESPONSE from Gaia. However, on MT6572 chip platform or maybe other chip, it's unnecessary
  to send a Terminal Response from AP(Gecko or Gaia). And MTK not sure whether the TR will cause the SMS sent pop-up.
   Hence, Shall we have to remove the responseSTKCommand code form gaia when PROVIDE_LOCAL_INFO command executed ?
 
 incorrect log:
 04-14 21:19:34.090   611   635 D use-Rlog/RLOG-AT: +STKPCI: 1,"D009810301260182028182"
 04-14 21:19:34.124   611   624 D use-Rlog/RLOG-RIL: onRequest: 70, STK_SEND_TERMINAL_RESPONSE, datalen = 4
 04-14 21:19:34.124   611   624 D use-Rlog/RLOG-AT: AT> AT+STKTR="81030126010202828183010014080142570000065020"
 04-14 21:19:35.457   611   635 D use-Rlog/RLOG-AT: +STKPCI: 1,"D07581030113008202818305000607911591559900F00B
 5F510105819910F700F60154027000004F0D00000000494D45000000001000109087961608000319898020A981560111103149898F4830
 80A4152070000560004080A000000400000000514FFFFFFFF7F9500DFFF0000000208110687C00000"
 
 correct log:
 04-20 19:16:34.539229   566   590 D AT      : +STKPCI: 1,"D009810301260182028182"
Created an attachment (id=1247999)
 no popup sms log
 
 Dear Mozilla,
   MTK has replied that:
 In the incorrect log, there is a request of STK_SEND_TERMINAL_RESPONSE from Gaia. However, on MT6572 chip platform or maybe other chip, it's unnecessary
  to send a Terminal Response from AP(Gecko or Gaia). And MTK not sure whether the TR will cause the SMS sent pop-up.
   Hence, Shall we have to remove the responseSTKCommand code form gaia when PROVIDE_LOCAL_INFO command executed ?
 
 incorrect log:
 04-14 21:19:34.090   611   635 D use-Rlog/RLOG-AT: +STKPCI: 1,"D009810301260182028182"
 04-14 21:19:34.124   611   624 D use-Rlog/RLOG-RIL: onRequest: 70, STK_SEND_TERMINAL_RESPONSE, datalen = 4
 04-14 21:19:34.124   611   624 D use-Rlog/RLOG-AT: AT> AT+STKTR="81030126010202828183010014080142570000065020"
 04-14 21:19:35.457   611   635 D use-Rlog/RLOG-AT: +STKPCI: 1,"D07581030113008202818305000607911591559900F00B
 5F510105819910F700F60154027000004F0D00000000494D45000000001000109087961608000319898020A981560111103149898F4830
 80A4152070000560004080A000000400000000514FFFFFFFF7F9500DFFF0000000208110687C00000"
 
 correct log:
 04-20 19:16:34.539229   566   590 D AT      : +STKPCI: 1,"D009810301260182028182"
Attached file no popup sms log
Created an attachment (id=1247999)
 no popup sms log
 
 Dear Mozilla,
   MTK has replied that:
 In the incorrect log, there is a request of STK_SEND_TERMINAL_RESPONSE from Gaia. However, on MT6572 chip platform or maybe other chip, it's unnecessary
  to send a Terminal Response from AP(Gecko or Gaia). And MTK not sure whether the TR will cause the SMS sent pop-up.
   Hence, Shall we have to remove the responseSTKCommand code form gaia when PROVIDE_LOCAL_INFO command executed ?
 
 incorrect log:
 04-14 21:19:34.090   611   635 D use-Rlog/RLOG-AT: +STKPCI: 1,"D009810301260182028182"
 04-14 21:19:34.124   611   624 D use-Rlog/RLOG-RIL: onRequest: 70, STK_SEND_TERMINAL_RESPONSE, datalen = 4
 04-14 21:19:34.124   611   624 D use-Rlog/RLOG-AT: AT> AT+STKTR="81030126010202828183010014080142570000065020"
 04-14 21:19:35.457   611   635 D use-Rlog/RLOG-AT: +STKPCI: 1,"D07581030113008202818305000607911591559900F00B
 5F510105819910F700F60154027000004F0D00000000494D45000000001000109087961608000319898020A981560111103149898F4830
 80A4152070000560004080A000000400000000514FFFFFFFF7F9500DFFF0000000208110687C00000"
 
 correct log:
 04-20 19:16:34.539229   566   590 D AT      : +STKPCI: 1,"D009810301260182028182"
Attached file no popup sms log
Created an attachment (id=1247999)
 no popup sms log
 
 Dear Mozilla,
   MTK has replied that:
 In the incorrect log, there is a request of STK_SEND_TERMINAL_RESPONSE from Gaia. However, on MT6572 chip platform or maybe other chip, it's unnecessary
  to send a Terminal Response from AP(Gecko or Gaia). And MTK not sure whether the TR will cause the SMS sent pop-up.
   Hence, Shall we have to remove the responseSTKCommand code form gaia when PROVIDE_LOCAL_INFO command executed ?
 
 incorrect log:
 04-14 21:19:34.090   611   635 D use-Rlog/RLOG-AT: +STKPCI: 1,"D009810301260182028182"
 04-14 21:19:34.124   611   624 D use-Rlog/RLOG-RIL: onRequest: 70, STK_SEND_TERMINAL_RESPONSE, datalen = 4
 04-14 21:19:34.124   611   624 D use-Rlog/RLOG-AT: AT> AT+STKTR="81030126010202828183010014080142570000065020"
 04-14 21:19:35.457   611   635 D use-Rlog/RLOG-AT: +STKPCI: 1,"D07581030113008202818305000607911591559900F00B
 5F510105819910F700F60154027000004F0D00000000494D45000000001000109087961608000319898020A981560111103149898F4830
 80A4152070000560004080A000000400000000514FFFFFFFF7F9500DFFF0000000208110687C00000"
 
 correct log:
 04-20 19:16:34.539229   566   590 D AT      : +STKPCI: 1,"D009810301260182028182"
(In reply to sync-1 from comment #13)
> Created an attachment (id=1247999)
>  no popup sms log
>  
>  Dear Mozilla,
>    MTK has replied that:
>  In the incorrect log, there is a request of STK_SEND_TERMINAL_RESPONSE from
> Gaia. However, on MT6572 chip platform or maybe other chip, it's unnecessary
>   to send a Terminal Response from AP(Gecko or Gaia). And MTK not sure
> whether the TR will cause the SMS sent pop-up.
>    Hence, Shall we have to remove the responseSTKCommand code form gaia when
> PROVIDE_LOCAL_INFO command executed ?

Hi,

This seems to be MTK-specific implementation that the PROVIDE_LOCAL_INFO was notified from 
RIL_UNSOL_STK_EVENT_NOTIFY.
04-14 21:19:34.091   169   679 I Gecko   : RIL Worker: [0] Handling parcel as UNSOLICITED_STK_EVENT_NOTIFY
04-14 21:19:34.092   169   679 I Gecko   : RIL Worker: [0] commandNumber = 1 typeOfCommand = 26 commandQualifier = 1

In addition, in AOSP, TR is expected for PROVIDE_LOCAL_INFO.
http://androidxref.com/5.1.0_r1/xref/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/CatService.java#394
That's why we provides the location info back to the modem according to the Command Type.
https://github.com/mozilla-b2g/gaia/blob/v2.0m/apps/system/js/icc_worker.js#L376

>  
>  incorrect log:
>  04-14 21:19:34.090   611   635 D use-Rlog/RLOG-AT: +STKPCI:
> 1,"D009810301260182028182"
>  04-14 21:19:34.124   611   624 D use-Rlog/RLOG-RIL: onRequest: 70,
> STK_SEND_TERMINAL_RESPONSE, datalen = 4
>  04-14 21:19:34.124   611   624 D use-Rlog/RLOG-AT: AT>
> AT+STKTR="81030126010202828183010014080142570000065020"
>  04-14 21:19:35.457   611   635 D use-Rlog/RLOG-AT: +STKPCI:
> 1,"D07581030113008202818305000607911591559900F00B
>  5F510105819910F700F60154027000004F0D00000000494D4500000000100010908796160800
> 0319898020A981560111103149898F4830
>  80A4152070000560004080A000000400000000514FFFFFFFF7F9500DFFF0000000208110687C
> 00000"
>  
>  correct log:
>  04-20 19:16:34.539229   566   590 D AT      : +STKPCI:
> 1,"D009810301260182028182"
Hi Bevis,
  You are right. The SIM flow is correct, and the problem is display the dialog pop-up when executing SEND SMS command with empty alpha identifier. We hide the pop-up because it's not required to show in protocol.
  So, Mozilla can reject this PR. Thanks your effort.
(In reply to pengfei.huang from comment #22)
> Hi Bevis,
>   You are right. The SIM flow is correct, and the problem is display the
> dialog pop-up when executing SEND SMS command with empty alpha identifier.
> We hide the pop-up because it's not required to show in protocol.
>   So, Mozilla can reject this PR. Thanks your effort.

Glad to know the root cause. :)

Thanks!
change status per comment 22.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → WONTFIX
Flags: needinfo?(sync-1)
Flags: needinfo?(chien-hao.li)
Resolution: WONTFIX → INVALID
Dear Wayne Teng,
   we can close this bug, please see TCL bug979154.
   Thanks
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: