Closed Bug 1110619 Opened 10 years ago Closed 9 years ago

[RIL] Use RIL_REQUEST_DEVICE_IDENTITY to get IMEI, IMEISV

Categories

(Firefox OS Graveyard :: RIL, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(feature-b2g:2.2r+, firefox45 fixed, b2g-v2.5 wontfix, b2g-v2.2r fixed, b2g-master affected)

RESOLVED FIXED
2.6 S1 - 11/20
feature-b2g 2.2r+
Tracking Status
firefox45 --- fixed
b2g-v2.5 --- wontfix
b2g-v2.2r --- fixed
b2g-master --- affected

People

(Reporter: hsinyi, Assigned: bevis)

References

Details

(Whiteboard: [good first bug])

Attachments

(4 files, 2 obsolete files)

RIL_REQUEST_GET_IMEI and RIL_REQUEST_GET_IMEISV have been deprecated since ics. RIL_REQUEST_DEVICE_IDENTITY is suggested to be used instead.
I'd like to take this bug to verify the parcel of RIL_REQUEST_DEVICE_IDENTITY to be added in bug 1222920. Then, we could have better test coverage for bug 1222870.
Assignee: nobody → btseng
Attached patch Part 1: IDL Interface Changes. (obsolete) (deleted) — Splinter Review
Hi Edgar, May I have your review for this change? Thanks!
Attachment #8685771 - Flags: review?(echen)
Attached patch (v1) Part 2: Implementation Changes. (obsolete) (deleted) — Splinter Review
Hi Edgar, May I have your review for this change? Thanks!
Attachment #8685772 - Flags: review?(echen)
Depends on: 1222920
Comment on attachment 8685771 [details] [diff] [review] Part 1: IDL Interface Changes. Review of attachment 8685771 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/mobileconnection/interfaces/nsIMobileConnectionService.idl @@ +323,5 @@ > > /** > + * Device Identities, including IMEI, IMEISV, ESN and MEID. > + */ > + readonly attribute nsIMobileDeviceIdentities deviceIdentities; Per offline discussion, please also add a listener to notify the identities is updated. Thank you. ::: dom/mobileconnection/interfaces/nsIMobileDeviceIdentities.idl @@ +21,5 @@ > + * Device IMEISV, which should be 2-decimal digits. > + * > + * Valid if GSM subscription is available. > + * > + * Note: The value might be dummy like "000..." from modem Please revise the commit, IMEISV should be 2-decimal digits.
Attachment #8685771 - Flags: review?(echen)
Blocks: 1222870
Set NI for 2.2r+ in feature-b2g.
Flags: needinfo?(whuang)
Comment on attachment 8685771 [details] [diff] [review] Part 1: IDL Interface Changes. Review of attachment 8685771 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/mobileconnection/interfaces/nsIMobileConnectionService.idl @@ +323,5 @@ > > /** > + * Device Identities, including IMEI, IMEISV, ESN and MEID. > + */ > + readonly attribute nsIMobileDeviceIdentities deviceIdentities; will do ::: dom/mobileconnection/interfaces/nsIMobileDeviceIdentities.idl @@ +21,5 @@ > + * Device IMEISV, which should be 2-decimal digits. > + * > + * Valid if GSM subscription is available. > + * > + * Note: The value might be dummy like "000..." from modem How about "Device IMEI, [presented|formed] in 2-decimal digits"?
Attachment #8685771 - Flags: feedback?(echen)
Comment on attachment 8685771 [details] [diff] [review] Part 1: IDL Interface Changes. Review of attachment 8685771 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/mobileconnection/interfaces/nsIMobileDeviceIdentities.idl @@ +21,5 @@ > + * Device IMEISV, which should be 2-decimal digits. > + * > + * Valid if GSM subscription is available. > + * > + * Note: The value might be dummy like "000..." from modem Sorry, I misunderstood the line you suggest to revise. it shall line#25 "Note: The value might be dummy like "000..." from modem" instead.
Attachment #8685771 - Flags: feedback?(echen)
Comment on attachment 8685772 [details] [diff] [review] (v1) Part 2: Implementation Changes. Review of attachment 8685772 [details] [diff] [review]: ----------------------------------------------------------------- Thank you. ::: dom/mobileconnection/gonk/MobileConnectionService.js @@ +1721,5 @@ > > + notifyDeviceIdentitiesChanged: function(aClientId, aImei, aImeisv, > + aEsn, aMeid) { > + this.getItemByServiceId(aClientId).notifyDeviceIdentitiesChanged( > + new MobileDeviceIdentities(aImei, aImeisv, aEsn, aMeid)); I'd prefer that we create MobileDeviceIdentities in MobileConnectionProvide. ::: dom/system/gonk/ril_worker.js @@ +4772,5 @@ > + meid: result[3] || null, > + }; > + > + this.sendChromeMessage({ > + rilMessageType: "deviceidentities", s/deviceidentities/deviceidentitieschange/
Attachment #8685772 - Flags: review?(echen) → review+
feature-b2g: --- → 2.2r+
Flags: needinfo?(whuang)
Hi Edgar, May I have your review again for this change? Thanks!
Attachment #8685771 - Attachment is obsolete: true
Attachment #8686527 - Flags: review?(echen)
Attachment #8685772 - Attachment is obsolete: true
Attachment #8686533 - Flags: review+
Hi Ben, May I have your review for this change? Thanks!
Attachment #8686535 - Flags: review?(btian)
Attachment #8686527 - Flags: review?(echen) → review+
Comment on attachment 8686535 [details] [diff] [review] (v2) Part 3: Bluetooth Changes. r=btian Review of attachment 8686535 [details] [diff] [review]: ----------------------------------------------------------------- LGTM
Attachment #8686535 - Flags: review?(btian) → review+
Comment on attachment 8686535 [details] [diff] [review] (v2) Part 3: Bluetooth Changes. r=btian ># HG changeset patch ># User Bevis Tseng <btseng@mozilla.com> ># Date 1447319040 -28800 ># å 11æ 12 17:04:00 2015 +0800 ># Node ID 85cba98b0b03f12dcad4946c653a57df825c8566 ># Parent 975961db253cde0ddd111bad81c2ae377d874c8b >Bug 1110619 - Part 3: Bluetooth Changes. r=btian > >diff --git a/dom/bluetooth/common/BluetoothRilListener.cpp b/dom/bluetooth/common/BluetoothRilListener.cpp >--- a/dom/bluetooth/common/BluetoothRilListener.cpp >+++ b/dom/bluetooth/common/BluetoothRilListener.cpp >@@ -160,16 +160,22 @@ MobileConnectionListener::NotifyLastKnow > } > > NS_IMETHODIMP > MobileConnectionListener::NotifyNetworkSelectionModeChanged() > { > return NS_OK; > } > >+NS_IMETHODIMP >+MobileConnectionListener::NotifyDeviceIdentitiesChanged() >+{ >+ return NS_OK; >+} >+ > bool > MobileConnectionListener::Listen(bool aStart) > { > nsCOMPtr<nsIMobileConnectionService> service = > do_GetService(NS_MOBILE_CONNECTION_SERVICE_CONTRACTID); > NS_ENSURE_TRUE(service, false); > > nsCOMPtr<nsIMobileConnection> connection;
Attachment #8686535 - Attachment description: (v2) Part 3: Bluetooth Changes. → (v2) Part 3: Bluetooth Changes. r=btian
Attachment #8686527 - Attachment description: (v2) Part 1: IDL Interface Changes. → (v2) Part 1: IDL Interface Changes. r=echen
Attachment #8687810 - Attachment description: Use RIL_REQUEST_DEVICE_IDENTITY to get IMEI, IMEISV.r=echen,btian,a=2.2r+ → (2.2r) Use RIL_REQUEST_DEVICE_IDENTITY to get IMEI, IMEISV.r=echen,btian,a=2.2r+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: