Enhancements

- Improved error messages
- Added shutdown functionality from mass stoage
- Fixed an issue where 9006 would incorrectly be used for rebooting from mass storage
- Added support for gathering security information from older flash apps
- Added a new indicator in the empty view when a phone in bootloader mode is detected
- Fixed an issue where interrupting the bootloader may fail
- Added more checks to some functions
- Started to work on a bootloader view
- Fixed an issue where x50 phones in label mode would not get detected once being disconnected
- Added logging for Qualcomm Emergency Charging mode
- General bug fixes
This commit is contained in:
Gus
2019-12-28 09:39:02 +01:00
parent fa896b7c39
commit 81145ed0e9
30 changed files with 921 additions and 159 deletions
+19 -6
View File
@@ -35,7 +35,7 @@ namespace WPinternals
internal IntPtr hDrive = (IntPtr)(-1);
private bool OpenWithWriteAccess;
private QualcommSerial Serial;
private string Serial;
internal MassStorage(string DevicePath) : base(DevicePath)
{
@@ -77,10 +77,16 @@ namespace WPinternals
{
try
{
Serial = new QualcommSerial(DevicePath);
Serial.EncodeCommands = false;
QualcommSerial SerialDevice = new QualcommSerial(DevicePath);
SerialDevice.Close();
SerialDevice.Dispose();
Serial = DevicePath;
}
catch (Exception ex)
{
LogFile.Log(ex.Message);
}
catch { }
}
internal bool DoesDeviceSupportReboot()
@@ -95,11 +101,18 @@ namespace WPinternals
try
{
QualcommSerial SerialDevice = new QualcommSerial(Serial);
SerialDevice.EncodeCommands = false;
// This will succeed on new models
Serial.SendData(new byte[] { 0x7, 0x0, 0x0, 0x0, 0x8, 0x0, 0x0, 0x0 });
SerialDevice.SendData(new byte[] { 0x7, 0x0, 0x0, 0x0, 0x8, 0x0, 0x0, 0x0 });
// This will succeed on old models
Serial.SendData(new byte[] { 0x7E, 0xA, 0x0, 0x0, 0xB6, 0xB5, 0x7E });
SerialDevice.SendData(new byte[] { 0x7E, 0xA, 0x0, 0x0, 0xB6, 0xB5, 0x7E });
SerialDevice.Close();
SerialDevice.Dispose();
}
catch { }
}