Bug 768428 - B2G RIL: REQUEST_GET_IMSI doesn't have response on Akami. r=philikon
authorYoshi Huang <yhuang@mozilla.com>
Tue, 26 Jun 2012 17:34:15 +0200
changeset 100469 a12ce6b09f13a6296503eb0f5d1c7d097f412fef
parent 100468 1a56f1f011c964815844ef8bdd9f313db20feebf
child 100470 91d579fd6a5ff754a3d65f4efd32f53570fa2271
child 100481 c53df6787f00b1b5816c05cb8cc4b82ca2fd5bcc
push idunknown
push userunknown
push dateunknown
reviewersphilikon
bugs768428
milestone16.0a1
Bug 768428 - B2G RIL: REQUEST_GET_IMSI doesn't have response on Akami. r=philikon
dom/system/gonk/ril_worker.js
--- a/dom/system/gonk/ril_worker.js
+++ b/dom/system/gonk/ril_worker.js
@@ -992,17 +992,24 @@ let RIL = {
    * Update the ICC information to RadioInterfaceLayer.
    */
   _handleICCInfoChange: function _handleICCInfoChange() {
     this.iccInfo.type = "iccinfochange";
     this.sendDOMMessage(this.iccInfo);
   },
 
   getIMSI: function getIMSI() {
-    Buf.simpleRequest(REQUEST_GET_IMSI);
+    if (RILQUIRKS_V5_LEGACY) {
+      Buf.simpleRequest(REQUEST_GET_IMSI);
+      return;
+    }
+    let token = Buf.newParcel(REQUEST_GET_IMSI);
+    Buf.writeUint32(1);
+    Buf.writeString(null);
+    Buf.sendParcel();
   },
 
   /**
    * Read the MSISDN from the ICC.
    */
   getMSISDN: function getMSISDN() {
     function callback() {
       let length = Buf.readUint32();