Bug 978785 - SV: Enable customization during first time to insert a SIM card. r=fabrice, r=gene

This commit is contained in:
Carmen Jimenez 2014-03-11 16:55:55 +01:00
parent d79c5efebd
commit e12f097e34
2 changed files with 13 additions and 3 deletions

View File

@ -77,10 +77,17 @@ let iccListener = {
let clientId = 0;
let iccInfo = iccProvider.getIccInfo(clientId);
if (iccInfo && iccInfo.mcc && iccInfo.mnc) {
debug("******* iccListener cardIccInfo MCC-MNC: " + iccInfo.mcc +
"-" + iccInfo.mnc);
let mcc = iccInfo.mcc;
let mnc = iccInfo.mnc;
debug("******* iccListener cardIccInfo MCC-MNC: " + mcc + "-" + mnc);
iccProvider.unregisterIccMsg(clientId, this);
OperatorAppsRegistry._installOperatorApps(iccInfo.mcc, iccInfo.mnc);
OperatorAppsRegistry._installOperatorApps(mcc, mnc);
debug("Broadcast message first-run-with-sim");
let messenger = Cc["@mozilla.org/system-message-internal;1"]
.getService(Ci.nsISystemMessagesInternal);
messenger.broadcastMessage("first-run-with-sim", { mcc: mcc,
mnc: mnc });
}
}
};

View File

@ -114,6 +114,9 @@ this.SystemMessagePermissionsTable = {
"settings": ["read", "write"]
},
"wifip2p-pairing-request": { },
"first-run-with-sim": {
"settings": ["read", "write"]
}
};
this.SystemMessagePermissionsChecker = {