Closed Bug 1019370 Opened 10 years ago Closed 10 years ago

[dolphin] dolphin always shows SIM 1's USSD message for Sim 2.

Categories

(Firefox OS Graveyard :: Gaia::Dialer, defect)

Other
Other
defect
Not set
normal

Tracking

(blocking-b2g:1.4+, b2g-v1.4 fixed, b2g-v2.0 fixed, b2g-v2.1 fixed)

RESOLVED FIXED
2.0 S6 (18july)
blocking-b2g 1.4+
Tracking Status
b2g-v1.4 --- fixed
b2g-v2.0 --- fixed
b2g-v2.1 --- fixed

People

(Reporter: angelc04, Assigned: gsvelto)

References

Details

(Whiteboard: [sprd317906][partner-blocker][planned-sprint][in-sprint=v2.0-S5])

[SIM Card         ]: SIM1:- Vodafone, SIM2:- Idea
[Testing Steps    ]:
a) Power ON dolphin with operators in respective slot.
b) Go to Settings->Sim Manager->Change the call settings to Always Ask.
c) Run USSD code *121# for Idea

[Testing Result   ]:7715 shows the wrong message pop up on running USSD code of Sim 2. It always show SIM1's USSD code.

from the log ,all ussd operation were sent to simcard 1. here is the code that cause problem:

gaia/communications/dailer/js/mmi.js

init: function mm_init(callback) {
   ...
   LazyLoader.load(lazyFiles, function resourcesLoaded() {
      self._conn = window.navigator.mozMobileConnection ||
                   window.navigator.mozMobileConnections &&
                   window.navigator.mozMobileConnections[0];  
      //it dirrectly used index 0 instead of reading from settings.

   }
   ...
}


Spreadtrum developper fixed this bug in tarako. So please also help provide the patch for dolphin.
blocking-b2g: --- → 1.4?
Whiteboard: [sprd317906]
> Spreadtrum developper fixed this bug in tarako. So please also help provide
> the patch for dolphin.

This issue is not the same as issue on tarako , so no patch for this.
Whiteboard: [sprd317906] → [sprd317906][partner-blocker]
Component: General → Gaia::Dialer
David,

Please review for dialer.
blocking-b2g: 1.4? → 1.4+
Component: Gaia::Dialer → General
Flags: needinfo?(dscravaglieri)
I think this is the same issue as bug 1019783.
Component: General → Gaia::Dialer
Gabriele: Is it just a matter of uplifting bug 1002327?
Assignee: nobody → gsvelto
Flags: needinfo?(dscravaglieri) → needinfo?(gsvelto)
Target Milestone: --- → 2.0 S4 (20june)
(In reply to Anthony Ricaud (:rik) from comment #5)
> Gabriele: Is it just a matter of uplifting bug 1002327?

Yup, that should fix this.
Flags: needinfo?(gsvelto)
Gabriele can you update here according to https://bugzilla.mozilla.org/show_bug.cgi?id=1002327#c32 ?
Flags: needinfo?(gsvelto)
(In reply to Wayne Chang [:wchang] from comment #7)
> Gabriele can you update here according to
> https://bugzilla.mozilla.org/show_bug.cgi?id=1002327#c32 ?

That comment was only about retrieving the IMEI code (i.e. *#60#). Basically all USSD commands work correctly on both SIMs with my patch applied including IMEI however we return only the IMEI code of the default SIM for outgoing calls. We need to return both codes regardless in that case but only in that one. All other cases pertaining to this bug are fixed by my patch.
Flags: needinfo?(gsvelto)
Target Milestone: 2.0 S4 (20june) → 2.0 S5 (4july)
Whiteboard: [sprd317906][partner-blocker] → [sprd317906][partner-blocker][planned-sprint]
Hi Gabriele

Can you help to land your patch in bug1002327 on v1.4?
I think v1.4 also need your patch.

Thanks a great.
Flags: needinfo?(gsvelto)
(In reply to Wei Gao (Spreadtrum) from comment #9)
> Can you help to land your patch in bug1002327 on v1.4?
> I think v1.4 also need your patch.

Yes, I'll do that today as soon as bug 990003 lands too.
Flags: needinfo?(gsvelto)
Depends on: 1002327
I've just requested bug 942740 to be uplifted to the v1.4 branch too. Without that Gecko patch the Gaia part in bug 1002327 is useless.
Gabrielle, bug 942740 was uplifted to 1.4 branch already.
(In reply to Kevin Hu [:khu] from comment #12)
> Gabrielle, bug 942740 was uplifted to 1.4 branch already.

Hi Gabriele

bug 942740 was uplifted to 1.4 branch already.
Flags: needinfo?(gsvelto)
Flags: needinfo?(gsvelto)
Whiteboard: [sprd317906][partner-blocker][planned-sprint] → [sprd317906][partner-blocker][planned-sprint][dialer-in-sprint=v2.0-S5]
Target Milestone: 2.0 S5 (4july) → 2.0 S6 (18july)
Whiteboard: [sprd317906][partner-blocker][planned-sprint][dialer-in-sprint=v2.0-S5] → [sprd317906][partner-blocker][planned-sprint][in-sprint=v2.0-S5]
Now that bug 1002327 has been uplifted to v1.4 this should be fixed.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.