Release Vulpes OS 2.7 Preview 25 for Desktop, Android and Pixel 3a

This commit is contained in:
OverSu 2026-11-28 12:20:19 +01:00
commit 3a1fba4efe

View file

@ -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));
}