Skip to content

Commit

Permalink
V25F
Browse files Browse the repository at this point in the history
  • Loading branch information
werasik2aa authored Jan 3, 2024
1 parent 222e05d commit 2564f24
Show file tree
Hide file tree
Showing 12 changed files with 576 additions and 996 deletions.
77 changes: 77 additions & 0 deletions HuaweiUnlock/DIAGNOS/DataS.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,82 @@ public static string GetStatusStr(byte[] buff)
if (buff[0] == 19 || buff[0] == 21) return "[ERROR] Acces Denied or Command Wrong";
return "[INFO] Success";
}
public static string IdentifyCPUbyID(string id)
{
switch (id)
{
case "009F00E1": return "APQ8056";
case "009710E1": return "APQ8056";
case "007190E1": return "APQ8056";
case "009830E1": return "APQ8076";
case "009D00E1": return "APQ8076";
case "009000E1": return "APQ8084";
case "009010E1": return "APQ8084";
case "009300E1": return "APQ8092";
case "009630E1": return "APQ8092";
case "008000E1": return "MSM8226";
case "009150E1": return "MSM8226";
case "007210E1": return "MSM8930";
case "0072C0E1": return "MSM8930";
case "0090B0E1": return "MSM8939";
case "050E10E1": return "MSM8939";
case "000460E1": return "MSM8953";
case "F00460E1": return "MSM8953";
case "009700E1": return "MSM8956";
case "009B00E1": return "MSM8956";
case "007B00E1": return "MSM8974";
case "007B20E1": return "MSM8974";
case "007B40E1": return "MSM8974AB";
case "007BA0E1": return "MSM8974AB";
case "006B10E1": return "MSM8974AC";
case "007B60E1": return "MSM8974AC";
case "009640E1": return "MSM8992";
case "009690E1": return "MSM8992";
case "000630E1": return "MSM8996AU";
case "0006F0E1": return "MSM8996AU";
case "1006F0E1": return "MSM8996AU";
case "4006F0E1": return "MSM8996AU";
case "30020000": return "MSM8998";
case "0005E0E1": return "MSM8998";
case "00FFF0E1": return "MSM8998";
case "000020E1": return "MSM8998";
case "30070000": return "SDM630";
case "0007E0E1": return "SDM630";
case "000AC0E1": return "SDM636";
case "000CC0E1": return "SDM636";
case "F00CC0E1": return "SDM636";
case "30060000": return "SDM660";
case "0008C0E1": return "SDM660";
case "0009C0E1": return "SDM660";
case "0007D0E1": return "SDM660";
case "001080E1": return "SDM712";
case "60040000": return "SDM712";
case "60000000": return "SDM845";
case "0008B0E1": return "SDM845";
//MAIN HUAWEI
case "0x009600e1": return "MSM8909";
case "0x000460e1": return "MSM8953";
case "0x0091b0e1": return "MSM8929";
case "0x006220e1": return "MSM7227A";
case "0x009470e1": return "MSM8996";
case "0x009900e1": return "MSM8976";
case "0x009b00e1": return "MSM8976";
case "0x008A30E1": return "MSM8930";
case "0x0004f0e1": return "MSM8937";
case "0x0090b0e1": return "MSM8936";
case "0x009180e1": return "MSM8928";
case "0x008140e1": return "MSM8x10";
case "0x008050e2": return "MSM8926";
case "0x0005f0e1": return "MSM8996";
case "0x007B80E1": return "MSM8974";
case "0x009400e1": return "MSM8994";
case "0x008150e1": return "MSM8x10";
case "0x008050e1": return "MSM8926";
case "0x000560e1": return "MSM8917";
case "0x007050e1": return "MSM8916";
case "0x008110e1": return "MSM8210";
default: return "Unknown";
}
}
}
}
29 changes: 17 additions & 12 deletions HuaweiUnlock/English.ini
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ MAIN1,IT'S FREE NO NEED PAY FOR THIS
MAIN2,Author: moongamer
MAIN3,This tool uses Board bootloader!
Tutr,Connect device via EDL (9008 mode)
Tutr2,1. Checked Raw Image -> Select DUMP.bin/n2. If Unchecked Raw Image -> Select Folder with rawprogram0.xml / patch0.xml and firmware data./n4. For easy repair gpt. Select gpt_both0.bin and flash it as Raw Image file.
Tutr2,1. Checked Raw Image -> Select DUMP.bin/n2. If Unchecked Raw Image -> Select any file in firmware directory. Xmls will be filled automatically./n4. For easy repair gpt. Select gpt_both0.bin and flash it as Raw Image file.
SMAIN1,Qualcomm Huawei Flash Tool + Diag (c)
SMAIN2,This tool can Flash Firmware
SMAIN3,Select Files
Expand All @@ -25,7 +25,6 @@ NoFirmPath,Please select path to firmware!
PrcsUnl,Started unlock process
DPort,Device Disconnected and unavailable now!
CPort,Connected PORT:
CLabel,Connect Your Device
SelDev,SELECT DEVICE FIRST
DownloadFor,Downloading Unlock Files for:
SelPathToFGB,Select Path To Firmware:
Expand All @@ -37,11 +36,12 @@ DdBtnE,Unlock Dev
FlBtn,Flash Firmware
UnpBtn,Extract Firmware
FlashUnpBtn,Extract and Flash
DuBtn,Dump Firmware
DuBtn,Dump Firmware Memory
RdGPTBtn,Read GPT
WrRRGPTXMLBtn,Read from file rawprogram0.xml
RrRRGPTXMLBtn,Read from device rawprogram0.xml
WrRRGPTXMLBtn,Read from GPT-XXXXXX.bin File
RrRRGPTXMLBtn,Read from GPT of device
RrGPTXMLE,Error while writing rawprogram0.xml:
RrGPTXMLSPR,Creating rawprogram0.xml...:
RrGPTXMLS,Successfull written rawprogram0.xml:
ReadPA,Read Partition
WritePA,Write Partition
Expand Down Expand Up @@ -81,8 +81,11 @@ Unlocker,Trying to unlock:
Eraser,Trying to Erase:
EraserD,Trying to Erase UserData!
Writer,Trying to Write:
MarkUpGPT,Markup partition 0 as bootable
EwRGPT,Failed to write gpt:
EwRGPT2,Failed to Markup partition 0 as bootable. Maybe EMMC broken
IwRGPT,GPT Successfull rewritten!
IwRGPT2,GPT Set active partition 0 successfully!
ErPS,Erasing Partition:
EwPS,Partition Writing please wait:
EdPS,Started Partition Read:
Expand Down Expand Up @@ -113,7 +116,7 @@ ERR_ReadGPTFile,you selected wrong or unsupported GPT.bin.
ERR_ReadGPTFile2,please select path to save .xml or to GPT_####0.BIN.
SUCC_ReadGPT,GPT READED!
SUCC_FrpUnlock,FRP should be unlocked, no matter what is showed in fastboot!
sl,Selected:
PartSled,Selected:
Action,What to do with:
AreY,Вы хотите стереть этот раздел?
RbQC1,Reboot To 3-POINT Recovery Sucessfull!
Expand All @@ -132,12 +135,10 @@ TrRb,Trying to reboot to:
HomeTag,Home
BackupRestoreTag,Backup/restore
BackupRestoreTagSimpl,Backup/Restore
DiagTag,Diag tool
DiagTagRead,Read INFO
DiagTagUpgradeMode,Upgrade Mode
DiagTagReboot,Reboot or (board->FB)
DiagTagFactoryReset,Factory Reset
DiagTagSimpl,Diagnostic
UnlockTag,Unlock QCOM
UnlockSimpl,Unlock QCOM
UnlockTagHISI,Unlock KIRIN
Expand All @@ -155,15 +156,19 @@ ModelTag,Model:
BuildIdTag,Build number:
FBLOCK-Tag,FBLOCK state:
FBLOCKSetTag,Failed to set the FBLOCK prop. using the alternative method.
KEYTag,USERLOCK KEY:
WritingPropTAG,Writing prop:
WarnLarge,Reading file... It can take 5 or more minutes!
WarnUnl,Unlocked kernel for this device not compiled or not used. Your device may be partitionaly unlocked!
[HISI]
HISISelectCpu,Please select CPU
HISIReadFB,Read Info (FASTBOOT)
HISIWriteKirinFB,Write USERLOCK(FASTBOOT)
HISIWriteKirinBL,Read Unlock KEY from Device(TESTPOINT)
HISIWriteKirinBLD,Download unlock package of device
HISIWriteKirinBL,Read/Write Unlock KEY from Device(TESTPOINT)
HISIWriteKirinBLD,Download unlock package of device(TESTPOINT)
HISIWriteKirinFBL,Write FBLOCK state
HISIInfoS,*** FBLOCK is locked! *** \n In this FBLOCK State Not Allowed To do this
HISIInfoS,*** FBLOCK is locked! ***\nIn this FBLOCK State Not Allowed To do this
HISINewKey,[FASTBOOT] New USERLOCK key:
HISIOldKey,[FASTBOOT] Old USERLOCK code:
HISINewKeyErr,[Fastboot] Error while Writting/Reading Unlock code
HISINewKeyErr2,[Fastboot] Trying a second method...
HISIVerifyHash,Verifying images...
46 changes: 27 additions & 19 deletions HuaweiUnlock/FlashTool/FlashToolQClegacy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -207,42 +207,50 @@ public static bool UnlockFrp(string loader)
return false;
}
}
public static async void FromEDLReboot()
{
Progress(2);
string command = "Tools\\fh_loader.exe";
string subcommandr = "--port=\\\\.\\" + DeviceInfo.Port.ComName + " --reset --showpercentagecomplete --zlpawarehost=1 --noprompt --noprompt";
//final set active
LOG(0, "MarkUpGPT");
if (!SyncRUN(command, subcommandr))
LOG(2, "EwRGPT2");
else
LOG(0, "IwRGPT2");
}
public static async void FlashPartsXml(string rawxml, string patchxml, string loader, string path)
{
CurTask = Task.Run(() =>
{
Progress(2);
string command = "Tools\\fh_loader.exe";
string subcommand = "--port=\\\\.\\" + DeviceInfo.Port.ComName + " --sendxml=" + '"' + rawxml + '"' + " --search_path=" + '"' + path + '"';
string subcommandp = "--port=\\\\.\\" + DeviceInfo.Port.ComName + " --sendxml=" + '"' + patchxml + '"' + " --search_path=" + '"' + path + '"';
string subcommandr = "--port=\\\\.\\" + DeviceInfo.Port.ComName + " --showpercentagecomplete --zlpawarehost=1 --noprompt --reset";
string subcommand = "--port=\\\\.\\" + DeviceInfo.Port.ComName + " --showpercentagecomplete --zlpawarehost=1 --noprompt --sendxml=" + '"' + rawxml + '"' + " --search_path=" + '"' + path + '"';
string subcommandp = "--port=\\\\.\\" + DeviceInfo.Port.ComName + " --showpercentagecomplete --zlpawarehost=1 --noprompt --sendxml=" + '"' + patchxml + '"' + " --search_path=" + '"' + path + '"';
string subcommandf = "--port=\\\\.\\" + DeviceInfo.Port.ComName + " --showpercentagecomplete --zlpawarehost=1 --noprompt --setactivepartition=0";
if (debug) LOG(-1, "===Flash Partitions XML===" + newline + newline);
if (!LoadLoader(loader)) { DeviceInfo.loadedhose = false; LOG(2, "Fail"); CurTask.Dispose(); }
try
{
Progress(0);
LOG(0, "Flasher", path);
LOG(0, "Info: ", patchxml);
if (!String.IsNullOrEmpty(patchxml))
if (!String.IsNullOrEmpty(patchxml) & File.Exists(patchxml))
{
if (!File.Exists(patchxml))
LOG(1, "NotFoundF", patchxml);
else
if (!SyncRUN(command, subcommandp))
LOG(2, "EwRGPT", patchxml);
else
LOG(0, "IwRGPT");
}
LOG(0, "Info", rawxml);
if (!String.IsNullOrEmpty(rawxml))
{
if (!File.Exists(rawxml))
LOG(1, "NotFoundF", rawxml);
else
if (!SyncRUN(command, subcommand))
LOG(2, "ErrXML2", rawxml);
else
LOG(0, "RrGPTXMLS");
LOG(0, "IwRGPT");
}
if (String.IsNullOrEmpty(rawxml) || !File.Exists(rawxml))
return !LOG(1, "NotFoundF", rawxml);
if (!SyncRUN(command, subcommand))
LOG(2, "ErrXML2", rawxml);
else
LOG(0, "RrGPTXMLS");
return true;
}
catch (Exception e)
Expand Down Expand Up @@ -277,7 +285,7 @@ public static async void FlashPartsRaw(string loader, string file)
{
Progress(2);
string command = "Tools\\fh_loader.exe";
string subcommand = " --port=\\\\.\\" + DeviceInfo.Port.ComName + " --sendimage=" + '"' + file + '"' + " --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=eMMC";
string subcommand = " --port=\\\\.\\" + DeviceInfo.Port.ComName + " --sendimage=" + '"' + file + '"' + " --showpercentagecomplete --zlpawarehost=1 --noprompt --memoryname=eMMC";
if (debug) LOG(-1, "===Flash Partitions RAW===" + newline + newline);
if (!LoadLoader(loader)) { DeviceInfo.loadedhose = false; LOG(2, "Fail"); CurTask.Dispose(); }
try
Expand Down
2 changes: 1 addition & 1 deletion HuaweiUnlock/HuaweiUnlock.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,10 @@
<Compile Include="DIAGNOS\OemInfoTool.cs" />
<Compile Include="FlashTool\MTKFlash.cs" />
<Compile Include="DIAGNOS\Bootloader.cs" />
<Compile Include="TOOLS\Guide.cs" />
<Compile Include="TOOLS\Fastboot.cs" />
<Compile Include="TOOLS\ImageFlasher.cs" />
<Compile Include="TOOLS\HISI.cs" />
<Compile Include="TOOLS\ResourcesMNG.cs" />
<Compile Include="TOOLS\UpdateApp.cs" />
<Compile Include="TOOLS\UpdateUtil\EventStream.cs" />
<Compile Include="TOOLS\UpdateUtil\FileHeader.cs" />
Expand Down
Loading

0 comments on commit 2564f24

Please sign in to comment.