Closed Bug 883048 Opened 12 years ago Closed 12 years ago

[MMI] Send a ussd code while in airplane mode is allowed and doesn´t show any notification

Categories

(Core :: DOM: Device Interfaces, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla25
blocking-b2g leo+
Tracking Status
firefox23 --- wontfix
firefox24 --- wontfix
firefox25 --- fixed
b2g18 --- fixed
b2g18-v1.0.0 --- wontfix
b2g18-v1.0.1 --- wontfix
b2g-v1.1hd --- fixed

People

(Reporter: carlosmartinez, Assigned: ferjm)

References

Details

(Whiteboard: leorun3,mozilla-triage)

Attachments

(1 file, 1 obsolete file)

Tested in Leo device with: ril01.01.00.019.117 Gecko: b518de015ff9d28c7a59a9f1e799fc0ec688024e Gaia: ea18de80fd04110756becaed214656642388401d STR: 1-Enable airplane mode 2-Dial *321# Expected result --> Some kind of notification to the user should be shown, indicating calls cannot be stablished with airplane mode on Actual result --> USSD is sent and then generic failure is shown
blocking-b2g: --- → leo?
Whiteboard: leorun3 → leorun3,mozilla-triage
blocking-b2g: leo? → leo+
Assignee: nobody → ferjmoreno
Component: Gaia::Dialer → DOM: Device Interfaces
Product: Boot2Gecko → Core
Blocks: MMI
Summary: [DIALER] Send a ussd code while in airplane mode is allowed and doesn´t show any notification → [MMI] Send a ussd code while in airplane mode is allowed and doesn´t show any notification
Can we display the same error as if we're trying to make a phone call in airplane mode? Some phones use the same prompt for both USSD and phone call cases in airplane mode.
Flags: needinfo?(ferjmoreno)
Sure, we can do that. I'd like to fire this error from the platform though, so I'll need bug 883178 before.
Depends on: 883178
Flags: needinfo?(ferjmoreno)
Hi Fernando, can we move on this bug now that bug 883178 is done ;)
Flags: needinfo?(ferjmoreno)
Yes. However, I'd like to say in advance that there are MMI codes that are supposed to be allowed even in airplane mode (i.e. get IMEI, or any device specific MMI code). We don't know in advance if the MMI request involves a network connection, so we need to send it to the RIL and show the result in the MMI screen. All that we can do is to substitute the "Generic Failure" message error for a "Radio not available" one.
Flags: needinfo?(ferjmoreno)
Attached patch v1 (obsolete) — Splinter Review
Untested patch
Hi Fernando, That sounds fair. I think we should replce it when RIl throws an error while airplane mode is enabled. In case where airplane mode is disabled, keep whatever prompt we currently have. Does that sound right? When can we expect a patch ready? Thanks!
Attached patch v1Splinter Review
Attachment #771620 - Attachment is obsolete: true
Attachment #772047 - Flags: review?(vyang)
Comment on attachment 772047 [details] [diff] [review] v1 Review of attachment 772047 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/system/gonk/ril_worker.js @@ +2233,5 @@ > + // If we couldn't parse the MMI code, we'll send it as an USSD request. > + if (mmi === null) { > + if (!_isRadioAvailable(MMI_KS_SC_USSD)) { > + return; > + } Should move this if-block into |if (this._ussdSession)|.
Attachment #772047 - Flags: review?(vyang) → review+
Fernando, is there a Gaia change to show this error?
http://hg.mozilla.org/projects/birch/rev/972a7b140ddd No, there is no need for a Gaia patch.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla25
Blocks: 893791
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: