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 100475 df7bd51e9a55833f5bce8561fef87fcbc3cbc39e
parent 100474 01c8479cf333af1842a9f3e0d060fffcd7f275b5
child 100476 f3c2734016bda42fac2199de8aa19ba47cf08dd3
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();