Closed Bug 1129402 Opened 9 years ago Closed 9 years ago

IMEI numbers are not displayed after dialing '*#06#' or in Settings app

Categories

(Firefox OS Graveyard :: RIL, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(firefox38 fixed)

RESOLVED FIXED
2.2 S6 (20feb)
Tracking Status
firefox38 --- fixed

People

(Reporter: viorela, Assigned: aknow)

References

Details

(Whiteboard: [fromAutomation])

Attachments

(3 files, 2 obsolete files)

Attached image screenshot.png
The users cannot find the IMEI numbers of their Flame devices. The IMEI numbers are not displayed when dialing '*#06#', error message is displayed instead: http://jenkins1.qa.scl3.mozilla.com/view/UI/job/flame-kk-319.mozilla-central.nightly.ui.functional.non-smoke.1/4/HTML_Report/

The issue is reproducible manually, repro rate: 5/5

1. Launch Dialer app
2. Type '*#06#', in order to get the IMEI numbers

#Expected results:
The IMEI numbers are displayed

#Actual results:
'Generic failure' message is displayed

Note: In Settings - Device information - More information, the IMEI numbers are still not displayed in the IMEI section, 'Not available' message is shown instead.

Build info:
Device firmware (base) 	L1TC100118D0
Device firmware (date) 	04 Feb 2015 01:39:07
Device firmware (incremental) 	eng.cltbld.20150204.043856
Device firmware (release) 	4.4.2
Device identifier 	flame
Gaia date 	03 Feb 2015 10:49:40
Gaia revision 	dfebaaa8aab4
Gecko build 	20150204010225
Gecko revision 	0c2f7434c325
Gecko version 	38.0a1
Whiteboard: [fromAutomation]
This is causing failures in 2 of our automated tests. Vicamo, can you take a look? Thanks!
Flags: needinfo?(vicamo)
Hi Viorela, 

Could you please provide us more debug messages?
Please refer to |RIL Debugging| section in https://wiki.mozilla.org/B2G/QA/Tips_And_Tricks#Changing_preferences to enable ril debugger.
Then, please use |adb logcat -b radio -b main -v time| to capture logs.
Flags: needinfo?(vicamo)
(In reply to Hsin-Yi Tsai [:hsinyi] from comment #2)
> Hi Viorela, 
> 
> Could you please provide us more debug messages?
> Please refer to |RIL Debugging| section in
> https://wiki.mozilla.org/B2G/QA/Tips_And_Tricks#Changing_preferences to
> enable ril debugger.
> Then, please use |adb logcat -b radio -b main -v time| to capture logs.

Oh, never mind. After I update the build, I could easily see this issue. Will take a look.
I noticed that gecko returned imei correctly, and gaia did receive imei right. However, the imei wasn't shown correctly on the panel. 

=== log snippet @ Settings ===
567 02-05 11:30:36.372 I/Gecko   ( 1612): TelephonyService: Dialing *#06#
 568 02-05 11:30:36.372 I/Gecko   ( 1612): TelephonyService: Error: Dail a non-emergency by dialEmergency. Drop.
 569 02-05 11:30:36.372 I/Gecko   ( 1612): -*- RadioInterface[0]: Received message from worker: {"mmi":{"fullMMI":"*#06#","procedure":"*#","serviceCode":"06"},"rilMessa     geClientId":0,"rilMessageToken":25,"rilMessageType":"sendMMI","success":true,"statusMessage":"864332020601599"}
 570 02-05 11:30:36.372 I/Gecko   ( 1612): TelephonyService: MMI response: {"mmi":{"fullMMI":"*#06#","procedure":"*#","serviceCode":"06"},"rilMessageClientId":0,"rilMes     sageToken":25,"rilMessageType":"sendMMI","success":true,"statusMessage":"864332020601599"}
 571 02-05 11:30:36.392 I/Settings( 2085): Content JS LOG: XXX settings IMEI: 864332020601599
 572 02-05 11:30:36.392 I/Settings( 2085):     at mi__getImeiCode/about_dialImeiPromise/< (app://settings.gaiamobile.org/js/panels/about_more_info/panel.js:244:12)

=== log snippet @commnuications ===
 856 02-05 11:31:33.022 I/Gecko   ( 1612): TelephonyService: MMI response: {"mmi":{"fullMMI":"*#06#","procedure":"*#","serviceCode":"06"},"rilMessageClientId":0,"rilMes     sageToken":26,"rilMessageType":"sendMMI","success":true,"statusMessage":"864332020601599"}
 857 02-05 11:31:33.022 I/Gecko   ( 1612): TelephonyService: Dialing *#06#
 858 02-05 11:31:33.022 I/Gecko   ( 1612): TelephonyService: Error: Dail a non-emergency by dialEmergency. Drop.
 859 02-05 11:31:33.062 I/Communications( 2023): Content JS LOG: XXX IMEI: 864332020601599
 860 02-05 11:31:33.062 I/Communications( 2023):     at mm_getImeiForCard/</< (app://communications.gaiamobile.org/dialer/js/mmi.js:422:10)
Hey Gabriele,
There seems something wrong in gaia. Could you help take a look? Thank you.
Flags: needinfo?(gsvelto)
I know the root cause. It's the bug in gecko and I can fix it.

 858 02-05 11:31:33.022 I/Gecko   ( 1612): TelephonyService: Error: Dail a non-emergency by dialEmergency. Drop.

In multi-sim but only one sim is available case:
Gaia will sends two request to gecko.  However, in recent change, I just thought I should block one of the request because its radio is not available.  Well... it looks like it's only true for other mmi code except IMEI.
Assignee: nobody → szchen
Flags: needinfo?(gsvelto)
Attached patch Fix IMEI request (obsolete) — Splinter Review
Attachment #8559629 - Flags: review?(htsai)
Attached patch #2 Fix IMEI request (obsolete) — Splinter Review
Attachment #8559629 - Attachment is obsolete: true
Attachment #8559629 - Flags: review?(htsai)
Attachment #8559632 - Flags: review?(htsai)
Comment on attachment 8559632 [details] [diff] [review]
#2 Fix IMEI request

Review of attachment 8559632 [details] [diff] [review]:
-----------------------------------------------------------------

Looks right!
Attachment #8559632 - Flags: review?(htsai) → review+
Attachment #8559632 - Attachment is obsolete: true
Attachment #8560303 - Flags: review+
Keywords: checkin-needed
Blocks: 1130391
https://hg.mozilla.org/mozilla-central/rev/f443e2cdbbaa
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → 2.2 S6 (20feb)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: