From 025a6dcc0487194c542eb6236dba3e519eb20117 Mon Sep 17 00:00:00 2001 From: Strong Recommend Date: Mon, 15 Jan 2024 14:20:18 +0300 Subject: [PATCH] FIX V29F --- HuaweiUnlock/DIAGNOS/Bootloader.cs | 3 +- HuaweiUnlock/DIAGNOS/CRC.cs | 6 +- HuaweiUnlock/DIAGNOS/LibCrypt.cs | 3 - HuaweiUnlock/DIAGNOS/OemInfoTool.cs | 8 +- HuaweiUnlock/FlashTool/FlashToolQClegacy.cs | 8 +- HuaweiUnlock/FlashTool/MTKFlash.cs | 4 +- HuaweiUnlock/LangProc.cs | 42 +- HuaweiUnlock/Program.cs | 1 - HuaweiUnlock/TOOLS/Fastboot.cs | 9 +- HuaweiUnlock/TOOLS/HISI.cs | 12 +- HuaweiUnlock/TOOLS/UpdateApp.cs | 7 +- HuaweiUnlock/TOOLS/UpdateUtil/EventStream.cs | 2 +- HuaweiUnlock/TOOLS/UpdateUtil/FileHeader.cs | 2 +- .../TOOLS/UpdateUtil/PartialStream.cs | 10 +- HuaweiUnlock/TOOLS/UpdateUtil/UpdateEntry.cs | 6 +- HuaweiUnlock/TOOLS/UpdateUtil/Utilities.cs | 6 +- HuaweiUnlock/UI/Animation/Animation.cs | 10 +- HuaweiUnlock/UI/Animation/Animator.cs | 8 +- HuaweiUnlock/UI/Controls/NButton.cs | 16 +- HuaweiUnlock/UI/Controls/NProgressBar.cs | 13 +- HuaweiUnlock/UI/Drawer.cs | 6 +- HuaweiUnlock/UI/Language.cs | 1 - HuaweiUnlock/Window.Designer.cs | 1817 +++++++++-------- HuaweiUnlock/Window.cs | 43 +- HuaweiUnlock/Window.resx | 3 + 25 files changed, 1019 insertions(+), 1027 deletions(-) diff --git a/HuaweiUnlock/DIAGNOS/Bootloader.cs b/HuaweiUnlock/DIAGNOS/Bootloader.cs index 93b0bf6..9f03c7d 100644 --- a/HuaweiUnlock/DIAGNOS/Bootloader.cs +++ b/HuaweiUnlock/DIAGNOS/Bootloader.cs @@ -28,7 +28,8 @@ private bool Validate() return true; } - using (var stream = File.OpenRead(Path)) { + using (var stream = File.OpenRead(Path)) + { using (var sha1 = SHA1.Create()) { stream.Position = 0; diff --git a/HuaweiUnlock/DIAGNOS/CRC.cs b/HuaweiUnlock/DIAGNOS/CRC.cs index 512ca6b..3da5f06 100644 --- a/HuaweiUnlock/DIAGNOS/CRC.cs +++ b/HuaweiUnlock/DIAGNOS/CRC.cs @@ -1,12 +1,10 @@ using Microsoft.VisualBasic; using System; using System.Collections.Generic; -using System.Text; +using System.Globalization; using System.Linq; using System.Security.Cryptography; -using System.IO; -using System.Security.Cryptography.X509Certificates; -using System.Globalization; +using System.Text; namespace HuaweiUnlocker.DIAGNOS { diff --git a/HuaweiUnlock/DIAGNOS/LibCrypt.cs b/HuaweiUnlock/DIAGNOS/LibCrypt.cs index c35d70d..a396ba9 100644 --- a/HuaweiUnlock/DIAGNOS/LibCrypt.cs +++ b/HuaweiUnlock/DIAGNOS/LibCrypt.cs @@ -1,14 +1,11 @@ using Base62; -using Microsoft.Win32.SafeHandles; using System; using System.Collections.Generic; using System.Globalization; using System.IO; -using System.Runtime.InteropServices; using System.Security.Cryptography; using System.Security.Cryptography.X509Certificates; using System.Text; -using System.Windows.Input; using static HuaweiUnlocker.LangProc; namespace HuaweiUnlocker.DIAGNOS { diff --git a/HuaweiUnlock/DIAGNOS/OemInfoTool.cs b/HuaweiUnlock/DIAGNOS/OemInfoTool.cs index 987c0a5..22ecb4f 100644 --- a/HuaweiUnlock/DIAGNOS/OemInfoTool.cs +++ b/HuaweiUnlock/DIAGNOS/OemInfoTool.cs @@ -1,9 +1,6 @@ -using Microsoft.VisualBasic.Logging; -using System; -using System.Collections.Generic; +using System.Collections.Generic; using System.IO; using System.Linq; -using System.Windows.Forms; using static HuaweiUnlocker.LangProc; namespace HuaweiUnlocker.DIAGNOS { @@ -28,7 +25,8 @@ public static void Decompile(string path, string Header = "4F454D5F494E464F06") for (var i = 0; i < Offsets.Count; i++) data.Add("OEM_INFO_" + Offsets[i] + ".header"); File.WriteAllBytes("UnlockFiles/OemInfoData/OEM_INFO_" + 0 + ".header", FileAll.Take(Offsets[0]).ToArray()); - for (int i = 0; i < Offsets.Count; i++) { + for (int i = 0; i < Offsets.Count; i++) + { int curof = Offsets[i]; LOG(0, "Writting: OEM_INFO_" + curof + ".header"); if (Offsets.Count > i + 1) diff --git a/HuaweiUnlock/FlashTool/FlashToolQClegacy.cs b/HuaweiUnlock/FlashTool/FlashToolQClegacy.cs index 1b348b4..41e40aa 100644 --- a/HuaweiUnlock/FlashTool/FlashToolQClegacy.cs +++ b/HuaweiUnlock/FlashTool/FlashToolQClegacy.cs @@ -1,13 +1,9 @@ using System; -using static HuaweiUnlocker.LangProc; using System.Collections.Generic; -using HuaweiUnlocker.DIAGNOS; using System.IO; -using System.Collections.Concurrent; -using System.Threading.Tasks; -using System.Security.Cryptography.Xml; -using System.Threading; using System.Linq; +using System.Threading.Tasks; +using static HuaweiUnlocker.LangProc; namespace HuaweiUnlocker.FlashTool { diff --git a/HuaweiUnlock/FlashTool/MTKFlash.cs b/HuaweiUnlock/FlashTool/MTKFlash.cs index f571dee..c451f88 100644 --- a/HuaweiUnlock/FlashTool/MTKFlash.cs +++ b/HuaweiUnlock/FlashTool/MTKFlash.cs @@ -1,6 +1,4 @@ -using HuaweiUnlocker.DIAGNOS; -using System; -using static HuaweiUnlocker.LangProc; +using static HuaweiUnlocker.LangProc; namespace HuaweiUnlocker.FlashTool { public class MTKFlash diff --git a/HuaweiUnlock/LangProc.cs b/HuaweiUnlock/LangProc.cs index 1e4d4ef..61a4f2d 100644 --- a/HuaweiUnlock/LangProc.cs +++ b/HuaweiUnlock/LangProc.cs @@ -1,22 +1,18 @@ -using System; +using HuaweiUnlocker.DIAGNOS; +using HuaweiUnlocker.FlashTool; +using HuaweiUnlocker.UI; +using System; using System.Collections.Generic; using System.Diagnostics; -using System.Windows.Forms; using System.IO; -using System.Management; -using HuaweiUnlocker.UI; -using HuaweiUnlocker.FlashTool; using System.Linq; -using System.Threading; -using HuaweiUnlocker.DIAGNOS; -using System.Globalization; +using System.Management; +using System.Reflection; using System.Text; -using System.Security.Cryptography; using System.Text.RegularExpressions; +using System.Threading; using System.Threading.Tasks; -using Base62; -using System.Runtime.CompilerServices; -using System.Reflection; +using System.Windows.Forms; namespace HuaweiUnlocker { @@ -317,15 +313,15 @@ public static Dictionary GET_GPT_FROM_FILE(string GPT_File, i if (!string.IsNullOrEmpty(bsa) && !string.IsNullOrEmpty(bea)) { uint blocks_count = Convert.ToUInt32(bea, 16) - Convert.ToUInt32(bsa, 16) + 1; - if(!GPT.ContainsKey(bn.ToString()) & !bn.ToString().Contains("userdata") & !string.IsNullOrEmpty(bn.ToString())) - GPT.Add(bn.ToString().Replace(".img", ""), new Partition() - { - BlockStart = Convert.ToInt32(bsa, 16).ToString(), - BlockEnd = Convert.ToInt32(bea, 16).ToString(), - BlockBytes = (blocks_count * block_size).ToString(), - BlockNumSectors = blocks_count.ToString(), - BlockLength = (blocks_count / 2).ToString(), - }); + if (!GPT.ContainsKey(bn.ToString()) & !bn.ToString().Contains("userdata") & !string.IsNullOrEmpty(bn.ToString())) + GPT.Add(bn.ToString().Replace(".img", ""), new Partition() + { + BlockStart = Convert.ToInt32(bsa, 16).ToString(), + BlockEnd = Convert.ToInt32(bea, 16).ToString(), + BlockBytes = (blocks_count * block_size).ToString(), + BlockNumSectors = blocks_count.ToString(), + BlockLength = (blocks_count / 2).ToString(), + }); } } return GPT; @@ -399,7 +395,7 @@ public static bool WriteGPT_TO_XML(string papthto, Dictionary writer.Dispose(); return partbI.Count > 0; } - public static void Progress(int v, int max=100) + public static void Progress(int v, int max = 100) { action = () => { PRG.Value = v; PRG.ValueMaximum = max; }; if (PRG.InvokeRequired) @@ -410,7 +406,7 @@ public static void Progress(int v, int max=100) } public static string GuessMbn() { - if(!string.IsNullOrEmpty(wndw.LoaderBox.Text)) + if (!string.IsNullOrEmpty(wndw.LoaderBox.Text)) return PickLoader(wndw.LoaderBox.Text); if (wndw.AutoLdr.Checked & DeviceInfo.HWID.Contains("NaN")) return LOG(0, "NoDEVICEAnsw").ToString(); diff --git a/HuaweiUnlock/Program.cs b/HuaweiUnlock/Program.cs index b4bc73e..8fcf086 100644 --- a/HuaweiUnlock/Program.cs +++ b/HuaweiUnlock/Program.cs @@ -1,7 +1,6 @@ using System; using System.Diagnostics; using System.Windows.Forms; -using static HuaweiUnlocker.LangProc; namespace HuaweiUnlocker { diff --git a/HuaweiUnlock/TOOLS/Fastboot.cs b/HuaweiUnlock/TOOLS/Fastboot.cs index de37f79..83a6b39 100644 --- a/HuaweiUnlock/TOOLS/Fastboot.cs +++ b/HuaweiUnlock/TOOLS/Fastboot.cs @@ -1,14 +1,11 @@ -using System; -using System.Collections.Generic; +using LibUsbDotNet; +using LibUsbDotNet.Main; +using System; using System.ComponentModel; using System.IO; using System.Linq; using System.Text; using System.Threading; -using System.Windows.Forms; -using LibUsbDotNet; -using LibUsbDotNet.Main; -using static System.Windows.Forms.VisualStyles.VisualStyleElement; using static HuaweiUnlocker.LangProc; namespace HuaweiUnlocker.TOOLS { diff --git a/HuaweiUnlock/TOOLS/HISI.cs b/HuaweiUnlock/TOOLS/HISI.cs index cf900be..3e1ef96 100644 --- a/HuaweiUnlock/TOOLS/HISI.cs +++ b/HuaweiUnlock/TOOLS/HISI.cs @@ -1,12 +1,9 @@ using HuaweiUnlocker.DIAGNOS; -using Microsoft.VisualBasic.Logging; using System; using System.Collections.Generic; -using System.Runtime.Remoting.Messaging; using System.Security.Cryptography; using System.Text; using System.Text.RegularExpressions; -using System.Windows.Forms; using static HuaweiUnlocker.LangProc; namespace HuaweiUnlocker.TOOLS { @@ -53,7 +50,8 @@ public static void FlashBootloader(Bootloader bootloader, string port) LOG(0, "EwPS", image.Role); - flasher.Write(image.Path, (int)image.Address, x => { + flasher.Write(image.Path, (int)image.Address, x => + { Progress(dsize, asize); }); @@ -145,7 +143,7 @@ public static void SetNVMEProp(string prop, byte[] value) var res = fb.Command(cmd.ToArray()); - LOG(0, "", res.Payload) ; + LOG(0, "", res.Payload); if (!res.Payload.Contains("set nv ok")) { @@ -155,7 +153,7 @@ public static void SetNVMEProp(string prop, byte[] value) public static byte[] GetSHA256(string str) { - return SHA256.Create().ComputeHash(Encoding.ASCII.GetBytes(str)); + return SHA256.Create().ComputeHash(Encoding.ASCII.GetBytes(str)); } public static void SetHWDogState(byte state) @@ -312,7 +310,7 @@ public static void StartUnlockPRCS(bool frp, bool rb, string key, Bootloader d, LOG(1, "Unlocker", "(KIRIN FRP)"); UnlockFRP(); } - if(rb) Reboot(); + if (rb) Reboot(); fb.Disconnect(); } else LOG(1, "NoDEVICEAnsw", " [HISI] Maybe hisi Loaders Wont boot"); diff --git a/HuaweiUnlock/TOOLS/UpdateApp.cs b/HuaweiUnlock/TOOLS/UpdateApp.cs index 9605630..2cb35db 100644 --- a/HuaweiUnlock/TOOLS/UpdateApp.cs +++ b/HuaweiUnlock/TOOLS/UpdateApp.cs @@ -1,12 +1,10 @@ using HuaweiUnlocker.Core; using HuaweiUnlocker.FlashTool; -using HuaweiUnlocker.UI; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; -using System.Windows.Forms; using static HuaweiUnlocker.LangProc; namespace HuaweiUnlocker.TOOLS @@ -44,7 +42,7 @@ public static async void Unpack(string path, int state) } //Set 0 unpacked = true; - if(state != 3) + if (state != 3) CreateRWProgram0xml(); else ReadFilesInDirAsPartitions(); @@ -108,7 +106,8 @@ public static void ReadFilesInDirAsPartitions() DirectoryInfo hdDirectoryInWhichToSearch = new DirectoryInfo("UnlockFiles/UpdateAPP/"); FileInfo[] filesInDir = hdDirectoryInWhichToSearch.GetFiles(); foreach (var a in filesInDir) - gpttable.Add(a.FullName.Split('\\').Last(),new Partition() { + gpttable.Add(a.FullName.Split('\\').Last(), new Partition() + { BlockLength = new FileInfo(a.FullName).Length.ToString(), }); DeviceInfo.Partitions = gpttable; diff --git a/HuaweiUnlock/TOOLS/UpdateUtil/EventStream.cs b/HuaweiUnlock/TOOLS/UpdateUtil/EventStream.cs index a83c579..a36fca4 100644 --- a/HuaweiUnlock/TOOLS/UpdateUtil/EventStream.cs +++ b/HuaweiUnlock/TOOLS/UpdateUtil/EventStream.cs @@ -42,7 +42,7 @@ public class ReadEventArgs : EventArgs /// /// Read buffer /// - public byte []Buffer; + public byte[] Buffer; } /// diff --git a/HuaweiUnlock/TOOLS/UpdateUtil/FileHeader.cs b/HuaweiUnlock/TOOLS/UpdateUtil/FileHeader.cs index 5d104a2..742e33b 100644 --- a/HuaweiUnlock/TOOLS/UpdateUtil/FileHeader.cs +++ b/HuaweiUnlock/TOOLS/UpdateUtil/FileHeader.cs @@ -24,7 +24,7 @@ internal struct FileHeader public UInt16 HeaderChecksum; public UInt16 BlockSize; public UInt16 Blank2; - public static readonly int Size = Marshal.SizeOf(typeof (FileHeader)); + public static readonly int Size = Marshal.SizeOf(typeof(FileHeader)); public static FileHeader Create() { var result = new FileHeader diff --git a/HuaweiUnlock/TOOLS/UpdateUtil/PartialStream.cs b/HuaweiUnlock/TOOLS/UpdateUtil/PartialStream.cs index 00430c1..3ba6c7c 100644 --- a/HuaweiUnlock/TOOLS/UpdateUtil/PartialStream.cs +++ b/HuaweiUnlock/TOOLS/UpdateUtil/PartialStream.cs @@ -25,8 +25,8 @@ public class PartialStream : Stream { private readonly Stream _baseStream; private readonly long _basePosition; - private readonly long _size; - + private readonly long _size; + /// /// Wrapper around to work with a part of a stream /// @@ -36,8 +36,8 @@ public class PartialStream : Stream public PartialStream(Stream baseStream, long size) { _baseStream = baseStream; - _basePosition = baseStream.Position; - + _basePosition = baseStream.Position; + if (_basePosition + _size > _baseStream.Length) throw new ArgumentOutOfRangeException("size", _basePosition + _size, "Invalid size"); _size = size; @@ -109,7 +109,7 @@ public override int Read(byte[] buffer, int offset, int count) if (currentPosition + count > _size) { var rc = _size - currentPosition; - count = (rc > int.MaxValue) ? int.MaxValue : (int) rc; + count = (rc > int.MaxValue) ? int.MaxValue : (int)rc; } return _baseStream.Read(buffer, offset, count); diff --git a/HuaweiUnlock/TOOLS/UpdateUtil/UpdateEntry.cs b/HuaweiUnlock/TOOLS/UpdateUtil/UpdateEntry.cs index dbc1baf..23c6e5b 100644 --- a/HuaweiUnlock/TOOLS/UpdateUtil/UpdateEntry.cs +++ b/HuaweiUnlock/TOOLS/UpdateUtil/UpdateEntry.cs @@ -1,7 +1,7 @@ -using HuaweiUnlocker.Streams; -using System.IO; +using HuaweiUnlocker.DIAGNOS; +using HuaweiUnlocker.Streams; using System; -using HuaweiUnlocker.DIAGNOS; +using System.IO; namespace HuaweiUnlocker.Core { diff --git a/HuaweiUnlock/TOOLS/UpdateUtil/Utilities.cs b/HuaweiUnlock/TOOLS/UpdateUtil/Utilities.cs index 85fbbe4..ed8e370 100644 --- a/HuaweiUnlock/TOOLS/UpdateUtil/Utilities.cs +++ b/HuaweiUnlock/TOOLS/UpdateUtil/Utilities.cs @@ -7,8 +7,8 @@ namespace HuaweiUnlocker.Core { internal static class Utilities { - public const Int32 UintSize = sizeof (UInt32); - public const Int32 UshortSize = sizeof (ushort); + public const Int32 UintSize = sizeof(UInt32); + public const Int32 UshortSize = sizeof(ushort); public static bool ByteToType(BinaryReader reader, out T result) { @@ -64,7 +64,7 @@ public static void SetCharArray(string source, byte[] destination) public static string GetString(byte[] source) { var index = Array.FindIndex(source, b => b == 0); - if (index == -1) + if (index == -1) index = source.Length; return Encoding.ASCII.GetString(source, 0, index); } diff --git a/HuaweiUnlock/UI/Animation/Animation.cs b/HuaweiUnlock/UI/Animation/Animation.cs index ecc2f78..962fdee 100644 --- a/HuaweiUnlock/UI/Animation/Animation.cs +++ b/HuaweiUnlock/UI/Animation/Animation.cs @@ -42,9 +42,9 @@ private float Step() float basicStep = Math.Abs(Volume) / StepDivider; // Math.Abs - превращает числа 0< в >0 float resultStep = 0; - if(Reverse == false) + if (Reverse == false) { - if(Value <= p15 || Value >= p85) + if (Value <= p15 || Value >= p85) { resultStep = basicStep / 3.5f; } @@ -52,7 +52,7 @@ private float Step() { resultStep = basicStep / 2f; } - else if(Value > p30 && Value < p70) + else if (Value > p30 && Value < p70) { resultStep = basicStep; } @@ -94,11 +94,11 @@ public void UpdateFrame() if (Reverse == false) { - if(Value <= targetValue) + if (Value <= targetValue) { Value += Step(); - if(Value >= targetValue) + if (Value >= targetValue) { Value = targetValue; Status = AnimationStatus.Completed; diff --git a/HuaweiUnlock/UI/Animation/Animator.cs b/HuaweiUnlock/UI/Animation/Animator.cs index 62e6800..125b3b3 100644 --- a/HuaweiUnlock/UI/Animation/Animator.cs +++ b/HuaweiUnlock/UI/Animation/Animator.cs @@ -19,7 +19,7 @@ public static int Count() private static double Interval; public static bool IsWork = false; - + public static void Start() { if (IsWork) return; @@ -53,7 +53,7 @@ private static void AnimationInvoker() public static void Request(Animation Anim, bool ReplaceIfExists = true) { - if(AnimatorThread == null || IsWork == false) + if (AnimatorThread == null || IsWork == false) { Start(); } @@ -63,9 +63,9 @@ public static void Request(Animation Anim, bool ReplaceIfExists = true) Animation dupAnim = GetDuplicate(Anim); - if(dupAnim != null) + if (dupAnim != null) { - if(ReplaceIfExists == true) + if (ReplaceIfExists == true) { dupAnim.Status = Animation.AnimationStatus.Completed; } diff --git a/HuaweiUnlock/UI/Controls/NButton.cs b/HuaweiUnlock/UI/Controls/NButton.cs index 6f366e3..5d07579 100644 --- a/HuaweiUnlock/UI/Controls/NButton.cs +++ b/HuaweiUnlock/UI/Controls/NButton.cs @@ -14,7 +14,7 @@ public class NButton : Button [Description("Цвет обводки (границы) кнопки")] public Color BorderColor { get; set; } = Color.Tomato; - + [Description("Указывает, включено ли использование отдельного цвета обводки (границы) кнопки")] public bool BorderColorEnabled { get; set; } = false; @@ -134,7 +134,7 @@ public NButton() SF.Alignment = StringAlignment.Center; SF.LineAlignment = StringAlignment.Center; } - + protected override void OnPaint(PaintEventArgs e) { base.OnPaint(e); @@ -146,7 +146,7 @@ protected override void OnPaint(PaintEventArgs e) graph.SmoothingMode = SmoothingMode.AntiAlias; graph.Clear(Parent.BackColor); - + Rectangle rect = new Rectangle(0, 0, Width - 1, Height - 1); Rectangle rectCurtain = new Rectangle(0, 0, (int)CurtainButtonAnim.Value, Height - 1); //Rectangle rectRipple = new Rectangle( @@ -200,7 +200,7 @@ protected override void OnPaint(PaintEventArgs e) graph.DrawRectangle(new Pen(Color.FromArgb(60, Color.White)), rectCurtain); graph.FillRectangle(new SolidBrush(Color.FromArgb(60, Color.White)), rectCurtain); - + if (UseRippleEffect == false) { // Стандартное рисование праямоугольника при клике @@ -273,7 +273,7 @@ protected override void OnPaint(PaintEventArgs e) ////// graph.FillEllipse(new SolidBrush(Color.FromArgb(30, Color.Black)), rectRipple); ////// } //////} - + // Рисуем текст if (string.IsNullOrEmpty(TextHover)) @@ -314,7 +314,7 @@ private void ButtonMultiRippleAction() { Animation MultiRippleButtonAnim = new Animation("ButtonMultiRipple_" + Handle + DateTime.Now.Millisecond, Invalidate, 0, Width * 3); MultiRippleButtonAnim.StepDivider = 20; - + Animator.Request(MultiRippleButtonAnim); RippleButtonAnimDic.Add(MultiRippleButtonAnim, new Rectangle()); @@ -369,7 +369,7 @@ protected override void OnMouseLeave(EventArgs e) ButtonCurtainAction(); TextSlideAction(); - + } protected override void OnMouseDown(MouseEventArgs e) @@ -383,7 +383,7 @@ protected override void OnMouseDown(MouseEventArgs e) ClickLocation = e.Location; //ButtonRippleAction(); ButtonMultiRippleAction(); - + if (UseDownPressEffectOnClick) Location = new Point(Location.X, Location.Y + 2); Focus(); diff --git a/HuaweiUnlock/UI/Controls/NProgressBar.cs b/HuaweiUnlock/UI/Controls/NProgressBar.cs index 265a61a..bd9c460 100644 --- a/HuaweiUnlock/UI/Controls/NProgressBar.cs +++ b/HuaweiUnlock/UI/Controls/NProgressBar.cs @@ -1,9 +1,6 @@ -using System; -using System.ComponentModel; -using System.Drawing; +using System.Drawing; using System.Drawing.Drawing2D; using System.Windows.Forms; -using HuaweiUnlocker; namespace HuaweiUnlocker.UI { @@ -58,7 +55,7 @@ public int ValueMinimum { _valueMinimum = value; - if(_valueMinimum > Value) + if (_valueMinimum > Value) { Value = _valueMinimum; Invalidate(); @@ -140,7 +137,7 @@ private int CalculateProgressRectSize(Rectangle rect) } #region -- Рисование объектов -- - + private void DrawBase(Graphics graph, GraphicsPath gpath) { graph.FillPath(new SolidBrush(BackColor), gpath); @@ -180,9 +177,9 @@ private void ProgressAction(int PIXELS) public bool PerformStep() { - if(Value < ValueMaximum) + if (Value < ValueMaximum) { - if(Value + Step >= ValueMaximum) + if (Value + Step >= ValueMaximum) { Value = ValueMaximum; return false; diff --git a/HuaweiUnlock/UI/Drawer.cs b/HuaweiUnlock/UI/Drawer.cs index 2172c64..01c2ac5 100644 --- a/HuaweiUnlock/UI/Drawer.cs +++ b/HuaweiUnlock/UI/Drawer.cs @@ -18,7 +18,7 @@ public static GraphicsPath RoundedRectangle(Rectangle rect, float RoundSize) return gp; } - + public static void DrawBlurredLine(Graphics graph, Color lineColor, Point p1, Point p2, int maxAlpha, int penWidth) { float stepAlpha = (float)maxAlpha / penWidth; @@ -30,7 +30,7 @@ public static void DrawBlurredLine(Graphics graph, Color lineColor, Point p1, Po Pen BlurredPen = new Pen(BlurredColor, pWidth); BlurredPen.StartCap = LineCap.Round; BlurredPen.EndCap = LineCap.Round; - + graph.DrawLine(BlurredPen, p1, p2); actualAlpha += stepAlpha; @@ -48,7 +48,7 @@ public static void DrawBlurredRectangle(Graphics graph, Color lineColor, Rectang Pen BlurredPen = new Pen(BlurredColor, pWidth); BlurredPen.StartCap = LineCap.Round; BlurredPen.EndCap = LineCap.Round; - + graph.DrawRectangle(BlurredPen, rect); actualAlpha += stepAlpha; diff --git a/HuaweiUnlock/UI/Language.cs b/HuaweiUnlock/UI/Language.cs index a173a53..67e9bd3 100644 --- a/HuaweiUnlock/UI/Language.cs +++ b/HuaweiUnlock/UI/Language.cs @@ -1,5 +1,4 @@ using System.Collections.Generic; -using System.Diagnostics; using System.IO; namespace HuaweiUnlocker.UI diff --git a/HuaweiUnlock/Window.Designer.cs b/HuaweiUnlock/Window.Designer.cs index 57d1937..66f8fc7 100644 --- a/HuaweiUnlock/Window.Designer.cs +++ b/HuaweiUnlock/Window.Designer.cs @@ -27,13 +27,9 @@ private void InitializeComponent() System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Window)); this.pather = new System.Windows.Forms.TextBox(); this.DETECTED = new System.Windows.Forms.Label(); - this.LoaderBox = new System.Windows.Forms.ComboBox(); this.AutoXml = new System.Windows.Forms.CheckBox(); this.panel1 = new System.Windows.Forms.Panel(); - this.SelPth = new HuaweiUnlocker.UI.NButton(); this.PatXm = new System.Windows.Forms.TextBox(); - this.Selecty2 = new HuaweiUnlocker.UI.NButton(); - this.Selecty3 = new HuaweiUnlocker.UI.NButton(); this.RAW = new System.Windows.Forms.CheckBox(); this.PTOFIRM = new System.Windows.Forms.Label(); this.Xm = new System.Windows.Forms.TextBox(); @@ -46,29 +42,16 @@ private void InitializeComponent() this.ClrFoldersBTN = new System.Windows.Forms.Button(); this.groupBox6 = new System.Windows.Forms.GroupBox(); this.DBB = new System.Windows.Forms.CheckBox(); - this.SelLanguage = new HuaweiUnlocker.UI.NButton(); this.LBOX = new System.Windows.Forms.ComboBox(); this.Gbox = new System.Windows.Forms.GroupBox(); this.PORTBOX = new System.Windows.Forms.ComboBox(); this.QCOM1 = new System.Windows.Forms.TabPage(); this.groupBox10 = new System.Windows.Forms.GroupBox(); - this.CrtGPTBtn = new HuaweiUnlocker.UI.NButton(); - this.CrtGPTBtn2 = new HuaweiUnlocker.UI.NButton(); - this.ACTBOX = new System.Windows.Forms.GroupBox(); - this.BoardU = new HuaweiUnlocker.UI.NButton(); - this.SLDEV = new System.Windows.Forms.GroupBox(); this.DEVICER = new System.Windows.Forms.ComboBox(); this.groupBox7 = new System.Windows.Forms.GroupBox(); - this.UnpBTN = new HuaweiUnlocker.UI.NButton(); - this.FlashUpdAppBTN = new HuaweiUnlocker.UI.NButton(); this.GLOADER = new System.Windows.Forms.GroupBox(); - this.SelectLOADER = new HuaweiUnlocker.UI.NButton(); this.label1 = new System.Windows.Forms.Label(); this.GPfir = new System.Windows.Forms.GroupBox(); - this.UnlockFrp = new HuaweiUnlocker.UI.NButton(); - this.EraseMeBtn = new HuaweiUnlocker.UI.NButton(); - this.Flash = new HuaweiUnlocker.UI.NButton(); - this.DUMPALL = new HuaweiUnlocker.UI.NButton(); this.QCOM2 = new System.Windows.Forms.TabPage(); this.ClearS = new System.Windows.Forms.Button(); this.WHAT = new System.Windows.Forms.GroupBox(); @@ -80,7 +63,6 @@ private void InitializeComponent() this.P = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.O = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.L = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.RdGPT = new HuaweiUnlocker.UI.NButton(); this.KIRIN1 = new System.Windows.Forms.TabPage(); this.groupBox1 = new System.Windows.Forms.GroupBox(); this.RbCheck = new System.Windows.Forms.CheckBox(); @@ -89,12 +71,6 @@ private void InitializeComponent() this.EnDisFBLOCK = new System.Windows.Forms.CheckBox(); this.FRPchk = new System.Windows.Forms.CheckBox(); this.groupBox3 = new System.Windows.Forms.GroupBox(); - this.FrpHISIUnlock = new HuaweiUnlocker.UI.NButton(); - this.UNLOCKHISI = new HuaweiUnlocker.UI.NButton(); - this.RebootFB = new HuaweiUnlocker.UI.NButton(); - this.FBLstHISI = new HuaweiUnlocker.UI.NButton(); - this.HISI_board_FB = new HuaweiUnlocker.UI.NButton(); - this.RdHISIinfo = new HuaweiUnlocker.UI.NButton(); this.groupBox2 = new System.Windows.Forms.GroupBox(); this.label11 = new System.Windows.Forms.Label(); this.BLKEYTXT = new System.Windows.Forms.TextBox(); @@ -118,7 +94,6 @@ private void InitializeComponent() this.FlashUKIRINBtn = new System.Windows.Forms.Button(); this.ConnectKIRINBTN = new System.Windows.Forms.Button(); this.PTOFIRM2 = new System.Windows.Forms.GroupBox(); - this.SelectKFirmw = new HuaweiUnlocker.UI.NButton(); this.KirinFirmPath = new System.Windows.Forms.TextBox(); this.KirinFiles = new System.Windows.Forms.DataGridView(); this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); @@ -127,14 +102,11 @@ private void InitializeComponent() this.HISIbootloaders2 = new System.Windows.Forms.ComboBox(); this.MTK = new System.Windows.Forms.TabPage(); this.groupBox14 = new System.Windows.Forms.GroupBox(); - this.nButton1 = new HuaweiUnlocker.UI.NButton(); this.textBox1 = new System.Windows.Forms.TextBox(); this.groupBox12 = new System.Windows.Forms.GroupBox(); - this.BypathAuthMTKBTN = new HuaweiUnlocker.UI.NButton(); this.groupBox11 = new System.Windows.Forms.GroupBox(); this.comboBox1 = new System.Windows.Forms.ComboBox(); this.groupBox4 = new System.Windows.Forms.GroupBox(); - this.BypAuBTN = new HuaweiUnlocker.UI.NButton(); this.OeRrd = new System.Windows.Forms.TabPage(); this.ContantOemText = new System.Windows.Forms.TextBox(); this.groupBox13 = new System.Windows.Forms.GroupBox(); @@ -160,6 +132,35 @@ private void InitializeComponent() this.button12 = new System.Windows.Forms.Button(); this.PortFindUpd = new System.Windows.Forms.Timer(this.components); this.IdentifyBTN = new System.Windows.Forms.Button(); + this.SLDEV = new System.Windows.Forms.Label(); + this.LoaderBox = new System.Windows.Forms.ComboBox(); + this.ACTBOX = new System.Windows.Forms.GroupBox(); + this.label4 = new System.Windows.Forms.Label(); + this.SelLanguage = new HuaweiUnlocker.UI.NButton(); + this.SelectLOADER = new HuaweiUnlocker.UI.NButton(); + this.SelPth = new HuaweiUnlocker.UI.NButton(); + this.Selecty2 = new HuaweiUnlocker.UI.NButton(); + this.Selecty3 = new HuaweiUnlocker.UI.NButton(); + this.BoardU = new HuaweiUnlocker.UI.NButton(); + this.UnlockFrp = new HuaweiUnlocker.UI.NButton(); + this.EraseMeBtn = new HuaweiUnlocker.UI.NButton(); + this.Flash = new HuaweiUnlocker.UI.NButton(); + this.DUMPALL = new HuaweiUnlocker.UI.NButton(); + this.CrtGPTBtn = new HuaweiUnlocker.UI.NButton(); + this.CrtGPTBtn2 = new HuaweiUnlocker.UI.NButton(); + this.UnpBTN = new HuaweiUnlocker.UI.NButton(); + this.FlashUpdAppBTN = new HuaweiUnlocker.UI.NButton(); + this.RdGPT = new HuaweiUnlocker.UI.NButton(); + this.FrpHISIUnlock = new HuaweiUnlocker.UI.NButton(); + this.UNLOCKHISI = new HuaweiUnlocker.UI.NButton(); + this.RebootFB = new HuaweiUnlocker.UI.NButton(); + this.FBLstHISI = new HuaweiUnlocker.UI.NButton(); + this.HISI_board_FB = new HuaweiUnlocker.UI.NButton(); + this.RdHISIinfo = new HuaweiUnlocker.UI.NButton(); + this.SelectKFirmw = new HuaweiUnlocker.UI.NButton(); + this.nButton1 = new HuaweiUnlocker.UI.NButton(); + this.BypathAuthMTKBTN = new HuaweiUnlocker.UI.NButton(); + this.BypAuBTN = new HuaweiUnlocker.UI.NButton(); this.PGG = new HuaweiUnlocker.UI.NProgressBar(); this.panel1.SuspendLayout(); this.Tab.SuspendLayout(); @@ -169,8 +170,6 @@ private void InitializeComponent() this.Gbox.SuspendLayout(); this.QCOM1.SuspendLayout(); this.groupBox10.SuspendLayout(); - this.ACTBOX.SuspendLayout(); - this.SLDEV.SuspendLayout(); this.groupBox7.SuspendLayout(); this.GLOADER.SuspendLayout(); this.GPfir.SuspendLayout(); @@ -196,6 +195,7 @@ private void InitializeComponent() this.OeRrd.SuspendLayout(); this.groupBox13.SuspendLayout(); this.BURG.SuspendLayout(); + this.ACTBOX.SuspendLayout(); this.SuspendLayout(); // // pather @@ -205,7 +205,7 @@ private void InitializeComponent() this.pather.Location = new System.Drawing.Point(6, 29); this.pather.Margin = new System.Windows.Forms.Padding(2); this.pather.Name = "pather"; - this.pather.Size = new System.Drawing.Size(270, 22); + this.pather.Size = new System.Drawing.Size(625, 25); this.pather.TabIndex = 22; // // DETECTED @@ -223,19 +223,6 @@ private void InitializeComponent() this.DETECTED.TabIndex = 14; this.DETECTED.Text = "Rawprograms0 / Patch0"; // - // LoaderBox - // - this.LoaderBox.BackColor = System.Drawing.SystemColors.InactiveCaption; - this.LoaderBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.LoaderBox.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.LoaderBox.FormattingEnabled = true; - this.LoaderBox.Location = new System.Drawing.Point(4, 37); - this.LoaderBox.Margin = new System.Windows.Forms.Padding(2); - this.LoaderBox.Name = "LoaderBox"; - this.LoaderBox.Size = new System.Drawing.Size(710, 24); - this.LoaderBox.Sorted = true; - this.LoaderBox.TabIndex = 20; - // // AutoXml // this.AutoXml.AutoSize = true; @@ -244,7 +231,7 @@ private void InitializeComponent() this.AutoXml.Font = new System.Drawing.Font("Arial", 10.2F, System.Drawing.FontStyle.Bold); this.AutoXml.ForeColor = System.Drawing.Color.AntiqueWhite; this.AutoXml.ImeMode = System.Windows.Forms.ImeMode.NoControl; - this.AutoXml.Location = new System.Drawing.Point(218, 61); + this.AutoXml.Location = new System.Drawing.Point(573, 58); this.AutoXml.Margin = new System.Windows.Forms.Padding(2); this.AutoXml.Name = "AutoXml"; this.AutoXml.RightToLeft = System.Windows.Forms.RightToLeft.Yes; @@ -268,116 +255,28 @@ private void InitializeComponent() this.panel1.Controls.Add(this.pather); this.panel1.Controls.Add(this.Xm); this.panel1.Controls.Add(this.DETECTED); - this.panel1.Location = new System.Drawing.Point(5, 108); + this.panel1.Location = new System.Drawing.Point(9, 20); this.panel1.Margin = new System.Windows.Forms.Padding(2); this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(358, 193); + this.panel1.Size = new System.Drawing.Size(705, 166); this.panel1.TabIndex = 25; // - // SelPth - // - this.SelPth.AutoSize = true; - this.SelPth.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(55)))), ((int)(((byte)(47)))), ((int)(((byte)(60))))); - this.SelPth.BackColorAdditional = System.Drawing.Color.Gray; - this.SelPth.BackColorGradientEnabled = false; - this.SelPth.BackColorGradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; - this.SelPth.BorderColor = System.Drawing.Color.Tomato; - this.SelPth.BorderColorEnabled = false; - this.SelPth.BorderColorOnHover = System.Drawing.Color.Tomato; - this.SelPth.BorderColorOnHoverEnabled = false; - this.SelPth.Cursor = System.Windows.Forms.Cursors.Hand; - this.SelPth.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204))); - this.SelPth.ForeColor = System.Drawing.Color.White; - this.SelPth.Location = new System.Drawing.Point(280, 112); - this.SelPth.Margin = new System.Windows.Forms.Padding(2); - this.SelPth.Name = "SelPth"; - this.SelPth.RippleColor = System.Drawing.Color.Black; - this.SelPth.RoundingEnable = false; - this.SelPth.Size = new System.Drawing.Size(65, 25); - this.SelPth.TabIndex = 31; - this.SelPth.Text = "Select"; - this.SelPth.TextHover = null; - this.SelPth.UseDownPressEffectOnClick = false; - this.SelPth.UseRippleEffect = true; - this.SelPth.UseVisualStyleBackColor = false; - this.SelPth.UseZoomEffectOnHover = false; - this.SelPth.Click += new System.EventHandler(this.nButton2_Click); - // // PatXm // this.PatXm.BackColor = System.Drawing.SystemColors.InactiveCaption; - this.PatXm.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.PatXm.Location = new System.Drawing.Point(6, 114); this.PatXm.Margin = new System.Windows.Forms.Padding(2); this.PatXm.Name = "PatXm"; - this.PatXm.Size = new System.Drawing.Size(270, 22); + this.PatXm.Size = new System.Drawing.Size(625, 25); this.PatXm.TabIndex = 30; // - // Selecty2 - // - this.Selecty2.AutoSize = true; - this.Selecty2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(55)))), ((int)(((byte)(47)))), ((int)(((byte)(60))))); - this.Selecty2.BackColorAdditional = System.Drawing.Color.Gray; - this.Selecty2.BackColorGradientEnabled = false; - this.Selecty2.BackColorGradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; - this.Selecty2.BorderColor = System.Drawing.Color.Tomato; - this.Selecty2.BorderColorEnabled = false; - this.Selecty2.BorderColorOnHover = System.Drawing.Color.Tomato; - this.Selecty2.BorderColorOnHoverEnabled = false; - this.Selecty2.Cursor = System.Windows.Forms.Cursors.Hand; - this.Selecty2.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204))); - this.Selecty2.ForeColor = System.Drawing.Color.White; - this.Selecty2.Location = new System.Drawing.Point(280, 83); - this.Selecty2.Margin = new System.Windows.Forms.Padding(2); - this.Selecty2.Name = "Selecty2"; - this.Selecty2.RippleColor = System.Drawing.Color.Black; - this.Selecty2.RoundingEnable = false; - this.Selecty2.Size = new System.Drawing.Size(65, 25); - this.Selecty2.TabIndex = 29; - this.Selecty2.Text = "Select"; - this.Selecty2.TextHover = null; - this.Selecty2.UseDownPressEffectOnClick = false; - this.Selecty2.UseRippleEffect = true; - this.Selecty2.UseVisualStyleBackColor = false; - this.Selecty2.UseZoomEffectOnHover = false; - this.Selecty2.Click += new System.EventHandler(this.XML_PATH); - // - // Selecty3 - // - this.Selecty3.AutoSize = true; - this.Selecty3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(55)))), ((int)(((byte)(47)))), ((int)(((byte)(60))))); - this.Selecty3.BackColorAdditional = System.Drawing.Color.Gray; - this.Selecty3.BackColorGradientEnabled = false; - this.Selecty3.BackColorGradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; - this.Selecty3.BorderColor = System.Drawing.Color.Tomato; - this.Selecty3.BorderColorEnabled = false; - this.Selecty3.BorderColorOnHover = System.Drawing.Color.Tomato; - this.Selecty3.BorderColorOnHoverEnabled = false; - this.Selecty3.Cursor = System.Windows.Forms.Cursors.Hand; - this.Selecty3.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204))); - this.Selecty3.ForeColor = System.Drawing.Color.White; - this.Selecty3.Location = new System.Drawing.Point(280, 26); - this.Selecty3.Margin = new System.Windows.Forms.Padding(2); - this.Selecty3.Name = "Selecty3"; - this.Selecty3.RippleColor = System.Drawing.Color.Black; - this.Selecty3.RoundingEnable = false; - this.Selecty3.Size = new System.Drawing.Size(65, 25); - this.Selecty3.TabIndex = 28; - this.Selecty3.Text = "Select"; - this.Selecty3.TextHover = null; - this.Selecty3.UseDownPressEffectOnClick = false; - this.Selecty3.UseRippleEffect = true; - this.Selecty3.UseVisualStyleBackColor = false; - this.Selecty3.UseZoomEffectOnHover = false; - this.Selecty3.Click += new System.EventHandler(this.PATHTOFIRMWARE_Clck); - // // RAW // this.RAW.AutoSize = true; this.RAW.Font = new System.Drawing.Font("Arial", 10.2F, System.Drawing.FontStyle.Bold); this.RAW.ForeColor = System.Drawing.Color.AntiqueWhite; this.RAW.ImeMode = System.Windows.Forms.ImeMode.NoControl; - this.RAW.Location = new System.Drawing.Point(175, 2); + this.RAW.Location = new System.Drawing.Point(530, 5); this.RAW.Margin = new System.Windows.Forms.Padding(2); this.RAW.Name = "RAW"; this.RAW.RightToLeft = System.Windows.Forms.RightToLeft.Yes; @@ -405,11 +304,10 @@ private void InitializeComponent() // Xm // this.Xm.BackColor = System.Drawing.SystemColors.InactiveCaption; - this.Xm.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.Xm.Location = new System.Drawing.Point(6, 85); this.Xm.Margin = new System.Windows.Forms.Padding(2); this.Xm.Name = "Xm"; - this.Xm.Size = new System.Drawing.Size(270, 22); + this.Xm.Size = new System.Drawing.Size(625, 25); this.Xm.TabIndex = 16; // // AutoLdr @@ -419,7 +317,7 @@ private void InitializeComponent() this.AutoLdr.CheckState = System.Windows.Forms.CheckState.Checked; this.AutoLdr.Font = new System.Drawing.Font("Arial", 10.2F, System.Drawing.FontStyle.Bold); this.AutoLdr.ImeMode = System.Windows.Forms.ImeMode.NoControl; - this.AutoLdr.Location = new System.Drawing.Point(655, 15); + this.AutoLdr.Location = new System.Drawing.Point(357, 13); this.AutoLdr.Margin = new System.Windows.Forms.Padding(2); this.AutoLdr.Name = "AutoLdr"; this.AutoLdr.RightToLeft = System.Windows.Forms.RightToLeft.Yes; @@ -542,37 +440,6 @@ private void InitializeComponent() this.DBB.UseVisualStyleBackColor = true; this.DBB.CheckedChanged += new System.EventHandler(this.DBB_CheckedChanged); // - // SelLanguage - // - this.SelLanguage.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(55)))), ((int)(((byte)(67)))), ((int)(((byte)(90))))); - this.SelLanguage.BackColorAdditional = System.Drawing.Color.Gray; - this.SelLanguage.BackColorGradientEnabled = false; - this.SelLanguage.BackColorGradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; - this.SelLanguage.BorderColor = System.Drawing.Color.Tomato; - this.SelLanguage.BorderColorEnabled = false; - this.SelLanguage.BorderColorOnHover = System.Drawing.Color.Tomato; - this.SelLanguage.BorderColorOnHoverEnabled = false; - this.SelLanguage.Cursor = System.Windows.Forms.Cursors.Hand; - this.SelLanguage.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(47)))), ((int)(((byte)(60))))); - this.SelLanguage.FlatAppearance.BorderSize = 5; - this.SelLanguage.Font = new System.Drawing.Font("Verdana", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204))); - this.SelLanguage.ForeColor = System.Drawing.Color.White; - this.SelLanguage.Location = new System.Drawing.Point(5, 52); - this.SelLanguage.Margin = new System.Windows.Forms.Padding(2); - this.SelLanguage.Name = "SelLanguage"; - this.SelLanguage.RippleColor = System.Drawing.Color.Black; - this.SelLanguage.RoundingEnable = false; - this.SelLanguage.Size = new System.Drawing.Size(269, 34); - this.SelLanguage.TabIndex = 32; - this.SelLanguage.Text = "Apply"; - this.SelLanguage.TextHover = null; - this.SelLanguage.UseCompatibleTextRendering = true; - this.SelLanguage.UseDownPressEffectOnClick = false; - this.SelLanguage.UseRippleEffect = true; - this.SelLanguage.UseVisualStyleBackColor = false; - this.SelLanguage.UseZoomEffectOnHover = false; - this.SelLanguage.Click += new System.EventHandler(this.SelLanguage_Click); - // // LBOX // this.LBOX.BackColor = System.Drawing.SystemColors.InactiveCaption; @@ -615,12 +482,9 @@ private void InitializeComponent() // this.QCOM1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(38)))), ((int)(((byte)(49))))); this.QCOM1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; - this.QCOM1.Controls.Add(this.groupBox10); - this.QCOM1.Controls.Add(this.ACTBOX); - this.QCOM1.Controls.Add(this.groupBox7); - this.QCOM1.Controls.Add(this.panel1); + this.QCOM1.Controls.Add(this.label4); this.QCOM1.Controls.Add(this.GLOADER); - this.QCOM1.Controls.Add(this.GPfir); + this.QCOM1.Controls.Add(this.ACTBOX); this.QCOM1.Location = new System.Drawing.Point(4, 25); this.QCOM1.Name = "QCOM1"; this.QCOM1.Padding = new System.Windows.Forms.Padding(3); @@ -635,252 +499,59 @@ private void InitializeComponent() this.groupBox10.Controls.Add(this.CrtGPTBtn2); this.groupBox10.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.groupBox10.ForeColor = System.Drawing.Color.AliceBlue; - this.groupBox10.Location = new System.Drawing.Point(368, 309); + this.groupBox10.Location = new System.Drawing.Point(9, 312); this.groupBox10.Name = "groupBox10"; - this.groupBox10.Size = new System.Drawing.Size(357, 112); + this.groupBox10.Size = new System.Drawing.Size(345, 115); this.groupBox10.TabIndex = 36; this.groupBox10.TabStop = false; this.groupBox10.Text = "GPT_####0.bin -> rawprogram0.xml"; // - // CrtGPTBtn + // DEVICER // - this.CrtGPTBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(35)))), ((int)(((byte)(47)))), ((int)(((byte)(70))))); - this.CrtGPTBtn.BackColorAdditional = System.Drawing.Color.Gray; - this.CrtGPTBtn.BackColorGradientEnabled = false; - this.CrtGPTBtn.BackColorGradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; - this.CrtGPTBtn.BorderColor = System.Drawing.Color.Tomato; - this.CrtGPTBtn.BorderColorEnabled = false; - this.CrtGPTBtn.BorderColorOnHover = System.Drawing.Color.Tomato; - this.CrtGPTBtn.BorderColorOnHoverEnabled = false; - this.CrtGPTBtn.Cursor = System.Windows.Forms.Cursors.Hand; - this.CrtGPTBtn.Font = new System.Drawing.Font("Verdana", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204))); - this.CrtGPTBtn.ForeColor = System.Drawing.Color.White; - this.CrtGPTBtn.Location = new System.Drawing.Point(6, 16); - this.CrtGPTBtn.Name = "CrtGPTBtn"; - this.CrtGPTBtn.RippleColor = System.Drawing.Color.Black; - this.CrtGPTBtn.RoundingEnable = false; - this.CrtGPTBtn.Size = new System.Drawing.Size(345, 40); - this.CrtGPTBtn.TabIndex = 35; - this.CrtGPTBtn.Text = "Read from device"; - this.CrtGPTBtn.TextHover = null; - this.CrtGPTBtn.UseDownPressEffectOnClick = false; - this.CrtGPTBtn.UseRippleEffect = true; - this.CrtGPTBtn.UseVisualStyleBackColor = false; - this.CrtGPTBtn.UseZoomEffectOnHover = false; - this.CrtGPTBtn.Click += new System.EventHandler(this.CrtGPTBtn_Click); + this.DEVICER.BackColor = System.Drawing.SystemColors.InactiveCaption; + this.DEVICER.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.DEVICER.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.DEVICER.Font = new System.Drawing.Font("Arial", 9.8F, System.Drawing.FontStyle.Bold); + this.DEVICER.Location = new System.Drawing.Point(6, 91); + this.DEVICER.Margin = new System.Windows.Forms.Padding(2); + this.DEVICER.Name = "DEVICER"; + this.DEVICER.Size = new System.Drawing.Size(409, 24); + this.DEVICER.Sorted = true; + this.DEVICER.TabIndex = 16; + this.DEVICER.SelectedIndexChanged += new System.EventHandler(this.DEVICER_SelectedIndexChanged); + this.DEVICER.Click += new System.EventHandler(this.DEVICER_SelectedIndexChanged); // - // CrtGPTBtn2 + // groupBox7 // - this.CrtGPTBtn2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(35)))), ((int)(((byte)(47)))), ((int)(((byte)(70))))); - this.CrtGPTBtn2.BackColorAdditional = System.Drawing.Color.Gray; - this.CrtGPTBtn2.BackColorGradientEnabled = false; - this.CrtGPTBtn2.BackColorGradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; - this.CrtGPTBtn2.BorderColor = System.Drawing.Color.Tomato; - this.CrtGPTBtn2.BorderColorEnabled = false; - this.CrtGPTBtn2.BorderColorOnHover = System.Drawing.Color.Tomato; - this.CrtGPTBtn2.BorderColorOnHoverEnabled = false; - this.CrtGPTBtn2.Cursor = System.Windows.Forms.Cursors.Hand; - this.CrtGPTBtn2.Font = new System.Drawing.Font("Verdana", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204))); - this.CrtGPTBtn2.ForeColor = System.Drawing.Color.White; - this.CrtGPTBtn2.Location = new System.Drawing.Point(6, 63); - this.CrtGPTBtn2.Name = "CrtGPTBtn2"; - this.CrtGPTBtn2.RippleColor = System.Drawing.Color.Black; - this.CrtGPTBtn2.RoundingEnable = false; - this.CrtGPTBtn2.Size = new System.Drawing.Size(345, 40); - this.CrtGPTBtn2.TabIndex = 32; - this.CrtGPTBtn2.Text = "Create from file"; - this.CrtGPTBtn2.TextHover = null; - this.CrtGPTBtn2.UseDownPressEffectOnClick = false; - this.CrtGPTBtn2.UseRippleEffect = true; - this.CrtGPTBtn2.UseVisualStyleBackColor = false; - this.CrtGPTBtn2.UseZoomEffectOnHover = false; - this.CrtGPTBtn2.Click += new System.EventHandler(this.CrtGptBTN2_Click); + this.groupBox7.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(38)))), ((int)(((byte)(49))))); + this.groupBox7.Controls.Add(this.UnpBTN); + this.groupBox7.Controls.Add(this.FlashUpdAppBTN); + this.groupBox7.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.groupBox7.ForeColor = System.Drawing.Color.AliceBlue; + this.groupBox7.Location = new System.Drawing.Point(9, 191); + this.groupBox7.Name = "groupBox7"; + this.groupBox7.Size = new System.Drawing.Size(345, 115); + this.groupBox7.TabIndex = 35; + this.groupBox7.TabStop = false; + this.groupBox7.Text = "Update.APP"; // - // ACTBOX - // - this.ACTBOX.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(38)))), ((int)(((byte)(49))))); - this.ACTBOX.Controls.Add(this.BoardU); - this.ACTBOX.Controls.Add(this.SLDEV); - this.ACTBOX.Font = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Bold); - this.ACTBOX.ForeColor = System.Drawing.Color.Cornsilk; - this.ACTBOX.Location = new System.Drawing.Point(5, 427); - this.ACTBOX.Name = "ACTBOX"; - this.ACTBOX.Size = new System.Drawing.Size(720, 134); - this.ACTBOX.TabIndex = 20; - this.ACTBOX.TabStop = false; - this.ACTBOX.Text = "Action"; - // - // BoardU - // - this.BoardU.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(35)))), ((int)(((byte)(47)))), ((int)(((byte)(70))))); - this.BoardU.BackColorAdditional = System.Drawing.Color.Gray; - this.BoardU.BackColorGradientEnabled = false; - this.BoardU.BackColorGradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; - this.BoardU.BorderColor = System.Drawing.Color.Tomato; - this.BoardU.BorderColorEnabled = false; - this.BoardU.BorderColorOnHover = System.Drawing.Color.Tomato; - this.BoardU.BorderColorOnHoverEnabled = false; - this.BoardU.Cursor = System.Windows.Forms.Cursors.Hand; - this.BoardU.Font = new System.Drawing.Font("Verdana", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204))); - this.BoardU.ForeColor = System.Drawing.Color.White; - this.BoardU.Location = new System.Drawing.Point(11, 86); - this.BoardU.Margin = new System.Windows.Forms.Padding(2); - this.BoardU.Name = "BoardU"; - this.BoardU.RippleColor = System.Drawing.Color.Beige; - this.BoardU.RoundingEnable = false; - this.BoardU.Size = new System.Drawing.Size(696, 39); - this.BoardU.TabIndex = 17; - this.BoardU.Text = "Download And Unlock"; - this.BoardU.TextHover = null; - this.BoardU.UseDownPressEffectOnClick = false; - this.BoardU.UseRippleEffect = true; - this.BoardU.UseVisualStyleBackColor = false; - this.BoardU.UseZoomEffectOnHover = false; - this.BoardU.Click += new System.EventHandler(this.UNLBTN_Click); - // - // SLDEV - // - this.SLDEV.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(38)))), ((int)(((byte)(49))))); - this.SLDEV.Controls.Add(this.DEVICER); - this.SLDEV.ForeColor = System.Drawing.Color.Cornsilk; - this.SLDEV.Location = new System.Drawing.Point(6, 24); - this.SLDEV.Name = "SLDEV"; - this.SLDEV.Size = new System.Drawing.Size(706, 57); - this.SLDEV.TabIndex = 19; - this.SLDEV.TabStop = false; - this.SLDEV.Text = "Select device:"; - // - // DEVICER - // - this.DEVICER.BackColor = System.Drawing.SystemColors.InactiveCaption; - this.DEVICER.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.DEVICER.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.DEVICER.Font = new System.Drawing.Font("Arial", 9.8F, System.Drawing.FontStyle.Bold); - this.DEVICER.Location = new System.Drawing.Point(5, 20); - this.DEVICER.Margin = new System.Windows.Forms.Padding(2); - this.DEVICER.Name = "DEVICER"; - this.DEVICER.Size = new System.Drawing.Size(696, 24); - this.DEVICER.Sorted = true; - this.DEVICER.TabIndex = 16; - this.DEVICER.SelectedIndexChanged += new System.EventHandler(this.DEVICER_SelectedIndexChanged); - this.DEVICER.Click += new System.EventHandler(this.DEVICER_SelectedIndexChanged); - // - // groupBox7 - // - this.groupBox7.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(38)))), ((int)(((byte)(49))))); - this.groupBox7.Controls.Add(this.UnpBTN); - this.groupBox7.Controls.Add(this.FlashUpdAppBTN); - this.groupBox7.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.groupBox7.ForeColor = System.Drawing.Color.AliceBlue; - this.groupBox7.Location = new System.Drawing.Point(5, 306); - this.groupBox7.Name = "groupBox7"; - this.groupBox7.Size = new System.Drawing.Size(358, 115); - this.groupBox7.TabIndex = 35; - this.groupBox7.TabStop = false; - this.groupBox7.Text = "Update.APP"; - // - // UnpBTN - // - this.UnpBTN.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(35)))), ((int)(((byte)(47)))), ((int)(((byte)(70))))); - this.UnpBTN.BackColorAdditional = System.Drawing.Color.Gray; - this.UnpBTN.BackColorGradientEnabled = false; - this.UnpBTN.BackColorGradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; - this.UnpBTN.BorderColor = System.Drawing.Color.Tomato; - this.UnpBTN.BorderColorEnabled = false; - this.UnpBTN.BorderColorOnHover = System.Drawing.Color.Tomato; - this.UnpBTN.BorderColorOnHoverEnabled = false; - this.UnpBTN.Cursor = System.Windows.Forms.Cursors.Hand; - this.UnpBTN.Font = new System.Drawing.Font("Verdana", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204))); - this.UnpBTN.ForeColor = System.Drawing.Color.White; - this.UnpBTN.Location = new System.Drawing.Point(7, 19); - this.UnpBTN.Name = "UnpBTN"; - this.UnpBTN.RippleColor = System.Drawing.Color.Black; - this.UnpBTN.RoundingEnable = false; - this.UnpBTN.Size = new System.Drawing.Size(345, 40); - this.UnpBTN.TabIndex = 34; - this.UnpBTN.Text = "Extract"; - this.UnpBTN.TextHover = null; - this.UnpBTN.UseDownPressEffectOnClick = false; - this.UnpBTN.UseRippleEffect = true; - this.UnpBTN.UseVisualStyleBackColor = false; - this.UnpBTN.UseZoomEffectOnHover = false; - this.UnpBTN.Click += new System.EventHandler(this.UnpBTN_Click); - // - // FlashUpdAppBTN - // - this.FlashUpdAppBTN.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(35)))), ((int)(((byte)(47)))), ((int)(((byte)(70))))); - this.FlashUpdAppBTN.BackColorAdditional = System.Drawing.Color.Gray; - this.FlashUpdAppBTN.BackColorGradientEnabled = false; - this.FlashUpdAppBTN.BackColorGradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; - this.FlashUpdAppBTN.BorderColor = System.Drawing.Color.Tomato; - this.FlashUpdAppBTN.BorderColorEnabled = false; - this.FlashUpdAppBTN.BorderColorOnHover = System.Drawing.Color.Tomato; - this.FlashUpdAppBTN.BorderColorOnHoverEnabled = false; - this.FlashUpdAppBTN.Cursor = System.Windows.Forms.Cursors.Hand; - this.FlashUpdAppBTN.Font = new System.Drawing.Font("Verdana", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204))); - this.FlashUpdAppBTN.ForeColor = System.Drawing.Color.White; - this.FlashUpdAppBTN.Location = new System.Drawing.Point(7, 66); - this.FlashUpdAppBTN.Name = "FlashUpdAppBTN"; - this.FlashUpdAppBTN.RippleColor = System.Drawing.Color.Black; - this.FlashUpdAppBTN.RoundingEnable = false; - this.FlashUpdAppBTN.Size = new System.Drawing.Size(345, 40); - this.FlashUpdAppBTN.TabIndex = 33; - this.FlashUpdAppBTN.Text = "Extract and Flash"; - this.FlashUpdAppBTN.TextHover = null; - this.FlashUpdAppBTN.UseDownPressEffectOnClick = false; - this.FlashUpdAppBTN.UseRippleEffect = true; - this.FlashUpdAppBTN.UseVisualStyleBackColor = false; - this.FlashUpdAppBTN.UseZoomEffectOnHover = false; - this.FlashUpdAppBTN.Click += new System.EventHandler(this.FlashUpdAppBTN_Click); - // - // GLOADER + // GLOADER // this.GLOADER.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(38)))), ((int)(((byte)(49))))); - this.GLOADER.Controls.Add(this.SelectLOADER); + this.GLOADER.Controls.Add(this.LoaderBox); + this.GLOADER.Controls.Add(this.DEVICER); + this.GLOADER.Controls.Add(this.SLDEV); this.GLOADER.Controls.Add(this.label1); + this.GLOADER.Controls.Add(this.SelectLOADER); this.GLOADER.Controls.Add(this.AutoLdr); - this.GLOADER.Controls.Add(this.LoaderBox); this.GLOADER.ForeColor = System.Drawing.Color.DarkGray; this.GLOADER.Location = new System.Drawing.Point(5, 1); this.GLOADER.Name = "GLOADER"; - this.GLOADER.Size = new System.Drawing.Size(721, 102); + this.GLOADER.Size = new System.Drawing.Size(519, 135); this.GLOADER.TabIndex = 28; this.GLOADER.TabStop = false; this.GLOADER.Text = "Select Loader"; // - // SelectLOADER - // - this.SelectLOADER.AutoSize = true; - this.SelectLOADER.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(55)))), ((int)(((byte)(67)))), ((int)(((byte)(90))))); - this.SelectLOADER.BackColorAdditional = System.Drawing.Color.Gray; - this.SelectLOADER.BackColorGradientEnabled = false; - this.SelectLOADER.BackColorGradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; - this.SelectLOADER.BorderColor = System.Drawing.Color.Tomato; - this.SelectLOADER.BorderColorEnabled = false; - this.SelectLOADER.BorderColorOnHover = System.Drawing.Color.Tomato; - this.SelectLOADER.BorderColorOnHoverEnabled = false; - this.SelectLOADER.Cursor = System.Windows.Forms.Cursors.Hand; - this.SelectLOADER.Enabled = false; - this.SelectLOADER.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(47)))), ((int)(((byte)(60))))); - this.SelectLOADER.FlatAppearance.BorderSize = 5; - this.SelectLOADER.Font = new System.Drawing.Font("Verdana", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204))); - this.SelectLOADER.ForeColor = System.Drawing.Color.White; - this.SelectLOADER.Location = new System.Drawing.Point(4, 65); - this.SelectLOADER.Margin = new System.Windows.Forms.Padding(2); - this.SelectLOADER.Name = "SelectLOADER"; - this.SelectLOADER.RippleColor = System.Drawing.Color.Black; - this.SelectLOADER.RoundingEnable = false; - this.SelectLOADER.Size = new System.Drawing.Size(710, 31); - this.SelectLOADER.TabIndex = 30; - this.SelectLOADER.Text = "Select"; - this.SelectLOADER.TextHover = null; - this.SelectLOADER.UseCompatibleTextRendering = true; - this.SelectLOADER.UseDownPressEffectOnClick = false; - this.SelectLOADER.UseRippleEffect = true; - this.SelectLOADER.UseVisualStyleBackColor = false; - this.SelectLOADER.UseZoomEffectOnHover = false; - this.SelectLOADER.Click += new System.EventHandler(this.LOADER_PATH); - // // label1 // this.label1.AutoSize = true; @@ -899,131 +570,20 @@ private void InitializeComponent() // GPfir // this.GPfir.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(38)))), ((int)(((byte)(49))))); + this.GPfir.Controls.Add(this.BoardU); this.GPfir.Controls.Add(this.UnlockFrp); this.GPfir.Controls.Add(this.EraseMeBtn); this.GPfir.Controls.Add(this.Flash); this.GPfir.Controls.Add(this.DUMPALL); this.GPfir.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.GPfir.ForeColor = System.Drawing.Color.AliceBlue; - this.GPfir.Location = new System.Drawing.Point(368, 101); + this.GPfir.Location = new System.Drawing.Point(360, 191); this.GPfir.Name = "GPfir"; - this.GPfir.Size = new System.Drawing.Size(357, 202); + this.GPfir.Size = new System.Drawing.Size(357, 236); this.GPfir.TabIndex = 29; this.GPfir.TabStop = false; this.GPfir.Text = "Select"; // - // UnlockFrp - // - this.UnlockFrp.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(35)))), ((int)(((byte)(47)))), ((int)(((byte)(70))))); - this.UnlockFrp.BackColorAdditional = System.Drawing.Color.Gray; - this.UnlockFrp.BackColorGradientEnabled = false; - this.UnlockFrp.BackColorGradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; - this.UnlockFrp.BorderColor = System.Drawing.Color.Tomato; - this.UnlockFrp.BorderColorEnabled = false; - this.UnlockFrp.BorderColorOnHover = System.Drawing.Color.Tomato; - this.UnlockFrp.BorderColorOnHoverEnabled = false; - this.UnlockFrp.Cursor = System.Windows.Forms.Cursors.Hand; - this.UnlockFrp.Font = new System.Drawing.Font("Verdana", 12F, System.Drawing.FontStyle.Bold); - this.UnlockFrp.ForeColor = System.Drawing.Color.White; - this.UnlockFrp.Location = new System.Drawing.Point(7, 154); - this.UnlockFrp.Margin = new System.Windows.Forms.Padding(2); - this.UnlockFrp.Name = "UnlockFrp"; - this.UnlockFrp.RippleColor = System.Drawing.Color.Black; - this.UnlockFrp.RoundingEnable = false; - this.UnlockFrp.Size = new System.Drawing.Size(343, 39); - this.UnlockFrp.TabIndex = 21; - this.UnlockFrp.Text = "Unlock FRP"; - this.UnlockFrp.TextHover = null; - this.UnlockFrp.UseDownPressEffectOnClick = false; - this.UnlockFrp.UseRippleEffect = true; - this.UnlockFrp.UseVisualStyleBackColor = false; - this.UnlockFrp.UseZoomEffectOnHover = false; - this.UnlockFrp.Click += new System.EventHandler(this.UnlockFrp_Click); - // - // EraseMeBtn - // - this.EraseMeBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(35)))), ((int)(((byte)(47)))), ((int)(((byte)(70))))); - this.EraseMeBtn.BackColorAdditional = System.Drawing.Color.Gray; - this.EraseMeBtn.BackColorGradientEnabled = false; - this.EraseMeBtn.BackColorGradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; - this.EraseMeBtn.BorderColor = System.Drawing.Color.Tomato; - this.EraseMeBtn.BorderColorEnabled = false; - this.EraseMeBtn.BorderColorOnHover = System.Drawing.Color.Tomato; - this.EraseMeBtn.BorderColorOnHoverEnabled = false; - this.EraseMeBtn.Cursor = System.Windows.Forms.Cursors.Hand; - this.EraseMeBtn.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.EraseMeBtn.Font = new System.Drawing.Font("Verdana", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204))); - this.EraseMeBtn.ForeColor = System.Drawing.Color.White; - this.EraseMeBtn.Location = new System.Drawing.Point(7, 109); - this.EraseMeBtn.Name = "EraseMeBtn"; - this.EraseMeBtn.RippleColor = System.Drawing.Color.Black; - this.EraseMeBtn.RoundingEnable = false; - this.EraseMeBtn.Size = new System.Drawing.Size(344, 40); - this.EraseMeBtn.TabIndex = 34; - this.EraseMeBtn.Text = "Erase Memory"; - this.EraseMeBtn.TextHover = null; - this.EraseMeBtn.UseDownPressEffectOnClick = false; - this.EraseMeBtn.UseRippleEffect = true; - this.EraseMeBtn.UseVisualStyleBackColor = false; - this.EraseMeBtn.UseZoomEffectOnHover = false; - this.EraseMeBtn.Click += new System.EventHandler(this.EraseMeBtn_Click); - // - // Flash - // - this.Flash.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(35)))), ((int)(((byte)(47)))), ((int)(((byte)(70))))); - this.Flash.BackColorAdditional = System.Drawing.Color.Gray; - this.Flash.BackColorGradientEnabled = false; - this.Flash.BackColorGradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; - this.Flash.BorderColor = System.Drawing.Color.Tomato; - this.Flash.BorderColorEnabled = false; - this.Flash.BorderColorOnHover = System.Drawing.Color.Tomato; - this.Flash.BorderColorOnHoverEnabled = false; - this.Flash.Cursor = System.Windows.Forms.Cursors.Hand; - this.Flash.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.Flash.Font = new System.Drawing.Font("Verdana", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204))); - this.Flash.ForeColor = System.Drawing.Color.White; - this.Flash.Location = new System.Drawing.Point(7, 17); - this.Flash.Name = "Flash"; - this.Flash.RippleColor = System.Drawing.Color.Black; - this.Flash.RoundingEnable = false; - this.Flash.Size = new System.Drawing.Size(344, 40); - this.Flash.TabIndex = 33; - this.Flash.Text = "Flash Firmware"; - this.Flash.TextHover = null; - this.Flash.UseDownPressEffectOnClick = false; - this.Flash.UseRippleEffect = true; - this.Flash.UseVisualStyleBackColor = false; - this.Flash.UseZoomEffectOnHover = false; - this.Flash.Click += new System.EventHandler(this.Flash_Click); - // - // DUMPALL - // - this.DUMPALL.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(35)))), ((int)(((byte)(47)))), ((int)(((byte)(70))))); - this.DUMPALL.BackColorAdditional = System.Drawing.Color.Gray; - this.DUMPALL.BackColorGradientEnabled = false; - this.DUMPALL.BackColorGradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; - this.DUMPALL.BorderColor = System.Drawing.Color.Tomato; - this.DUMPALL.BorderColorEnabled = false; - this.DUMPALL.BorderColorOnHover = System.Drawing.Color.Tomato; - this.DUMPALL.BorderColorOnHoverEnabled = false; - this.DUMPALL.Cursor = System.Windows.Forms.Cursors.Hand; - this.DUMPALL.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.DUMPALL.Font = new System.Drawing.Font("Verdana", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204))); - this.DUMPALL.ForeColor = System.Drawing.Color.White; - this.DUMPALL.Location = new System.Drawing.Point(7, 63); - this.DUMPALL.Name = "DUMPALL"; - this.DUMPALL.RippleColor = System.Drawing.Color.Black; - this.DUMPALL.RoundingEnable = false; - this.DUMPALL.Size = new System.Drawing.Size(344, 40); - this.DUMPALL.TabIndex = 32; - this.DUMPALL.Text = "Dump Firmware"; - this.DUMPALL.TextHover = null; - this.DUMPALL.UseDownPressEffectOnClick = false; - this.DUMPALL.UseRippleEffect = true; - this.DUMPALL.UseVisualStyleBackColor = false; - this.DUMPALL.UseZoomEffectOnHover = false; - this.DUMPALL.Click += new System.EventHandler(this.DumpALL_CLK); - // // QCOM2 // this.QCOM2.BackColor = System.Drawing.SystemColors.ActiveCaption; @@ -1211,36 +771,7 @@ private void InitializeComponent() this.L.Name = "L"; this.L.ReadOnly = true; // - // RdGPT - // - this.RdGPT.BackColor = System.Drawing.SystemColors.MenuHighlight; - this.RdGPT.BackColorAdditional = System.Drawing.Color.Gray; - this.RdGPT.BackColorGradientEnabled = false; - this.RdGPT.BackColorGradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; - this.RdGPT.BorderColor = System.Drawing.Color.Tomato; - this.RdGPT.BorderColorEnabled = false; - this.RdGPT.BorderColorOnHover = System.Drawing.Color.Tomato; - this.RdGPT.BorderColorOnHoverEnabled = false; - this.RdGPT.Cursor = System.Windows.Forms.Cursors.Hand; - this.RdGPT.Dock = System.Windows.Forms.DockStyle.Bottom; - this.RdGPT.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.RdGPT.Font = new System.Drawing.Font("Verdana", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204))); - this.RdGPT.ForeColor = System.Drawing.Color.White; - this.RdGPT.Location = new System.Drawing.Point(3, 554); - this.RdGPT.Name = "RdGPT"; - this.RdGPT.RippleColor = System.Drawing.Color.Black; - this.RdGPT.RoundingEnable = false; - this.RdGPT.Size = new System.Drawing.Size(725, 42); - this.RdGPT.TabIndex = 3; - this.RdGPT.Text = "Read GPT"; - this.RdGPT.TextHover = null; - this.RdGPT.UseDownPressEffectOnClick = false; - this.RdGPT.UseRippleEffect = true; - this.RdGPT.UseVisualStyleBackColor = false; - this.RdGPT.UseZoomEffectOnHover = false; - this.RdGPT.Click += new System.EventHandler(this.RdGPT_Click); - // - // KIRIN1 + // KIRIN1 // this.KIRIN1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(38)))), ((int)(((byte)(49))))); this.KIRIN1.Controls.Add(this.groupBox1); @@ -1344,168 +875,6 @@ private void InitializeComponent() this.groupBox3.TabStop = false; this.groupBox3.Text = "Actions"; // - // FrpHISIUnlock - // - this.FrpHISIUnlock.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(35)))), ((int)(((byte)(37)))), ((int)(((byte)(90))))); - this.FrpHISIUnlock.BackColorAdditional = System.Drawing.Color.Gray; - this.FrpHISIUnlock.BackColorGradientEnabled = false; - this.FrpHISIUnlock.BackColorGradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; - this.FrpHISIUnlock.BorderColor = System.Drawing.Color.Tomato; - this.FrpHISIUnlock.BorderColorEnabled = false; - this.FrpHISIUnlock.BorderColorOnHover = System.Drawing.Color.Tomato; - this.FrpHISIUnlock.BorderColorOnHoverEnabled = false; - this.FrpHISIUnlock.Cursor = System.Windows.Forms.Cursors.Hand; - this.FrpHISIUnlock.Font = new System.Drawing.Font("Verdana", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204))); - this.FrpHISIUnlock.ForeColor = System.Drawing.Color.White; - this.FrpHISIUnlock.Location = new System.Drawing.Point(6, 328); - this.FrpHISIUnlock.Name = "FrpHISIUnlock"; - this.FrpHISIUnlock.RippleColor = System.Drawing.Color.Black; - this.FrpHISIUnlock.RoundingEnable = false; - this.FrpHISIUnlock.Size = new System.Drawing.Size(405, 28); - this.FrpHISIUnlock.TabIndex = 24; - this.FrpHISIUnlock.Text = "FRP Unlock"; - this.FrpHISIUnlock.TextHover = null; - this.FrpHISIUnlock.UseDownPressEffectOnClick = false; - this.FrpHISIUnlock.UseRippleEffect = true; - this.FrpHISIUnlock.UseVisualStyleBackColor = false; - this.FrpHISIUnlock.UseZoomEffectOnHover = false; - this.FrpHISIUnlock.Click += new System.EventHandler(this.FrpHISIUnlock_Click); - // - // UNLOCKHISI - // - this.UNLOCKHISI.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(35)))), ((int)(((byte)(37)))), ((int)(((byte)(90))))); - this.UNLOCKHISI.BackColorAdditional = System.Drawing.Color.Gray; - this.UNLOCKHISI.BackColorGradientEnabled = false; - this.UNLOCKHISI.BackColorGradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; - this.UNLOCKHISI.BorderColor = System.Drawing.Color.Tomato; - this.UNLOCKHISI.BorderColorEnabled = false; - this.UNLOCKHISI.BorderColorOnHover = System.Drawing.Color.Tomato; - this.UNLOCKHISI.BorderColorOnHoverEnabled = false; - this.UNLOCKHISI.Cursor = System.Windows.Forms.Cursors.Hand; - this.UNLOCKHISI.Font = new System.Drawing.Font("Verdana", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204))); - this.UNLOCKHISI.ForeColor = System.Drawing.Color.White; - this.UNLOCKHISI.Location = new System.Drawing.Point(6, 294); - this.UNLOCKHISI.Name = "UNLOCKHISI"; - this.UNLOCKHISI.RippleColor = System.Drawing.Color.Black; - this.UNLOCKHISI.RoundingEnable = false; - this.UNLOCKHISI.Size = new System.Drawing.Size(405, 28); - this.UNLOCKHISI.TabIndex = 23; - this.UNLOCKHISI.Text = "Download and Read/Write Unlock code"; - this.UNLOCKHISI.TextHover = null; - this.UNLOCKHISI.UseDownPressEffectOnClick = false; - this.UNLOCKHISI.UseRippleEffect = true; - this.UNLOCKHISI.UseVisualStyleBackColor = false; - this.UNLOCKHISI.UseZoomEffectOnHover = false; - this.UNLOCKHISI.Click += new System.EventHandler(this.UNLOCKHISI_Click); - // - // RebootFB - // - this.RebootFB.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(35)))), ((int)(((byte)(47)))), ((int)(((byte)(70))))); - this.RebootFB.BackColorAdditional = System.Drawing.Color.Gray; - this.RebootFB.BackColorGradientEnabled = false; - this.RebootFB.BackColorGradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; - this.RebootFB.BorderColor = System.Drawing.Color.Tomato; - this.RebootFB.BorderColorEnabled = false; - this.RebootFB.BorderColorOnHover = System.Drawing.Color.Tomato; - this.RebootFB.BorderColorOnHoverEnabled = false; - this.RebootFB.Cursor = System.Windows.Forms.Cursors.Hand; - this.RebootFB.Font = new System.Drawing.Font("Verdana", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204))); - this.RebootFB.ForeColor = System.Drawing.Color.White; - this.RebootFB.Location = new System.Drawing.Point(6, 100); - this.RebootFB.Name = "RebootFB"; - this.RebootFB.RippleColor = System.Drawing.Color.Black; - this.RebootFB.RoundingEnable = false; - this.RebootFB.Size = new System.Drawing.Size(405, 35); - this.RebootFB.TabIndex = 26; - this.RebootFB.Text = "Reboot (FASTBOOT)"; - this.RebootFB.TextHover = null; - this.RebootFB.UseDownPressEffectOnClick = false; - this.RebootFB.UseRippleEffect = true; - this.RebootFB.UseVisualStyleBackColor = false; - this.RebootFB.UseZoomEffectOnHover = false; - this.RebootFB.Click += new System.EventHandler(this.RebootFB_Click); - // - // FBLstHISI - // - this.FBLstHISI.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(35)))), ((int)(((byte)(37)))), ((int)(((byte)(90))))); - this.FBLstHISI.BackColorAdditional = System.Drawing.Color.Gray; - this.FBLstHISI.BackColorGradientEnabled = false; - this.FBLstHISI.BackColorGradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; - this.FBLstHISI.BorderColor = System.Drawing.Color.Tomato; - this.FBLstHISI.BorderColorEnabled = false; - this.FBLstHISI.BorderColorOnHover = System.Drawing.Color.Tomato; - this.FBLstHISI.BorderColorOnHoverEnabled = false; - this.FBLstHISI.Cursor = System.Windows.Forms.Cursors.Hand; - this.FBLstHISI.Font = new System.Drawing.Font("Verdana", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204))); - this.FBLstHISI.ForeColor = System.Drawing.Color.White; - this.FBLstHISI.Location = new System.Drawing.Point(6, 359); - this.FBLstHISI.Name = "FBLstHISI"; - this.FBLstHISI.RippleColor = System.Drawing.Color.Black; - this.FBLstHISI.RoundingEnable = false; - this.FBLstHISI.Size = new System.Drawing.Size(405, 28); - this.FBLstHISI.TabIndex = 19; - this.FBLstHISI.Text = "Write FBLOCK STATE"; - this.FBLstHISI.TextHover = null; - this.FBLstHISI.UseDownPressEffectOnClick = false; - this.FBLstHISI.UseRippleEffect = true; - this.FBLstHISI.UseVisualStyleBackColor = false; - this.FBLstHISI.UseZoomEffectOnHover = false; - this.FBLstHISI.Click += new System.EventHandler(this.FBLstHISI_Click); - // - // HISI_board_FB - // - this.HISI_board_FB.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(35)))), ((int)(((byte)(47)))), ((int)(((byte)(70))))); - this.HISI_board_FB.BackColorAdditional = System.Drawing.Color.Gray; - this.HISI_board_FB.BackColorGradientEnabled = false; - this.HISI_board_FB.BackColorGradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; - this.HISI_board_FB.BorderColor = System.Drawing.Color.Tomato; - this.HISI_board_FB.BorderColorEnabled = false; - this.HISI_board_FB.BorderColorOnHover = System.Drawing.Color.Tomato; - this.HISI_board_FB.BorderColorOnHoverEnabled = false; - this.HISI_board_FB.Cursor = System.Windows.Forms.Cursors.Hand; - this.HISI_board_FB.Font = new System.Drawing.Font("Verdana", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204))); - this.HISI_board_FB.ForeColor = System.Drawing.Color.White; - this.HISI_board_FB.Location = new System.Drawing.Point(6, 59); - this.HISI_board_FB.Name = "HISI_board_FB"; - this.HISI_board_FB.RippleColor = System.Drawing.Color.Black; - this.HISI_board_FB.RoundingEnable = false; - this.HISI_board_FB.Size = new System.Drawing.Size(405, 35); - this.HISI_board_FB.TabIndex = 21; - this.HISI_board_FB.Text = "Write Key (FASTBOOT)"; - this.HISI_board_FB.TextHover = null; - this.HISI_board_FB.UseDownPressEffectOnClick = false; - this.HISI_board_FB.UseRippleEffect = true; - this.HISI_board_FB.UseVisualStyleBackColor = false; - this.HISI_board_FB.UseZoomEffectOnHover = false; - this.HISI_board_FB.Click += new System.EventHandler(this.HISI_board_FB_Click); - // - // RdHISIinfo - // - this.RdHISIinfo.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(35)))), ((int)(((byte)(47)))), ((int)(((byte)(70))))); - this.RdHISIinfo.BackColorAdditional = System.Drawing.Color.Gray; - this.RdHISIinfo.BackColorGradientEnabled = false; - this.RdHISIinfo.BackColorGradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; - this.RdHISIinfo.BorderColor = System.Drawing.Color.Tomato; - this.RdHISIinfo.BorderColorEnabled = false; - this.RdHISIinfo.BorderColorOnHover = System.Drawing.Color.Tomato; - this.RdHISIinfo.BorderColorOnHoverEnabled = false; - this.RdHISIinfo.Cursor = System.Windows.Forms.Cursors.Hand; - this.RdHISIinfo.Font = new System.Drawing.Font("Verdana", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204))); - this.RdHISIinfo.ForeColor = System.Drawing.Color.WhiteSmoke; - this.RdHISIinfo.Location = new System.Drawing.Point(6, 18); - this.RdHISIinfo.Name = "RdHISIinfo"; - this.RdHISIinfo.RippleColor = System.Drawing.Color.Black; - this.RdHISIinfo.RoundingEnable = false; - this.RdHISIinfo.Size = new System.Drawing.Size(405, 35); - this.RdHISIinfo.TabIndex = 15; - this.RdHISIinfo.Text = "Read Info (FASTBOOT)"; - this.RdHISIinfo.TextHover = null; - this.RdHISIinfo.UseDownPressEffectOnClick = false; - this.RdHISIinfo.UseRippleEffect = true; - this.RdHISIinfo.UseVisualStyleBackColor = false; - this.RdHISIinfo.UseZoomEffectOnHover = false; - this.RdHISIinfo.Click += new System.EventHandler(this.RdHISIinfo_Click); - // // groupBox2 // this.groupBox2.Controls.Add(this.label11); @@ -1808,35 +1177,6 @@ private void InitializeComponent() this.PTOFIRM2.TabStop = false; this.PTOFIRM2.Text = "Path to firmware"; // - // SelectKFirmw - // - this.SelectKFirmw.AutoSize = true; - this.SelectKFirmw.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(55)))), ((int)(((byte)(47)))), ((int)(((byte)(60))))); - this.SelectKFirmw.BackColorAdditional = System.Drawing.Color.Gray; - this.SelectKFirmw.BackColorGradientEnabled = false; - this.SelectKFirmw.BackColorGradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; - this.SelectKFirmw.BorderColor = System.Drawing.Color.Tomato; - this.SelectKFirmw.BorderColorEnabled = false; - this.SelectKFirmw.BorderColorOnHover = System.Drawing.Color.Tomato; - this.SelectKFirmw.BorderColorOnHoverEnabled = false; - this.SelectKFirmw.Cursor = System.Windows.Forms.Cursors.Hand; - this.SelectKFirmw.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204))); - this.SelectKFirmw.ForeColor = System.Drawing.Color.White; - this.SelectKFirmw.Location = new System.Drawing.Point(422, 19); - this.SelectKFirmw.Margin = new System.Windows.Forms.Padding(2); - this.SelectKFirmw.Name = "SelectKFirmw"; - this.SelectKFirmw.RippleColor = System.Drawing.Color.Black; - this.SelectKFirmw.RoundingEnable = false; - this.SelectKFirmw.Size = new System.Drawing.Size(65, 25); - this.SelectKFirmw.TabIndex = 28; - this.SelectKFirmw.Text = "Select"; - this.SelectKFirmw.TextHover = null; - this.SelectKFirmw.UseDownPressEffectOnClick = false; - this.SelectKFirmw.UseRippleEffect = true; - this.SelectKFirmw.UseVisualStyleBackColor = false; - this.SelectKFirmw.UseZoomEffectOnHover = false; - this.SelectKFirmw.Click += new System.EventHandler(this.SelectKFirmw_Click); - // // KirinFirmPath // this.KirinFirmPath.BackColor = System.Drawing.SystemColors.InactiveCaption; @@ -1898,7 +1238,8 @@ private void InitializeComponent() this.KirinFiles.RowTemplate.Resizable = System.Windows.Forms.DataGridViewTriState.True; this.KirinFiles.Size = new System.Drawing.Size(735, 471); this.KirinFiles.TabIndex = 1; - this.KirinFiles.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.PARTLIST_CellDoubleClick); + this.KirinFiles.CellContentDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.PARTLIST_CellDoubleClick); + this.KirinFiles.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.PARTLIST_CellDoubleClick); // // dataGridViewTextBoxColumn1 // @@ -1965,34 +1306,6 @@ private void InitializeComponent() this.groupBox14.TabStop = false; this.groupBox14.Text = "Scatter.txt"; // - // nButton1 - // - this.nButton1.AutoSize = true; - this.nButton1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(55)))), ((int)(((byte)(47)))), ((int)(((byte)(60))))); - this.nButton1.BackColorAdditional = System.Drawing.Color.Gray; - this.nButton1.BackColorGradientEnabled = false; - this.nButton1.BackColorGradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; - this.nButton1.BorderColor = System.Drawing.Color.Tomato; - this.nButton1.BorderColorEnabled = false; - this.nButton1.BorderColorOnHover = System.Drawing.Color.Tomato; - this.nButton1.BorderColorOnHoverEnabled = false; - this.nButton1.Cursor = System.Windows.Forms.Cursors.Hand; - this.nButton1.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204))); - this.nButton1.ForeColor = System.Drawing.Color.White; - this.nButton1.Location = new System.Drawing.Point(336, 18); - this.nButton1.Margin = new System.Windows.Forms.Padding(2); - this.nButton1.Name = "nButton1"; - this.nButton1.RippleColor = System.Drawing.Color.Black; - this.nButton1.RoundingEnable = false; - this.nButton1.Size = new System.Drawing.Size(65, 25); - this.nButton1.TabIndex = 37; - this.nButton1.Text = "Select"; - this.nButton1.TextHover = null; - this.nButton1.UseDownPressEffectOnClick = false; - this.nButton1.UseRippleEffect = true; - this.nButton1.UseVisualStyleBackColor = false; - this.nButton1.UseZoomEffectOnHover = false; - // // textBox1 // this.textBox1.BackColor = System.Drawing.SystemColors.InactiveCaption; @@ -2015,34 +1328,7 @@ private void InitializeComponent() this.groupBox12.TabStop = false; this.groupBox12.Text = "What To Do"; // - // BypathAuthMTKBTN - // - this.BypathAuthMTKBTN.BackColor = System.Drawing.Color.Tomato; - this.BypathAuthMTKBTN.BackColorAdditional = System.Drawing.Color.Gray; - this.BypathAuthMTKBTN.BackColorGradientEnabled = false; - this.BypathAuthMTKBTN.BackColorGradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; - this.BypathAuthMTKBTN.BorderColor = System.Drawing.Color.Tomato; - this.BypathAuthMTKBTN.BorderColorEnabled = false; - this.BypathAuthMTKBTN.BorderColorOnHover = System.Drawing.Color.Tomato; - this.BypathAuthMTKBTN.BorderColorOnHoverEnabled = false; - this.BypathAuthMTKBTN.Cursor = System.Windows.Forms.Cursors.Hand; - this.BypathAuthMTKBTN.Font = new System.Drawing.Font("Verdana", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204))); - this.BypathAuthMTKBTN.ForeColor = System.Drawing.Color.White; - this.BypathAuthMTKBTN.Location = new System.Drawing.Point(5, 15); - this.BypathAuthMTKBTN.Margin = new System.Windows.Forms.Padding(2); - this.BypathAuthMTKBTN.Name = "BypathAuthMTKBTN"; - this.BypathAuthMTKBTN.RippleColor = System.Drawing.Color.Beige; - this.BypathAuthMTKBTN.RoundingEnable = false; - this.BypathAuthMTKBTN.Size = new System.Drawing.Size(395, 37); - this.BypathAuthMTKBTN.TabIndex = 18; - this.BypathAuthMTKBTN.Text = "Not Work"; - this.BypathAuthMTKBTN.TextHover = null; - this.BypathAuthMTKBTN.UseDownPressEffectOnClick = false; - this.BypathAuthMTKBTN.UseRippleEffect = true; - this.BypathAuthMTKBTN.UseVisualStyleBackColor = false; - this.BypathAuthMTKBTN.UseZoomEffectOnHover = false; - // - // groupBox11 + // groupBox11 // this.groupBox11.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(38)))), ((int)(((byte)(49))))); this.groupBox11.Controls.Add(this.comboBox1); @@ -2083,34 +1369,6 @@ private void InitializeComponent() this.groupBox4.TabStop = false; this.groupBox4.Text = "What To Do"; // - // BypAuBTN - // - this.BypAuBTN.BackColor = System.Drawing.Color.Tomato; - this.BypAuBTN.BackColorAdditional = System.Drawing.Color.Gray; - this.BypAuBTN.BackColorGradientEnabled = false; - this.BypAuBTN.BackColorGradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; - this.BypAuBTN.BorderColor = System.Drawing.Color.Tomato; - this.BypAuBTN.BorderColorEnabled = false; - this.BypAuBTN.BorderColorOnHover = System.Drawing.Color.Tomato; - this.BypAuBTN.BorderColorOnHoverEnabled = false; - this.BypAuBTN.Cursor = System.Windows.Forms.Cursors.Hand; - this.BypAuBTN.Font = new System.Drawing.Font("Verdana", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204))); - this.BypAuBTN.ForeColor = System.Drawing.Color.White; - this.BypAuBTN.Location = new System.Drawing.Point(5, 15); - this.BypAuBTN.Margin = new System.Windows.Forms.Padding(2); - this.BypAuBTN.Name = "BypAuBTN"; - this.BypAuBTN.RippleColor = System.Drawing.Color.Beige; - this.BypAuBTN.RoundingEnable = false; - this.BypAuBTN.Size = new System.Drawing.Size(308, 37); - this.BypAuBTN.TabIndex = 18; - this.BypAuBTN.Text = " Not Work"; - this.BypAuBTN.TextHover = null; - this.BypAuBTN.UseDownPressEffectOnClick = false; - this.BypAuBTN.UseRippleEffect = true; - this.BypAuBTN.UseVisualStyleBackColor = false; - this.BypAuBTN.UseZoomEffectOnHover = false; - this.BypAuBTN.Click += new System.EventHandler(this.BypAuBTN_Click); - // // OeRrd // this.OeRrd.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(38)))), ((int)(((byte)(49))))); @@ -2404,90 +1662,849 @@ private void InitializeComponent() this.HomeeBTN.UseVisualStyleBackColor = false; this.HomeeBTN.Click += new System.EventHandler(this.HomeeBTN_Click); // - // QcomUnlBTN + // QcomUnlBTN + // + this.QcomUnlBTN.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(38)))), ((int)(((byte)(49))))); + this.QcomUnlBTN.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("QcomUnlBTN.BackgroundImage"))); + this.QcomUnlBTN.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom; + this.QcomUnlBTN.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.QcomUnlBTN.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(38)))), ((int)(((byte)(49))))); + this.QcomUnlBTN.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; + this.QcomUnlBTN.Location = new System.Drawing.Point(0, 129); + this.QcomUnlBTN.Margin = new System.Windows.Forms.Padding(2); + this.QcomUnlBTN.Name = "QcomUnlBTN"; + this.QcomUnlBTN.Size = new System.Drawing.Size(64, 49); + this.QcomUnlBTN.TabIndex = 31; + this.QcomUnlBTN.UseVisualStyleBackColor = false; + this.QcomUnlBTN.Click += new System.EventHandler(this.QcomUnlBTN_Click); + // + // HomeTag + // + this.HomeTag.Cursor = System.Windows.Forms.Cursors.Default; + this.HomeTag.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.HomeTag.Font = new System.Drawing.Font("Verdana", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204))); + this.HomeTag.ForeColor = System.Drawing.Color.MintCream; + this.HomeTag.ImeMode = System.Windows.Forms.ImeMode.NoControl; + this.HomeTag.Location = new System.Drawing.Point(67, 67); + this.HomeTag.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); + this.HomeTag.Name = "HomeTag"; + this.HomeTag.RightToLeft = System.Windows.Forms.RightToLeft.No; + this.HomeTag.Size = new System.Drawing.Size(165, 49); + this.HomeTag.TabIndex = 30; + this.HomeTag.Text = "Home"; + this.HomeTag.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // BURGBTN + // + this.BURGBTN.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(33)))), ((int)(((byte)(47)))), ((int)(((byte)(60))))); + this.BURGBTN.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("BURGBTN.BackgroundImage"))); + this.BURGBTN.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom; + this.BURGBTN.Dock = System.Windows.Forms.DockStyle.Top; + this.BURGBTN.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.BURGBTN.Location = new System.Drawing.Point(0, 0); + this.BURGBTN.Margin = new System.Windows.Forms.Padding(2); + this.BURGBTN.MaximumSize = new System.Drawing.Size(240, 50); + this.BURGBTN.MinimumSize = new System.Drawing.Size(65, 45); + this.BURGBTN.Name = "BURGBTN"; + this.BURGBTN.Size = new System.Drawing.Size(68, 50); + this.BURGBTN.TabIndex = 0; + this.BURGBTN.UseVisualStyleBackColor = false; + this.BURGBTN.Click += new System.EventHandler(this.BURGBTN_Click); + // + // button12 + // + this.button12.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(38)))), ((int)(((byte)(41))))); + this.button12.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.button12.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204))); + this.button12.ForeColor = System.Drawing.Color.IndianRed; + this.button12.Location = new System.Drawing.Point(825, 643); + this.button12.Margin = new System.Windows.Forms.Padding(2); + this.button12.Name = "button12"; + this.button12.Size = new System.Drawing.Size(136, 28); + this.button12.TabIndex = 4; + this.button12.Text = "CANCEL/RESET"; + this.button12.UseVisualStyleBackColor = false; + this.button12.Click += new System.EventHandler(this.button12_Click); + // + // PortFindUpd + // + this.PortFindUpd.Enabled = true; + this.PortFindUpd.Interval = 10000; + this.PortFindUpd.Tick += new System.EventHandler(this.Searching); + // + // IdentifyBTN + // + this.IdentifyBTN.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(38)))), ((int)(((byte)(41))))); + this.IdentifyBTN.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.IdentifyBTN.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204))); + this.IdentifyBTN.ForeColor = System.Drawing.Color.MediumSpringGreen; + this.IdentifyBTN.Location = new System.Drawing.Point(965, 643); + this.IdentifyBTN.Margin = new System.Windows.Forms.Padding(2); + this.IdentifyBTN.Name = "IdentifyBTN"; + this.IdentifyBTN.Size = new System.Drawing.Size(309, 28); + this.IdentifyBTN.TabIndex = 32; + this.IdentifyBTN.Text = "Detect"; + this.IdentifyBTN.UseVisualStyleBackColor = false; + this.IdentifyBTN.Click += new System.EventHandler(this.IdentifyBTN_Click); + // + // SLDEV + // + this.SLDEV.AutoSize = true; + this.SLDEV.Cursor = System.Windows.Forms.Cursors.Default; + this.SLDEV.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.SLDEV.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold); + this.SLDEV.ForeColor = System.Drawing.Color.MintCream; + this.SLDEV.ImeMode = System.Windows.Forms.ImeMode.NoControl; + this.SLDEV.Location = new System.Drawing.Point(5, 70); + this.SLDEV.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); + this.SLDEV.Name = "SLDEV"; + this.SLDEV.Size = new System.Drawing.Size(110, 19); + this.SLDEV.TabIndex = 31; + this.SLDEV.Text = "Select device"; + // + // LoaderBox + // + this.LoaderBox.BackColor = System.Drawing.SystemColors.InactiveCaption; + this.LoaderBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.LoaderBox.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.LoaderBox.Font = new System.Drawing.Font("Arial", 9.8F, System.Drawing.FontStyle.Bold); + this.LoaderBox.Location = new System.Drawing.Point(6, 37); + this.LoaderBox.Margin = new System.Windows.Forms.Padding(2); + this.LoaderBox.Name = "LoaderBox"; + this.LoaderBox.Size = new System.Drawing.Size(409, 24); + this.LoaderBox.Sorted = true; + this.LoaderBox.TabIndex = 32; + // + // ACTBOX + // + this.ACTBOX.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(38)))), ((int)(((byte)(49))))); + this.ACTBOX.Controls.Add(this.panel1); + this.ACTBOX.Controls.Add(this.GPfir); + this.ACTBOX.Controls.Add(this.groupBox10); + this.ACTBOX.Controls.Add(this.groupBox7); + this.ACTBOX.Font = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Bold); + this.ACTBOX.ForeColor = System.Drawing.Color.Cornsilk; + this.ACTBOX.Location = new System.Drawing.Point(5, 139); + this.ACTBOX.Name = "ACTBOX"; + this.ACTBOX.Size = new System.Drawing.Size(720, 454); + this.ACTBOX.TabIndex = 20; + this.ACTBOX.TabStop = false; + this.ACTBOX.Text = "Action"; + // + // label4 + // + this.label4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(38)))), ((int)(((byte)(49))))); + this.label4.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; + this.label4.ForeColor = System.Drawing.Color.MintCream; + this.label4.ImeMode = System.Windows.Forms.ImeMode.NoControl; + this.label4.Location = new System.Drawing.Point(530, 5); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(195, 131); + this.label4.TabIndex = 36; + this.label4.Text = "Bootloader status On:\r\n\r\ngithub.com/werasik2aa/UnlockedHuaweiBootloader"; + this.label4.TextAlign = System.Drawing.ContentAlignment.TopCenter; + // + // SelLanguage + // + this.SelLanguage.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(55)))), ((int)(((byte)(67)))), ((int)(((byte)(90))))); + this.SelLanguage.BackColorAdditional = System.Drawing.Color.Gray; + this.SelLanguage.BackColorGradientEnabled = false; + this.SelLanguage.BackColorGradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; + this.SelLanguage.BorderColor = System.Drawing.Color.Tomato; + this.SelLanguage.BorderColorEnabled = false; + this.SelLanguage.BorderColorOnHover = System.Drawing.Color.Tomato; + this.SelLanguage.BorderColorOnHoverEnabled = false; + this.SelLanguage.Cursor = System.Windows.Forms.Cursors.Hand; + this.SelLanguage.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(47)))), ((int)(((byte)(60))))); + this.SelLanguage.FlatAppearance.BorderSize = 5; + this.SelLanguage.Font = new System.Drawing.Font("Verdana", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204))); + this.SelLanguage.ForeColor = System.Drawing.Color.White; + this.SelLanguage.Location = new System.Drawing.Point(5, 52); + this.SelLanguage.Margin = new System.Windows.Forms.Padding(2); + this.SelLanguage.Name = "SelLanguage"; + this.SelLanguage.RippleColor = System.Drawing.Color.Black; + this.SelLanguage.RoundingEnable = false; + this.SelLanguage.Size = new System.Drawing.Size(269, 34); + this.SelLanguage.TabIndex = 32; + this.SelLanguage.Text = "Apply"; + this.SelLanguage.TextHover = null; + this.SelLanguage.UseCompatibleTextRendering = true; + this.SelLanguage.UseDownPressEffectOnClick = false; + this.SelLanguage.UseRippleEffect = true; + this.SelLanguage.UseVisualStyleBackColor = false; + this.SelLanguage.UseZoomEffectOnHover = false; + this.SelLanguage.Click += new System.EventHandler(this.SelLanguage_Click); + // + // SelectLOADER + // + this.SelectLOADER.AutoSize = true; + this.SelectLOADER.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(55)))), ((int)(((byte)(67)))), ((int)(((byte)(90))))); + this.SelectLOADER.BackColorAdditional = System.Drawing.Color.Gray; + this.SelectLOADER.BackColorGradientEnabled = false; + this.SelectLOADER.BackColorGradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; + this.SelectLOADER.BorderColor = System.Drawing.Color.Tomato; + this.SelectLOADER.BorderColorEnabled = false; + this.SelectLOADER.BorderColorOnHover = System.Drawing.Color.Tomato; + this.SelectLOADER.BorderColorOnHoverEnabled = false; + this.SelectLOADER.Cursor = System.Windows.Forms.Cursors.Hand; + this.SelectLOADER.Enabled = false; + this.SelectLOADER.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(47)))), ((int)(((byte)(60))))); + this.SelectLOADER.FlatAppearance.BorderSize = 5; + this.SelectLOADER.Font = new System.Drawing.Font("Verdana", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204))); + this.SelectLOADER.ForeColor = System.Drawing.Color.White; + this.SelectLOADER.Location = new System.Drawing.Point(419, 33); + this.SelectLOADER.Margin = new System.Windows.Forms.Padding(2); + this.SelectLOADER.Name = "SelectLOADER"; + this.SelectLOADER.RippleColor = System.Drawing.Color.Black; + this.SelectLOADER.RoundingEnable = false; + this.SelectLOADER.Size = new System.Drawing.Size(93, 31); + this.SelectLOADER.TabIndex = 30; + this.SelectLOADER.Text = "Select"; + this.SelectLOADER.TextHover = null; + this.SelectLOADER.UseCompatibleTextRendering = true; + this.SelectLOADER.UseDownPressEffectOnClick = false; + this.SelectLOADER.UseRippleEffect = true; + this.SelectLOADER.UseVisualStyleBackColor = false; + this.SelectLOADER.UseZoomEffectOnHover = false; + this.SelectLOADER.Click += new System.EventHandler(this.LOADER_PATH); + // + // SelPth + // + this.SelPth.AutoSize = true; + this.SelPth.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(55)))), ((int)(((byte)(47)))), ((int)(((byte)(60))))); + this.SelPth.BackColorAdditional = System.Drawing.Color.Gray; + this.SelPth.BackColorGradientEnabled = false; + this.SelPth.BackColorGradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; + this.SelPth.BorderColor = System.Drawing.Color.Tomato; + this.SelPth.BorderColorEnabled = false; + this.SelPth.BorderColorOnHover = System.Drawing.Color.Tomato; + this.SelPth.BorderColorOnHoverEnabled = false; + this.SelPth.Cursor = System.Windows.Forms.Cursors.Hand; + this.SelPth.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204))); + this.SelPth.ForeColor = System.Drawing.Color.White; + this.SelPth.Location = new System.Drawing.Point(635, 114); + this.SelPth.Margin = new System.Windows.Forms.Padding(2); + this.SelPth.Name = "SelPth"; + this.SelPth.RippleColor = System.Drawing.Color.Black; + this.SelPth.RoundingEnable = false; + this.SelPth.Size = new System.Drawing.Size(65, 25); + this.SelPth.TabIndex = 31; + this.SelPth.Text = "Select"; + this.SelPth.TextHover = null; + this.SelPth.UseDownPressEffectOnClick = false; + this.SelPth.UseRippleEffect = true; + this.SelPth.UseVisualStyleBackColor = false; + this.SelPth.UseZoomEffectOnHover = false; + this.SelPth.Click += new System.EventHandler(this.nButton2_Click); + // + // Selecty2 + // + this.Selecty2.AutoSize = true; + this.Selecty2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(55)))), ((int)(((byte)(47)))), ((int)(((byte)(60))))); + this.Selecty2.BackColorAdditional = System.Drawing.Color.Gray; + this.Selecty2.BackColorGradientEnabled = false; + this.Selecty2.BackColorGradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; + this.Selecty2.BorderColor = System.Drawing.Color.Tomato; + this.Selecty2.BorderColorEnabled = false; + this.Selecty2.BorderColorOnHover = System.Drawing.Color.Tomato; + this.Selecty2.BorderColorOnHoverEnabled = false; + this.Selecty2.Cursor = System.Windows.Forms.Cursors.Hand; + this.Selecty2.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204))); + this.Selecty2.ForeColor = System.Drawing.Color.White; + this.Selecty2.Location = new System.Drawing.Point(635, 85); + this.Selecty2.Margin = new System.Windows.Forms.Padding(2); + this.Selecty2.Name = "Selecty2"; + this.Selecty2.RippleColor = System.Drawing.Color.Black; + this.Selecty2.RoundingEnable = false; + this.Selecty2.Size = new System.Drawing.Size(65, 25); + this.Selecty2.TabIndex = 29; + this.Selecty2.Text = "Select"; + this.Selecty2.TextHover = null; + this.Selecty2.UseDownPressEffectOnClick = false; + this.Selecty2.UseRippleEffect = true; + this.Selecty2.UseVisualStyleBackColor = false; + this.Selecty2.UseZoomEffectOnHover = false; + this.Selecty2.Click += new System.EventHandler(this.XML_PATH); + // + // Selecty3 + // + this.Selecty3.AutoSize = true; + this.Selecty3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(55)))), ((int)(((byte)(47)))), ((int)(((byte)(60))))); + this.Selecty3.BackColorAdditional = System.Drawing.Color.Gray; + this.Selecty3.BackColorGradientEnabled = false; + this.Selecty3.BackColorGradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; + this.Selecty3.BorderColor = System.Drawing.Color.Tomato; + this.Selecty3.BorderColorEnabled = false; + this.Selecty3.BorderColorOnHover = System.Drawing.Color.Tomato; + this.Selecty3.BorderColorOnHoverEnabled = false; + this.Selecty3.Cursor = System.Windows.Forms.Cursors.Hand; + this.Selecty3.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204))); + this.Selecty3.ForeColor = System.Drawing.Color.White; + this.Selecty3.Location = new System.Drawing.Point(636, 29); + this.Selecty3.Margin = new System.Windows.Forms.Padding(2); + this.Selecty3.Name = "Selecty3"; + this.Selecty3.RippleColor = System.Drawing.Color.Black; + this.Selecty3.RoundingEnable = false; + this.Selecty3.Size = new System.Drawing.Size(65, 25); + this.Selecty3.TabIndex = 28; + this.Selecty3.Text = "Select"; + this.Selecty3.TextHover = null; + this.Selecty3.UseDownPressEffectOnClick = false; + this.Selecty3.UseRippleEffect = true; + this.Selecty3.UseVisualStyleBackColor = false; + this.Selecty3.UseZoomEffectOnHover = false; + this.Selecty3.Click += new System.EventHandler(this.PATHTOFIRMWARE_Clck); + // + // BoardU + // + this.BoardU.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(35)))), ((int)(((byte)(47)))), ((int)(((byte)(70))))); + this.BoardU.BackColorAdditional = System.Drawing.Color.Gray; + this.BoardU.BackColorGradientEnabled = false; + this.BoardU.BackColorGradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; + this.BoardU.BorderColor = System.Drawing.Color.Tomato; + this.BoardU.BorderColorEnabled = false; + this.BoardU.BorderColorOnHover = System.Drawing.Color.Tomato; + this.BoardU.BorderColorOnHoverEnabled = false; + this.BoardU.Cursor = System.Windows.Forms.Cursors.Hand; + this.BoardU.Font = new System.Drawing.Font("Verdana", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204))); + this.BoardU.ForeColor = System.Drawing.Color.White; + this.BoardU.Location = new System.Drawing.Point(6, 192); + this.BoardU.Margin = new System.Windows.Forms.Padding(2); + this.BoardU.Name = "BoardU"; + this.BoardU.RippleColor = System.Drawing.Color.Beige; + this.BoardU.RoundingEnable = false; + this.BoardU.Size = new System.Drawing.Size(344, 38); + this.BoardU.TabIndex = 17; + this.BoardU.Text = "Download And Unlock"; + this.BoardU.TextHover = null; + this.BoardU.UseDownPressEffectOnClick = false; + this.BoardU.UseRippleEffect = true; + this.BoardU.UseVisualStyleBackColor = false; + this.BoardU.UseZoomEffectOnHover = false; + this.BoardU.Click += new System.EventHandler(this.UNLBTN_Click); + // + // UnlockFrp + // + this.UnlockFrp.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(35)))), ((int)(((byte)(47)))), ((int)(((byte)(70))))); + this.UnlockFrp.BackColorAdditional = System.Drawing.Color.Gray; + this.UnlockFrp.BackColorGradientEnabled = false; + this.UnlockFrp.BackColorGradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; + this.UnlockFrp.BorderColor = System.Drawing.Color.Tomato; + this.UnlockFrp.BorderColorEnabled = false; + this.UnlockFrp.BorderColorOnHover = System.Drawing.Color.Tomato; + this.UnlockFrp.BorderColorOnHoverEnabled = false; + this.UnlockFrp.Cursor = System.Windows.Forms.Cursors.Hand; + this.UnlockFrp.Font = new System.Drawing.Font("Verdana", 12F, System.Drawing.FontStyle.Bold); + this.UnlockFrp.ForeColor = System.Drawing.Color.White; + this.UnlockFrp.Location = new System.Drawing.Point(6, 150); + this.UnlockFrp.Margin = new System.Windows.Forms.Padding(2); + this.UnlockFrp.Name = "UnlockFrp"; + this.UnlockFrp.RippleColor = System.Drawing.Color.Black; + this.UnlockFrp.RoundingEnable = false; + this.UnlockFrp.Size = new System.Drawing.Size(344, 38); + this.UnlockFrp.TabIndex = 21; + this.UnlockFrp.Text = "Unlock FRP"; + this.UnlockFrp.TextHover = null; + this.UnlockFrp.UseDownPressEffectOnClick = false; + this.UnlockFrp.UseRippleEffect = true; + this.UnlockFrp.UseVisualStyleBackColor = false; + this.UnlockFrp.UseZoomEffectOnHover = false; + this.UnlockFrp.Click += new System.EventHandler(this.UnlockFrp_Click); + // + // EraseMeBtn + // + this.EraseMeBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(35)))), ((int)(((byte)(47)))), ((int)(((byte)(70))))); + this.EraseMeBtn.BackColorAdditional = System.Drawing.Color.Gray; + this.EraseMeBtn.BackColorGradientEnabled = false; + this.EraseMeBtn.BackColorGradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; + this.EraseMeBtn.BorderColor = System.Drawing.Color.Tomato; + this.EraseMeBtn.BorderColorEnabled = false; + this.EraseMeBtn.BorderColorOnHover = System.Drawing.Color.Tomato; + this.EraseMeBtn.BorderColorOnHoverEnabled = false; + this.EraseMeBtn.Cursor = System.Windows.Forms.Cursors.Hand; + this.EraseMeBtn.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.EraseMeBtn.Font = new System.Drawing.Font("Verdana", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204))); + this.EraseMeBtn.ForeColor = System.Drawing.Color.White; + this.EraseMeBtn.Location = new System.Drawing.Point(6, 107); + this.EraseMeBtn.Name = "EraseMeBtn"; + this.EraseMeBtn.RippleColor = System.Drawing.Color.Black; + this.EraseMeBtn.RoundingEnable = false; + this.EraseMeBtn.Size = new System.Drawing.Size(344, 38); + this.EraseMeBtn.TabIndex = 34; + this.EraseMeBtn.Text = "Erase Memory"; + this.EraseMeBtn.TextHover = null; + this.EraseMeBtn.UseDownPressEffectOnClick = false; + this.EraseMeBtn.UseRippleEffect = true; + this.EraseMeBtn.UseVisualStyleBackColor = false; + this.EraseMeBtn.UseZoomEffectOnHover = false; + this.EraseMeBtn.Click += new System.EventHandler(this.EraseMeBtn_Click); + // + // Flash + // + this.Flash.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(35)))), ((int)(((byte)(47)))), ((int)(((byte)(70))))); + this.Flash.BackColorAdditional = System.Drawing.Color.Gray; + this.Flash.BackColorGradientEnabled = false; + this.Flash.BackColorGradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; + this.Flash.BorderColor = System.Drawing.Color.Tomato; + this.Flash.BorderColorEnabled = false; + this.Flash.BorderColorOnHover = System.Drawing.Color.Tomato; + this.Flash.BorderColorOnHoverEnabled = false; + this.Flash.Cursor = System.Windows.Forms.Cursors.Hand; + this.Flash.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.Flash.Font = new System.Drawing.Font("Verdana", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204))); + this.Flash.ForeColor = System.Drawing.Color.White; + this.Flash.Location = new System.Drawing.Point(6, 19); + this.Flash.Name = "Flash"; + this.Flash.RippleColor = System.Drawing.Color.Black; + this.Flash.RoundingEnable = false; + this.Flash.Size = new System.Drawing.Size(344, 38); + this.Flash.TabIndex = 33; + this.Flash.Text = "Flash Firmware"; + this.Flash.TextHover = null; + this.Flash.UseDownPressEffectOnClick = false; + this.Flash.UseRippleEffect = true; + this.Flash.UseVisualStyleBackColor = false; + this.Flash.UseZoomEffectOnHover = false; + this.Flash.Click += new System.EventHandler(this.Flash_Click); + // + // DUMPALL + // + this.DUMPALL.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(35)))), ((int)(((byte)(47)))), ((int)(((byte)(70))))); + this.DUMPALL.BackColorAdditional = System.Drawing.Color.Gray; + this.DUMPALL.BackColorGradientEnabled = false; + this.DUMPALL.BackColorGradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; + this.DUMPALL.BorderColor = System.Drawing.Color.Tomato; + this.DUMPALL.BorderColorEnabled = false; + this.DUMPALL.BorderColorOnHover = System.Drawing.Color.Tomato; + this.DUMPALL.BorderColorOnHoverEnabled = false; + this.DUMPALL.Cursor = System.Windows.Forms.Cursors.Hand; + this.DUMPALL.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.DUMPALL.Font = new System.Drawing.Font("Verdana", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204))); + this.DUMPALL.ForeColor = System.Drawing.Color.White; + this.DUMPALL.Location = new System.Drawing.Point(6, 63); + this.DUMPALL.Name = "DUMPALL"; + this.DUMPALL.RippleColor = System.Drawing.Color.Black; + this.DUMPALL.RoundingEnable = false; + this.DUMPALL.Size = new System.Drawing.Size(344, 38); + this.DUMPALL.TabIndex = 32; + this.DUMPALL.Text = "Dump Firmware"; + this.DUMPALL.TextHover = null; + this.DUMPALL.UseDownPressEffectOnClick = false; + this.DUMPALL.UseRippleEffect = true; + this.DUMPALL.UseVisualStyleBackColor = false; + this.DUMPALL.UseZoomEffectOnHover = false; + this.DUMPALL.Click += new System.EventHandler(this.DumpALL_CLK); + // + // CrtGPTBtn + // + this.CrtGPTBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(35)))), ((int)(((byte)(47)))), ((int)(((byte)(70))))); + this.CrtGPTBtn.BackColorAdditional = System.Drawing.Color.Gray; + this.CrtGPTBtn.BackColorGradientEnabled = false; + this.CrtGPTBtn.BackColorGradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; + this.CrtGPTBtn.BorderColor = System.Drawing.Color.Tomato; + this.CrtGPTBtn.BorderColorEnabled = false; + this.CrtGPTBtn.BorderColorOnHover = System.Drawing.Color.Tomato; + this.CrtGPTBtn.BorderColorOnHoverEnabled = false; + this.CrtGPTBtn.Cursor = System.Windows.Forms.Cursors.Hand; + this.CrtGPTBtn.Font = new System.Drawing.Font("Verdana", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204))); + this.CrtGPTBtn.ForeColor = System.Drawing.Color.White; + this.CrtGPTBtn.Location = new System.Drawing.Point(6, 21); + this.CrtGPTBtn.Name = "CrtGPTBtn"; + this.CrtGPTBtn.RippleColor = System.Drawing.Color.Black; + this.CrtGPTBtn.RoundingEnable = false; + this.CrtGPTBtn.Size = new System.Drawing.Size(333, 40); + this.CrtGPTBtn.TabIndex = 35; + this.CrtGPTBtn.Text = "Read from device"; + this.CrtGPTBtn.TextHover = null; + this.CrtGPTBtn.UseDownPressEffectOnClick = false; + this.CrtGPTBtn.UseRippleEffect = true; + this.CrtGPTBtn.UseVisualStyleBackColor = false; + this.CrtGPTBtn.UseZoomEffectOnHover = false; + this.CrtGPTBtn.Click += new System.EventHandler(this.CrtGPTBtn_Click); + // + // CrtGPTBtn2 + // + this.CrtGPTBtn2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(35)))), ((int)(((byte)(47)))), ((int)(((byte)(70))))); + this.CrtGPTBtn2.BackColorAdditional = System.Drawing.Color.Gray; + this.CrtGPTBtn2.BackColorGradientEnabled = false; + this.CrtGPTBtn2.BackColorGradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; + this.CrtGPTBtn2.BorderColor = System.Drawing.Color.Tomato; + this.CrtGPTBtn2.BorderColorEnabled = false; + this.CrtGPTBtn2.BorderColorOnHover = System.Drawing.Color.Tomato; + this.CrtGPTBtn2.BorderColorOnHoverEnabled = false; + this.CrtGPTBtn2.Cursor = System.Windows.Forms.Cursors.Hand; + this.CrtGPTBtn2.Font = new System.Drawing.Font("Verdana", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204))); + this.CrtGPTBtn2.ForeColor = System.Drawing.Color.White; + this.CrtGPTBtn2.Location = new System.Drawing.Point(6, 66); + this.CrtGPTBtn2.Name = "CrtGPTBtn2"; + this.CrtGPTBtn2.RippleColor = System.Drawing.Color.Black; + this.CrtGPTBtn2.RoundingEnable = false; + this.CrtGPTBtn2.Size = new System.Drawing.Size(333, 40); + this.CrtGPTBtn2.TabIndex = 32; + this.CrtGPTBtn2.Text = "Create from file"; + this.CrtGPTBtn2.TextHover = null; + this.CrtGPTBtn2.UseDownPressEffectOnClick = false; + this.CrtGPTBtn2.UseRippleEffect = true; + this.CrtGPTBtn2.UseVisualStyleBackColor = false; + this.CrtGPTBtn2.UseZoomEffectOnHover = false; + this.CrtGPTBtn2.Click += new System.EventHandler(this.CrtGptBTN2_Click); + // + // UnpBTN + // + this.UnpBTN.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(35)))), ((int)(((byte)(47)))), ((int)(((byte)(70))))); + this.UnpBTN.BackColorAdditional = System.Drawing.Color.Gray; + this.UnpBTN.BackColorGradientEnabled = false; + this.UnpBTN.BackColorGradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; + this.UnpBTN.BorderColor = System.Drawing.Color.Tomato; + this.UnpBTN.BorderColorEnabled = false; + this.UnpBTN.BorderColorOnHover = System.Drawing.Color.Tomato; + this.UnpBTN.BorderColorOnHoverEnabled = false; + this.UnpBTN.Cursor = System.Windows.Forms.Cursors.Hand; + this.UnpBTN.Font = new System.Drawing.Font("Verdana", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204))); + this.UnpBTN.ForeColor = System.Drawing.Color.White; + this.UnpBTN.Location = new System.Drawing.Point(7, 19); + this.UnpBTN.Name = "UnpBTN"; + this.UnpBTN.RippleColor = System.Drawing.Color.Black; + this.UnpBTN.RoundingEnable = false; + this.UnpBTN.Size = new System.Drawing.Size(332, 40); + this.UnpBTN.TabIndex = 34; + this.UnpBTN.Text = "Extract"; + this.UnpBTN.TextHover = null; + this.UnpBTN.UseDownPressEffectOnClick = false; + this.UnpBTN.UseRippleEffect = true; + this.UnpBTN.UseVisualStyleBackColor = false; + this.UnpBTN.UseZoomEffectOnHover = false; + this.UnpBTN.Click += new System.EventHandler(this.UnpBTN_Click); + // + // FlashUpdAppBTN + // + this.FlashUpdAppBTN.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(35)))), ((int)(((byte)(47)))), ((int)(((byte)(70))))); + this.FlashUpdAppBTN.BackColorAdditional = System.Drawing.Color.Gray; + this.FlashUpdAppBTN.BackColorGradientEnabled = false; + this.FlashUpdAppBTN.BackColorGradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; + this.FlashUpdAppBTN.BorderColor = System.Drawing.Color.Tomato; + this.FlashUpdAppBTN.BorderColorEnabled = false; + this.FlashUpdAppBTN.BorderColorOnHover = System.Drawing.Color.Tomato; + this.FlashUpdAppBTN.BorderColorOnHoverEnabled = false; + this.FlashUpdAppBTN.Cursor = System.Windows.Forms.Cursors.Hand; + this.FlashUpdAppBTN.Font = new System.Drawing.Font("Verdana", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204))); + this.FlashUpdAppBTN.ForeColor = System.Drawing.Color.White; + this.FlashUpdAppBTN.Location = new System.Drawing.Point(7, 66); + this.FlashUpdAppBTN.Name = "FlashUpdAppBTN"; + this.FlashUpdAppBTN.RippleColor = System.Drawing.Color.Black; + this.FlashUpdAppBTN.RoundingEnable = false; + this.FlashUpdAppBTN.Size = new System.Drawing.Size(332, 40); + this.FlashUpdAppBTN.TabIndex = 33; + this.FlashUpdAppBTN.Text = "Extract and Flash"; + this.FlashUpdAppBTN.TextHover = null; + this.FlashUpdAppBTN.UseDownPressEffectOnClick = false; + this.FlashUpdAppBTN.UseRippleEffect = true; + this.FlashUpdAppBTN.UseVisualStyleBackColor = false; + this.FlashUpdAppBTN.UseZoomEffectOnHover = false; + this.FlashUpdAppBTN.Click += new System.EventHandler(this.FlashUpdAppBTN_Click); + // + // RdGPT + // + this.RdGPT.BackColor = System.Drawing.SystemColors.MenuHighlight; + this.RdGPT.BackColorAdditional = System.Drawing.Color.Gray; + this.RdGPT.BackColorGradientEnabled = false; + this.RdGPT.BackColorGradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; + this.RdGPT.BorderColor = System.Drawing.Color.Tomato; + this.RdGPT.BorderColorEnabled = false; + this.RdGPT.BorderColorOnHover = System.Drawing.Color.Tomato; + this.RdGPT.BorderColorOnHoverEnabled = false; + this.RdGPT.Cursor = System.Windows.Forms.Cursors.Hand; + this.RdGPT.Dock = System.Windows.Forms.DockStyle.Bottom; + this.RdGPT.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.RdGPT.Font = new System.Drawing.Font("Verdana", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204))); + this.RdGPT.ForeColor = System.Drawing.Color.White; + this.RdGPT.Location = new System.Drawing.Point(3, 554); + this.RdGPT.Name = "RdGPT"; + this.RdGPT.RippleColor = System.Drawing.Color.Black; + this.RdGPT.RoundingEnable = false; + this.RdGPT.Size = new System.Drawing.Size(725, 42); + this.RdGPT.TabIndex = 3; + this.RdGPT.Text = "Read GPT"; + this.RdGPT.TextHover = null; + this.RdGPT.UseDownPressEffectOnClick = false; + this.RdGPT.UseRippleEffect = true; + this.RdGPT.UseVisualStyleBackColor = false; + this.RdGPT.UseZoomEffectOnHover = false; + this.RdGPT.Click += new System.EventHandler(this.RdGPT_Click); + // + // FrpHISIUnlock + // + this.FrpHISIUnlock.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(35)))), ((int)(((byte)(37)))), ((int)(((byte)(90))))); + this.FrpHISIUnlock.BackColorAdditional = System.Drawing.Color.Gray; + this.FrpHISIUnlock.BackColorGradientEnabled = false; + this.FrpHISIUnlock.BackColorGradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; + this.FrpHISIUnlock.BorderColor = System.Drawing.Color.Tomato; + this.FrpHISIUnlock.BorderColorEnabled = false; + this.FrpHISIUnlock.BorderColorOnHover = System.Drawing.Color.Tomato; + this.FrpHISIUnlock.BorderColorOnHoverEnabled = false; + this.FrpHISIUnlock.Cursor = System.Windows.Forms.Cursors.Hand; + this.FrpHISIUnlock.Font = new System.Drawing.Font("Verdana", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204))); + this.FrpHISIUnlock.ForeColor = System.Drawing.Color.White; + this.FrpHISIUnlock.Location = new System.Drawing.Point(6, 328); + this.FrpHISIUnlock.Name = "FrpHISIUnlock"; + this.FrpHISIUnlock.RippleColor = System.Drawing.Color.Black; + this.FrpHISIUnlock.RoundingEnable = false; + this.FrpHISIUnlock.Size = new System.Drawing.Size(405, 28); + this.FrpHISIUnlock.TabIndex = 24; + this.FrpHISIUnlock.Text = "FRP Unlock"; + this.FrpHISIUnlock.TextHover = null; + this.FrpHISIUnlock.UseDownPressEffectOnClick = false; + this.FrpHISIUnlock.UseRippleEffect = true; + this.FrpHISIUnlock.UseVisualStyleBackColor = false; + this.FrpHISIUnlock.UseZoomEffectOnHover = false; + this.FrpHISIUnlock.Click += new System.EventHandler(this.FrpHISIUnlock_Click); + // + // UNLOCKHISI + // + this.UNLOCKHISI.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(35)))), ((int)(((byte)(37)))), ((int)(((byte)(90))))); + this.UNLOCKHISI.BackColorAdditional = System.Drawing.Color.Gray; + this.UNLOCKHISI.BackColorGradientEnabled = false; + this.UNLOCKHISI.BackColorGradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; + this.UNLOCKHISI.BorderColor = System.Drawing.Color.Tomato; + this.UNLOCKHISI.BorderColorEnabled = false; + this.UNLOCKHISI.BorderColorOnHover = System.Drawing.Color.Tomato; + this.UNLOCKHISI.BorderColorOnHoverEnabled = false; + this.UNLOCKHISI.Cursor = System.Windows.Forms.Cursors.Hand; + this.UNLOCKHISI.Font = new System.Drawing.Font("Verdana", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204))); + this.UNLOCKHISI.ForeColor = System.Drawing.Color.White; + this.UNLOCKHISI.Location = new System.Drawing.Point(6, 294); + this.UNLOCKHISI.Name = "UNLOCKHISI"; + this.UNLOCKHISI.RippleColor = System.Drawing.Color.Black; + this.UNLOCKHISI.RoundingEnable = false; + this.UNLOCKHISI.Size = new System.Drawing.Size(405, 28); + this.UNLOCKHISI.TabIndex = 23; + this.UNLOCKHISI.Text = "Download and Read/Write Unlock code"; + this.UNLOCKHISI.TextHover = null; + this.UNLOCKHISI.UseDownPressEffectOnClick = false; + this.UNLOCKHISI.UseRippleEffect = true; + this.UNLOCKHISI.UseVisualStyleBackColor = false; + this.UNLOCKHISI.UseZoomEffectOnHover = false; + this.UNLOCKHISI.Click += new System.EventHandler(this.UNLOCKHISI_Click); + // + // RebootFB + // + this.RebootFB.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(35)))), ((int)(((byte)(47)))), ((int)(((byte)(70))))); + this.RebootFB.BackColorAdditional = System.Drawing.Color.Gray; + this.RebootFB.BackColorGradientEnabled = false; + this.RebootFB.BackColorGradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; + this.RebootFB.BorderColor = System.Drawing.Color.Tomato; + this.RebootFB.BorderColorEnabled = false; + this.RebootFB.BorderColorOnHover = System.Drawing.Color.Tomato; + this.RebootFB.BorderColorOnHoverEnabled = false; + this.RebootFB.Cursor = System.Windows.Forms.Cursors.Hand; + this.RebootFB.Font = new System.Drawing.Font("Verdana", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204))); + this.RebootFB.ForeColor = System.Drawing.Color.White; + this.RebootFB.Location = new System.Drawing.Point(6, 100); + this.RebootFB.Name = "RebootFB"; + this.RebootFB.RippleColor = System.Drawing.Color.Black; + this.RebootFB.RoundingEnable = false; + this.RebootFB.Size = new System.Drawing.Size(405, 35); + this.RebootFB.TabIndex = 26; + this.RebootFB.Text = "Reboot (FASTBOOT)"; + this.RebootFB.TextHover = null; + this.RebootFB.UseDownPressEffectOnClick = false; + this.RebootFB.UseRippleEffect = true; + this.RebootFB.UseVisualStyleBackColor = false; + this.RebootFB.UseZoomEffectOnHover = false; + this.RebootFB.Click += new System.EventHandler(this.RebootFB_Click); + // + // FBLstHISI + // + this.FBLstHISI.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(35)))), ((int)(((byte)(37)))), ((int)(((byte)(90))))); + this.FBLstHISI.BackColorAdditional = System.Drawing.Color.Gray; + this.FBLstHISI.BackColorGradientEnabled = false; + this.FBLstHISI.BackColorGradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; + this.FBLstHISI.BorderColor = System.Drawing.Color.Tomato; + this.FBLstHISI.BorderColorEnabled = false; + this.FBLstHISI.BorderColorOnHover = System.Drawing.Color.Tomato; + this.FBLstHISI.BorderColorOnHoverEnabled = false; + this.FBLstHISI.Cursor = System.Windows.Forms.Cursors.Hand; + this.FBLstHISI.Font = new System.Drawing.Font("Verdana", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204))); + this.FBLstHISI.ForeColor = System.Drawing.Color.White; + this.FBLstHISI.Location = new System.Drawing.Point(6, 359); + this.FBLstHISI.Name = "FBLstHISI"; + this.FBLstHISI.RippleColor = System.Drawing.Color.Black; + this.FBLstHISI.RoundingEnable = false; + this.FBLstHISI.Size = new System.Drawing.Size(405, 28); + this.FBLstHISI.TabIndex = 19; + this.FBLstHISI.Text = "Write FBLOCK STATE"; + this.FBLstHISI.TextHover = null; + this.FBLstHISI.UseDownPressEffectOnClick = false; + this.FBLstHISI.UseRippleEffect = true; + this.FBLstHISI.UseVisualStyleBackColor = false; + this.FBLstHISI.UseZoomEffectOnHover = false; + this.FBLstHISI.Click += new System.EventHandler(this.FBLstHISI_Click); + // + // HISI_board_FB // - this.QcomUnlBTN.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(38)))), ((int)(((byte)(49))))); - this.QcomUnlBTN.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("QcomUnlBTN.BackgroundImage"))); - this.QcomUnlBTN.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom; - this.QcomUnlBTN.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.QcomUnlBTN.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(38)))), ((int)(((byte)(49))))); - this.QcomUnlBTN.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; - this.QcomUnlBTN.Location = new System.Drawing.Point(0, 129); - this.QcomUnlBTN.Margin = new System.Windows.Forms.Padding(2); - this.QcomUnlBTN.Name = "QcomUnlBTN"; - this.QcomUnlBTN.Size = new System.Drawing.Size(64, 49); - this.QcomUnlBTN.TabIndex = 31; - this.QcomUnlBTN.UseVisualStyleBackColor = false; - this.QcomUnlBTN.Click += new System.EventHandler(this.QcomUnlBTN_Click); + this.HISI_board_FB.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(35)))), ((int)(((byte)(47)))), ((int)(((byte)(70))))); + this.HISI_board_FB.BackColorAdditional = System.Drawing.Color.Gray; + this.HISI_board_FB.BackColorGradientEnabled = false; + this.HISI_board_FB.BackColorGradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; + this.HISI_board_FB.BorderColor = System.Drawing.Color.Tomato; + this.HISI_board_FB.BorderColorEnabled = false; + this.HISI_board_FB.BorderColorOnHover = System.Drawing.Color.Tomato; + this.HISI_board_FB.BorderColorOnHoverEnabled = false; + this.HISI_board_FB.Cursor = System.Windows.Forms.Cursors.Hand; + this.HISI_board_FB.Font = new System.Drawing.Font("Verdana", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204))); + this.HISI_board_FB.ForeColor = System.Drawing.Color.White; + this.HISI_board_FB.Location = new System.Drawing.Point(6, 59); + this.HISI_board_FB.Name = "HISI_board_FB"; + this.HISI_board_FB.RippleColor = System.Drawing.Color.Black; + this.HISI_board_FB.RoundingEnable = false; + this.HISI_board_FB.Size = new System.Drawing.Size(405, 35); + this.HISI_board_FB.TabIndex = 21; + this.HISI_board_FB.Text = "Write Key (FASTBOOT)"; + this.HISI_board_FB.TextHover = null; + this.HISI_board_FB.UseDownPressEffectOnClick = false; + this.HISI_board_FB.UseRippleEffect = true; + this.HISI_board_FB.UseVisualStyleBackColor = false; + this.HISI_board_FB.UseZoomEffectOnHover = false; + this.HISI_board_FB.Click += new System.EventHandler(this.HISI_board_FB_Click); // - // HomeTag + // RdHISIinfo // - this.HomeTag.Cursor = System.Windows.Forms.Cursors.Default; - this.HomeTag.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.HomeTag.Font = new System.Drawing.Font("Verdana", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204))); - this.HomeTag.ForeColor = System.Drawing.Color.MintCream; - this.HomeTag.ImeMode = System.Windows.Forms.ImeMode.NoControl; - this.HomeTag.Location = new System.Drawing.Point(67, 67); - this.HomeTag.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); - this.HomeTag.Name = "HomeTag"; - this.HomeTag.RightToLeft = System.Windows.Forms.RightToLeft.No; - this.HomeTag.Size = new System.Drawing.Size(165, 49); - this.HomeTag.TabIndex = 30; - this.HomeTag.Text = "Home"; - this.HomeTag.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + this.RdHISIinfo.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(35)))), ((int)(((byte)(47)))), ((int)(((byte)(70))))); + this.RdHISIinfo.BackColorAdditional = System.Drawing.Color.Gray; + this.RdHISIinfo.BackColorGradientEnabled = false; + this.RdHISIinfo.BackColorGradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; + this.RdHISIinfo.BorderColor = System.Drawing.Color.Tomato; + this.RdHISIinfo.BorderColorEnabled = false; + this.RdHISIinfo.BorderColorOnHover = System.Drawing.Color.Tomato; + this.RdHISIinfo.BorderColorOnHoverEnabled = false; + this.RdHISIinfo.Cursor = System.Windows.Forms.Cursors.Hand; + this.RdHISIinfo.Font = new System.Drawing.Font("Verdana", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204))); + this.RdHISIinfo.ForeColor = System.Drawing.Color.WhiteSmoke; + this.RdHISIinfo.Location = new System.Drawing.Point(6, 18); + this.RdHISIinfo.Name = "RdHISIinfo"; + this.RdHISIinfo.RippleColor = System.Drawing.Color.Black; + this.RdHISIinfo.RoundingEnable = false; + this.RdHISIinfo.Size = new System.Drawing.Size(405, 35); + this.RdHISIinfo.TabIndex = 15; + this.RdHISIinfo.Text = "Read Info (FASTBOOT)"; + this.RdHISIinfo.TextHover = null; + this.RdHISIinfo.UseDownPressEffectOnClick = false; + this.RdHISIinfo.UseRippleEffect = true; + this.RdHISIinfo.UseVisualStyleBackColor = false; + this.RdHISIinfo.UseZoomEffectOnHover = false; + this.RdHISIinfo.Click += new System.EventHandler(this.RdHISIinfo_Click); // - // BURGBTN + // SelectKFirmw // - this.BURGBTN.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(33)))), ((int)(((byte)(47)))), ((int)(((byte)(60))))); - this.BURGBTN.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("BURGBTN.BackgroundImage"))); - this.BURGBTN.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom; - this.BURGBTN.Dock = System.Windows.Forms.DockStyle.Top; - this.BURGBTN.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.BURGBTN.Location = new System.Drawing.Point(0, 0); - this.BURGBTN.Margin = new System.Windows.Forms.Padding(2); - this.BURGBTN.MaximumSize = new System.Drawing.Size(240, 50); - this.BURGBTN.MinimumSize = new System.Drawing.Size(65, 45); - this.BURGBTN.Name = "BURGBTN"; - this.BURGBTN.Size = new System.Drawing.Size(68, 50); - this.BURGBTN.TabIndex = 0; - this.BURGBTN.UseVisualStyleBackColor = false; - this.BURGBTN.Click += new System.EventHandler(this.BURGBTN_Click); + this.SelectKFirmw.AutoSize = true; + this.SelectKFirmw.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(55)))), ((int)(((byte)(47)))), ((int)(((byte)(60))))); + this.SelectKFirmw.BackColorAdditional = System.Drawing.Color.Gray; + this.SelectKFirmw.BackColorGradientEnabled = false; + this.SelectKFirmw.BackColorGradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; + this.SelectKFirmw.BorderColor = System.Drawing.Color.Tomato; + this.SelectKFirmw.BorderColorEnabled = false; + this.SelectKFirmw.BorderColorOnHover = System.Drawing.Color.Tomato; + this.SelectKFirmw.BorderColorOnHoverEnabled = false; + this.SelectKFirmw.Cursor = System.Windows.Forms.Cursors.Hand; + this.SelectKFirmw.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204))); + this.SelectKFirmw.ForeColor = System.Drawing.Color.White; + this.SelectKFirmw.Location = new System.Drawing.Point(422, 19); + this.SelectKFirmw.Margin = new System.Windows.Forms.Padding(2); + this.SelectKFirmw.Name = "SelectKFirmw"; + this.SelectKFirmw.RippleColor = System.Drawing.Color.Black; + this.SelectKFirmw.RoundingEnable = false; + this.SelectKFirmw.Size = new System.Drawing.Size(65, 25); + this.SelectKFirmw.TabIndex = 28; + this.SelectKFirmw.Text = "Select"; + this.SelectKFirmw.TextHover = null; + this.SelectKFirmw.UseDownPressEffectOnClick = false; + this.SelectKFirmw.UseRippleEffect = true; + this.SelectKFirmw.UseVisualStyleBackColor = false; + this.SelectKFirmw.UseZoomEffectOnHover = false; + this.SelectKFirmw.Click += new System.EventHandler(this.SelectKFirmw_Click); // - // button12 + // nButton1 // - this.button12.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(38)))), ((int)(((byte)(41))))); - this.button12.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.button12.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204))); - this.button12.ForeColor = System.Drawing.Color.IndianRed; - this.button12.Location = new System.Drawing.Point(825, 643); - this.button12.Margin = new System.Windows.Forms.Padding(2); - this.button12.Name = "button12"; - this.button12.Size = new System.Drawing.Size(136, 28); - this.button12.TabIndex = 4; - this.button12.Text = "CANCEL/RESET"; - this.button12.UseVisualStyleBackColor = false; - this.button12.Click += new System.EventHandler(this.button12_Click); + this.nButton1.AutoSize = true; + this.nButton1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(55)))), ((int)(((byte)(47)))), ((int)(((byte)(60))))); + this.nButton1.BackColorAdditional = System.Drawing.Color.Gray; + this.nButton1.BackColorGradientEnabled = false; + this.nButton1.BackColorGradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; + this.nButton1.BorderColor = System.Drawing.Color.Tomato; + this.nButton1.BorderColorEnabled = false; + this.nButton1.BorderColorOnHover = System.Drawing.Color.Tomato; + this.nButton1.BorderColorOnHoverEnabled = false; + this.nButton1.Cursor = System.Windows.Forms.Cursors.Hand; + this.nButton1.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204))); + this.nButton1.ForeColor = System.Drawing.Color.White; + this.nButton1.Location = new System.Drawing.Point(336, 18); + this.nButton1.Margin = new System.Windows.Forms.Padding(2); + this.nButton1.Name = "nButton1"; + this.nButton1.RippleColor = System.Drawing.Color.Black; + this.nButton1.RoundingEnable = false; + this.nButton1.Size = new System.Drawing.Size(65, 25); + this.nButton1.TabIndex = 37; + this.nButton1.Text = "Select"; + this.nButton1.TextHover = null; + this.nButton1.UseDownPressEffectOnClick = false; + this.nButton1.UseRippleEffect = true; + this.nButton1.UseVisualStyleBackColor = false; + this.nButton1.UseZoomEffectOnHover = false; // - // PortFindUpd + // BypathAuthMTKBTN // - this.PortFindUpd.Enabled = true; - this.PortFindUpd.Interval = 10000; - this.PortFindUpd.Tick += new System.EventHandler(this.Searching); + this.BypathAuthMTKBTN.BackColor = System.Drawing.Color.Tomato; + this.BypathAuthMTKBTN.BackColorAdditional = System.Drawing.Color.Gray; + this.BypathAuthMTKBTN.BackColorGradientEnabled = false; + this.BypathAuthMTKBTN.BackColorGradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; + this.BypathAuthMTKBTN.BorderColor = System.Drawing.Color.Tomato; + this.BypathAuthMTKBTN.BorderColorEnabled = false; + this.BypathAuthMTKBTN.BorderColorOnHover = System.Drawing.Color.Tomato; + this.BypathAuthMTKBTN.BorderColorOnHoverEnabled = false; + this.BypathAuthMTKBTN.Cursor = System.Windows.Forms.Cursors.Hand; + this.BypathAuthMTKBTN.Font = new System.Drawing.Font("Verdana", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204))); + this.BypathAuthMTKBTN.ForeColor = System.Drawing.Color.White; + this.BypathAuthMTKBTN.Location = new System.Drawing.Point(5, 15); + this.BypathAuthMTKBTN.Margin = new System.Windows.Forms.Padding(2); + this.BypathAuthMTKBTN.Name = "BypathAuthMTKBTN"; + this.BypathAuthMTKBTN.RippleColor = System.Drawing.Color.Beige; + this.BypathAuthMTKBTN.RoundingEnable = false; + this.BypathAuthMTKBTN.Size = new System.Drawing.Size(395, 37); + this.BypathAuthMTKBTN.TabIndex = 18; + this.BypathAuthMTKBTN.Text = "Not Work"; + this.BypathAuthMTKBTN.TextHover = null; + this.BypathAuthMTKBTN.UseDownPressEffectOnClick = false; + this.BypathAuthMTKBTN.UseRippleEffect = true; + this.BypathAuthMTKBTN.UseVisualStyleBackColor = false; + this.BypathAuthMTKBTN.UseZoomEffectOnHover = false; // - // IdentifyBTN + // BypAuBTN // - this.IdentifyBTN.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(38)))), ((int)(((byte)(41))))); - this.IdentifyBTN.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.IdentifyBTN.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204))); - this.IdentifyBTN.ForeColor = System.Drawing.Color.MediumSpringGreen; - this.IdentifyBTN.Location = new System.Drawing.Point(965, 643); - this.IdentifyBTN.Margin = new System.Windows.Forms.Padding(2); - this.IdentifyBTN.Name = "IdentifyBTN"; - this.IdentifyBTN.Size = new System.Drawing.Size(309, 28); - this.IdentifyBTN.TabIndex = 32; - this.IdentifyBTN.Text = "Detect"; - this.IdentifyBTN.UseVisualStyleBackColor = false; - this.IdentifyBTN.Click += new System.EventHandler(this.IdentifyBTN_Click); + this.BypAuBTN.BackColor = System.Drawing.Color.Tomato; + this.BypAuBTN.BackColorAdditional = System.Drawing.Color.Gray; + this.BypAuBTN.BackColorGradientEnabled = false; + this.BypAuBTN.BackColorGradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal; + this.BypAuBTN.BorderColor = System.Drawing.Color.Tomato; + this.BypAuBTN.BorderColorEnabled = false; + this.BypAuBTN.BorderColorOnHover = System.Drawing.Color.Tomato; + this.BypAuBTN.BorderColorOnHoverEnabled = false; + this.BypAuBTN.Cursor = System.Windows.Forms.Cursors.Hand; + this.BypAuBTN.Font = new System.Drawing.Font("Verdana", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204))); + this.BypAuBTN.ForeColor = System.Drawing.Color.White; + this.BypAuBTN.Location = new System.Drawing.Point(5, 15); + this.BypAuBTN.Margin = new System.Windows.Forms.Padding(2); + this.BypAuBTN.Name = "BypAuBTN"; + this.BypAuBTN.RippleColor = System.Drawing.Color.Beige; + this.BypAuBTN.RoundingEnable = false; + this.BypAuBTN.Size = new System.Drawing.Size(308, 37); + this.BypAuBTN.TabIndex = 18; + this.BypAuBTN.Text = " Not Work"; + this.BypAuBTN.TextHover = null; + this.BypAuBTN.UseDownPressEffectOnClick = false; + this.BypAuBTN.UseRippleEffect = true; + this.BypAuBTN.UseVisualStyleBackColor = false; + this.BypAuBTN.UseZoomEffectOnHover = false; + this.BypAuBTN.Click += new System.EventHandler(this.BypAuBTN_Click); // // PGG // @@ -2538,8 +2555,6 @@ private void InitializeComponent() this.Gbox.ResumeLayout(false); this.QCOM1.ResumeLayout(false); this.groupBox10.ResumeLayout(false); - this.ACTBOX.ResumeLayout(false); - this.SLDEV.ResumeLayout(false); this.groupBox7.ResumeLayout(false); this.GLOADER.ResumeLayout(false); this.GLOADER.PerformLayout(); @@ -2572,6 +2587,7 @@ private void InitializeComponent() this.groupBox13.ResumeLayout(false); this.groupBox13.PerformLayout(); this.BURG.ResumeLayout(false); + this.ACTBOX.ResumeLayout(false); this.ResumeLayout(false); this.PerformLayout(); @@ -2683,7 +2699,6 @@ private void InitializeComponent() private UI.NButton nButton1; private System.Windows.Forms.TextBox textBox1; public System.Windows.Forms.CheckBox AutoLdr; - public System.Windows.Forms.ComboBox LoaderBox; private System.Windows.Forms.Label TUTR2; public System.Windows.Forms.ComboBox IndexiesOEMdata; private UI.NButton FrpHISIUnlock; @@ -2701,7 +2716,6 @@ private void InitializeComponent() private UI.NButton SelectKFirmw; private System.Windows.Forms.TextBox KirinFirmPath; private System.Windows.Forms.GroupBox PTOFIRM2; - private System.Windows.Forms.GroupBox SLDEV; private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn1; private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn3; private System.Windows.Forms.GroupBox groupBox16; @@ -2712,7 +2726,10 @@ private void InitializeComponent() private System.Windows.Forms.Button ErasePA2; private System.Windows.Forms.Button ClrD; private System.Windows.Forms.Label label1; - private System.Windows.Forms.GroupBox ACTBOX; private System.Windows.Forms.CheckBox RbCheck; + private System.Windows.Forms.Label SLDEV; + private System.Windows.Forms.GroupBox ACTBOX; + private System.Windows.Forms.Label label4; + public System.Windows.Forms.ComboBox LoaderBox; } } \ No newline at end of file diff --git a/HuaweiUnlock/Window.cs b/HuaweiUnlock/Window.cs index 871526d..9cdf7b2 100644 --- a/HuaweiUnlock/Window.cs +++ b/HuaweiUnlock/Window.cs @@ -1,22 +1,19 @@ -using System; -using System.Windows.Forms; -using System.IO; +using HuaweiUnlocker.DIAGNOS; +using HuaweiUnlocker.TOOLS; +using HuaweiUnlocker.UI; +using Ionic.Zip; +using System; using System.Collections.Generic; -using static HuaweiUnlocker.FlashTool.FlashToolQClegacy; -using static HuaweiUnlocker.LangProc; using System.ComponentModel; -using System.Net; -using Ionic.Zip; -using HuaweiUnlocker.DIAGNOS; +using System.Diagnostics; +using System.IO; using System.Linq; -using HuaweiUnlocker.FlashTool; -using HuaweiUnlocker.TOOLS; -using HuaweiUnlocker.UI; -using System.Threading.Tasks; +using System.Net; using System.Threading; -using System.Diagnostics; -using System.Text; -using Org.BouncyCastle.Utilities.Encoders; +using System.Threading.Tasks; +using System.Windows.Forms; +using static HuaweiUnlocker.FlashTool.FlashToolQClegacy; +using static HuaweiUnlocker.LangProc; namespace HuaweiUnlocker { @@ -323,16 +320,16 @@ private void RdGPT_Click(object sender, EventArgs e) private void PARTLIST_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { - if (PARTLIST.Rows.Count > 0) + if (PARTLIST.Rows.Count > 0 || KirinFiles.Rows.Count > 0) { - PARTLIST.Enabled = false; + KirinFiles.Enabled = PARTLIST.Enabled = false; string partition = "NaN"; - if (Tab.SelectedIndex == 2) + if (Tab.SelectedIndex == 2 & PARTLIST.Rows.Count > 0) { partition = PARTLIST.CurrentRow.Cells[0].Value.ToString(); WHAT.Visible = WHAT.Enabled = true; } - else + if (Tab.SelectedIndex != 2 & KirinFiles.Rows.Count > 0) { partition = KirinFiles.CurrentRow.Cells[0].Value.ToString(); WHAT2.Visible = WHAT2.Enabled = true; @@ -346,9 +343,9 @@ private void PARTLIST_CellDoubleClick(object sender, DataGridViewCellEventArgs e private void button7_Click(object sender, EventArgs e) { if (Tab.SelectedIndex == 2) - WHAT.Visible = WHAT.Enabled = true; + WHAT.Visible = WHAT.Enabled = false; else - WHAT2.Visible = WHAT2.Enabled = true; + WHAT2.Visible = WHAT2.Enabled = false; KirinFiles.Enabled = PARTLIST.Enabled = true; } @@ -1117,7 +1114,7 @@ private void FlashUKIRINBtn_Click(object sender, EventArgs e) if (HISI.FBLOCK) { LOG(2, "HISIInfoS"); - return; + LOG(0, "Trying to continue"); } if (DeviceInfo.Partitions.Count <= 1) { @@ -1198,6 +1195,8 @@ private void WritePA2_Click(object sender, EventArgs e) OpenFileDialog file = new OpenFileDialog(); if (file.ShowDialog() == DialogResult.OK) { + if (!HISI.IsDeviceConnected()) HISI.fb.Connect(10); + if (!HISI.IsDeviceConnected()) return; LOG(0, "Writer", file.FileName); HISI.fb.UploadData(file.FileName); } diff --git a/HuaweiUnlock/Window.resx b/HuaweiUnlock/Window.resx index d51f752..57ba298 100644 --- a/HuaweiUnlock/Window.resx +++ b/HuaweiUnlock/Window.resx @@ -6436,6 +6436,9 @@ 17, 17 + + 25 + AAABAAEAAAAAAAEAIACIDAAAFgAAAIlQTkcNChoKAAAADUlIRFIAAAEAAAABAAgAAAAAeRn3ugAAAAFv