Release Vulpes OS 2.7 Preview 25 for Desktop, Android and Pixel 3a
This commit is contained in:
parent
6a44daeaaa
commit
3a1fba4efe
1 changed files with 1301 additions and 196 deletions
|
|
@ -412,6 +412,9 @@ var MmiManager = {
|
|||
* upon successful completion or rejects upon failure.
|
||||
*/
|
||||
_getImeiForCard: function mm_getImeiForCard(cardIndex) {
|
||||
if (window.VulpesPlatform === 'tundra' && window.VulpesNativeTelephony) {
|
||||
return window.VulpesCompat.call('platform.imei', {});
|
||||
}
|
||||
return navigator.mozTelephony.dial('*#06#', cardIndex).then(
|
||||
function(mmiCall) {
|
||||
return mmiCall.result.then(function(result) {
|
||||
|
|
@ -456,7 +459,11 @@ var MmiManager = {
|
|||
self.init().then(function() {
|
||||
var promises = [];
|
||||
|
||||
for (var i = 0; i < navigator.mozMobileConnections.length; i++) {
|
||||
// Sargo exposes one modem to the dialer. The full connection manager
|
||||
// lives in System and Settings on this adapter.
|
||||
var count = window.VulpesPlatform === 'tundra' && window.VulpesNativeTelephony
|
||||
? 1 : navigator.mozMobileConnections.length;
|
||||
for (var i = 0; i < count; i++) {
|
||||
promises.push(self._getImeiForCard(i));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue