From 8d3a010bd45582376d8259a929dcfb08a86b5326 Mon Sep 17 00:00:00 2001 From: Gustave Monce Date: Sun, 22 Dec 2019 12:54:23 +0100 Subject: [PATCH] Fix MMOS support for x50 devices --- ViewModels/PhoneNotifierViewModel.cs | 3 ++- ViewModels/SwitchModeViewModel.cs | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ViewModels/PhoneNotifierViewModel.cs b/ViewModels/PhoneNotifierViewModel.cs index 997e720..bdb3a53 100644 --- a/ViewModels/PhoneNotifierViewModel.cs +++ b/ViewModels/PhoneNotifierViewModel.cs @@ -152,7 +152,8 @@ namespace WPinternals try { if ((e.DevicePath.IndexOf("VID_0421&PID_0660&MI_04", StringComparison.OrdinalIgnoreCase) >= 0) || - (e.DevicePath.IndexOf("VID_0421&PID_0713&MI_04", StringComparison.OrdinalIgnoreCase) >= 0)) // for Spec B + (e.DevicePath.IndexOf("VID_0421&PID_0713&MI_04", StringComparison.OrdinalIgnoreCase) >= 0) || // for Spec B + (e.DevicePath.IndexOf("VID_045E&PID_0A01&MI_04", StringComparison.OrdinalIgnoreCase) >= 0)) // for Spec B (650) { CurrentInterface = PhoneInterfaces.Lumia_Label; CurrentModel = new NokiaPhoneModel(e.DevicePath); diff --git a/ViewModels/SwitchModeViewModel.cs b/ViewModels/SwitchModeViewModel.cs index bea517c..3a068f8 100644 --- a/ViewModels/SwitchModeViewModel.cs +++ b/ViewModels/SwitchModeViewModel.cs @@ -516,6 +516,10 @@ namespace WPinternals { ModeSwitchProgressWrapper(ProgressText, null); string TempFolder = Environment.GetEnvironmentVariable("TEMP") + @"\WPInternals"; + if (Info.Type == "RM-1152") + { + Info.Type = "RM-1151"; + } string ENOSWPackage = LumiaDownloadModel.SearchENOSW(Info.Type, Info.Firmware); SetWorkingStatus("Downloading " + Info.Type + " Test Mode package...", MaxProgressValue: 100); DownloadEntry downloadEntry = new DownloadEntry(ENOSWPackage, TempFolder, null, null, null);