--- Logging enabled. Output will be saved to log_20251112_162303.txt ---
--- Command: patch_all_wipe ---
==========================================================
Starting Task: [Install ROW firmware (WIPE DATA)]...
==========================================================
--- [STEP 1/9] Cleaning up previous output folders ---
--- [WIPE MODE] Starting Automated Install & Flash ROW Firmware Process ---
=============================================================
STEP 2/9: Waiting for ADB Connection & Getting Device Info
=============================================================
--- WAITING FOR ADB DEVICE ---
[!] Please enable USB Debugging on your device, connect it via USB.
[!] A 'Allow USB debugging?' prompt will appear on your device.
[!] Please check 'Always allow from this computer' and tap 'OK'.
[+] ADB device connected.
[*] Getting device model via ADB...
[+] Found device model: TB520FU
[*] Getting active slot suffix via ADB...
[+] Found active slot suffix: _b
--- [STEP 2/9] Device Info Check SUCCESS ---
[*] Device will boot back to system if needed. Waiting for ADB connection again...
--- WAITING FOR ADB DEVICE ---
[!] Please enable USB Debugging on your device, connect it via USB.
[!] A 'Allow USB debugging?' prompt will appear on your device.
[!] Please check 'Always allow from this computer' and tap 'OK'.
[+] ADB device connected.
[+] ADB device connected.
--- [STEP 3/9] Waiting for RSA Firmware 'image' folder ---
[+] 'image' folder found.
=============================================================
STEP 4/9: Converting Firmware (PRC to ROW) & Validating Model
=============================================================
--- Checking for required files ---
[+] All dependencies are present.
--- Starting vendor_boot & vbmeta conversion process ---
[*] Cleaning up old folders...
--- Waiting for vendor_boot.img and vbmeta.img ---
--- Backing up original images ---
[+] Backup complete.
--- Starting PRC/ROW Conversion ---
Found '49524F57' pattern 4 time(s). Replacing...
Patch successful! Total 4 instance(s) replaced.
Saved as 'vendor_boot_prc.img'
[*] Verifying conversion result...
[+] Conversion to PRC successful.
--- Extracting image information ---
[Info] Parsed Flags: 0
[Info] Parsed 13 properties.
[Info] Parsed Flags: 0
[Info] Parsed 1 properties.
[+] Information extracted.
[*] Validating firmware against device model 'TB520FU'...
> Found firmware fingerprint: Lenovo/TB520FU/TB520FU:14/UKQ1.240826.001/ZUI_17.5.10.036_251023_ROW:user/release-keys
[+] Success: Device model 'TB520FU' found in firmware fingerprint.
--- Adding Hash Footer to vendor_boot ---
[+] Restoring 1 properties for vendor_boot.
[+] Restoring flags for vendor_boot: 0
--- Remaking vbmeta.img ---
[*] Verifying vbmeta key...
[+] Matched testkey_rsa4096.pem.
[*] Remaking 'vbmeta.img' using descriptors from backup...
--- Finalizing ---
[*] Renaming final images...
[*] Moving final images to 'output' folder...
[*] Moving backup files to 'backup' folder...
=============================================================
SUCCESS!
Final images have been saved to the 'output' folder.
=============================================================
--- [STEP 4/9] Firmware Conversion & Validation SUCCESS ---
=============================================================
STEP 5/9: Modifying XML Files
=============================================================
--- Starting XML Modification Process ---
--- Waiting for 'image' folder ---
[*] Created temporary 'working' folder.
[*] Decrypting *.x files and moving to 'working' folder...
Successfully decrypted. 71477 bytes
> Decrypted: contents.x -> contents.xml
Successfully decrypted. 6263 bytes
> Decrypted: patch0.x -> patch0.xml
Successfully decrypted. 6263 bytes
> Decrypted: patch1.x -> patch1.xml
Successfully decrypted. 6263 bytes
> Decrypted: patch2.x -> patch2.xml
Successfully decrypted. 6263 bytes
> Decrypted: patch3.x -> patch3.xml
Successfully decrypted. 6275 bytes
> Decrypted: patch4.x -> patch4.xml
Successfully decrypted. 6263 bytes
> Decrypted: patch5.x -> patch5.xml
Successfully decrypted. 3090 bytes
> Decrypted: provision_ufs40.x -> provision_ufs40.xml
Successfully decrypted. 5377 bytes
> Decrypted: rawprogram0.x -> rawprogram0.xml
Successfully decrypted. 497 bytes
> Decrypted: rawprogram0_BLANK_GPT.x -> rawprogram0_BLANK_GPT.xml
Successfully decrypted. 5912 bytes
> Decrypted: rawprogram0_WIPE_PARTITIONS.x -> rawprogram0_WIPE_PARTITIONS.xml
Successfully decrypted. 2478 bytes
> Decrypted: rawprogram1.x -> rawprogram1.xml
Successfully decrypted. 497 bytes
> Decrypted: rawprogram1_BLANK_GPT.x -> rawprogram1_BLANK_GPT.xml
Successfully decrypted. 2823 bytes
> Decrypted: rawprogram1_WIPE_PARTITIONS.x -> rawprogram1_WIPE_PARTITIONS.xml
Successfully decrypted. 2421 bytes
> Decrypted: rawprogram2.x -> rawprogram2.xml
Successfully decrypted. 497 bytes
> Decrypted: rawprogram2_BLANK_GPT.x -> rawprogram2_BLANK_GPT.xml
Successfully decrypted. 2824 bytes
> Decrypted: rawprogram2_WIPE_PARTITIONS.x -> rawprogram2_WIPE_PARTITIONS.xml
Successfully decrypted. 1859 bytes
> Decrypted: rawprogram3.x -> rawprogram3.xml
Successfully decrypted. 497 bytes
> Decrypted: rawprogram3_BLANK_GPT.x -> rawprogram3_BLANK_GPT.xml
Successfully decrypted. 2218 bytes
> Decrypted: rawprogram3_WIPE_PARTITIONS.x -> rawprogram3_WIPE_PARTITIONS.xml
Successfully decrypted. 22184 bytes
> Decrypted: rawprogram4.x -> rawprogram4.xml
Successfully decrypted. 497 bytes
> Decrypted: rawprogram4_BLANK_GPT.x -> rawprogram4_BLANK_GPT.xml
Successfully decrypted. 23545 bytes
> Decrypted: rawprogram4_WIPE_PARTITIONS.x -> rawprogram4_WIPE_PARTITIONS.xml
Successfully decrypted. 2410 bytes
> Decrypted: rawprogram5.x -> rawprogram5.xml
Successfully decrypted. 497 bytes
> Decrypted: rawprogram5_BLANK_GPT.x -> rawprogram5_BLANK_GPT.xml
Successfully decrypted. 2825 bytes
> Decrypted: rawprogram5_WIPE_PARTITIONS.x -> rawprogram5_WIPE_PARTITIONS.xml
Successfully decrypted. 10187 bytes
> Decrypted: rawprogram_save_persist_unsparse0.x -> rawprogram_save_persist_unsparse0.xml
Successfully decrypted. 10198 bytes
> Decrypted: rawprogram_unsparse0.x -> rawprogram_unsparse0.xml
[*] Modifying 'rawprogram_save_persist_unsparse0.xml'...
> [WIPE] Skipping metadata and userdata removal.
> Patched 'rawprogram_save_persist_unsparse0.xml' successfully.
[*] Deleting unnecessary XML files...
> Deleted: rawprogram_unsparse0.xml
> Deleted: rawprogram0_WIPE_PARTITIONS.xml
> Deleted: rawprogram1_WIPE_PARTITIONS.xml
> Deleted: rawprogram2_WIPE_PARTITIONS.xml
> Deleted: rawprogram3_WIPE_PARTITIONS.xml
> Deleted: rawprogram4_WIPE_PARTITIONS.xml
> Deleted: rawprogram5_WIPE_PARTITIONS.xml
> Deleted: rawprogram0_BLANK_GPT.xml
> Deleted: rawprogram1_BLANK_GPT.xml
> Deleted: rawprogram2_BLANK_GPT.xml
> Deleted: rawprogram3_BLANK_GPT.xml
> Deleted: rawprogram4_BLANK_GPT.xml
> Deleted: rawprogram5_BLANK_GPT.xml
[*] Moving modified XML files to 'output_xml'...
[+] Moved 15 modified XML file(s).
[*] Creating custom write XMLs for devinfo/persist...
[+] Created 'rawprogram_write_persist_unsparse0.xml' in 'output_xml'.
[+] Created 'rawprogram4_write_devinfo.xml' in 'output_xml'.
[*] Cleaned up temporary 'working' folder.
=============================================================
SUCCESS!
Modified XML files are ready in the 'output_xml'.
You can now run 'Flash EDL' (Menu 10).
=============================================================
--- [STEP 5/9] XML Modification SUCCESS ---
=============================================================
STEP 6/9: Dumping devinfo/persist for patching (fh_loader)
=============================================================
[*] Scheduled extra dumps for ARB check: boot_b, vbmeta_system_b
--- Starting Dump Process (fh_loader) ---
--- WAITING FOR ADB DEVICE ---
[!] Please enable USB Debugging on your device, connect it via USB.
[!] A 'Allow USB debugging?' prompt will appear on your device.
[!] Please check 'Always allow from this computer' and tap 'OK'.
[+] ADB device connected.
--- [EDL Setup] Rebooting to EDL Mode ---
[*] Attempting to reboot device to EDL mode via ADB...
[+] Reboot command sent. Please wait for the device to enter EDL mode.
[*] Waiting for 10 seconds for device to enter EDL mode...
--- [EDL Setup] Waiting for EDL Loader File ---
[+] Loader file 'xbl_s_devprg_ns.melf' found in 'image'.
--- WAITING FOR EDL DEVICE ---
[*] Checking for Qualcomm EDL (9008) device...
[+] Qualcomm EDL device found: COM7
--- [EDL Setup] Device Connected ---
[*] Uploading programmer via QSaharaServer to COM7...
[*] Extended dump targets: devinfo, persist, boot_b, vbmeta_system_b
[*] Preparing to dump 'devinfo'...
> Found info in rawprogram4.xml: LUN=4, Start=677222
[*] Dumping -> LUN:4, Start:677222, Num:1...
[+] Successfully read 'devinfo' to 'devinfo.img'.
[*] Waiting 5 seconds for stability...
[*] Preparing to dump 'persist'...
> Found info in rawprogram0.xml: LUN=0, Start=81800
[*] Dumping -> LUN:0, Start:81800, Num:8192...
[+] Successfully read 'persist' to 'persist.img'.
[*] Waiting 5 seconds for stability...
[*] Preparing to dump 'boot_b'...
> Found info in rawprogram4.xml: LUN=4, Start=454454
[*] Dumping -> LUN:4, Start:454454, Num:24576...
[+] Successfully read 'boot_b' to 'boot_b.img'.
[*] Waiting 5 seconds for stability...
[*] Preparing to dump 'vbmeta_system_b'...
> Found info in rawprogram0.xml: LUN=0, Start=5857688
[*] Dumping -> LUN:0, Start:5857688, Num:16...
[+] Successfully read 'vbmeta_system_b' to 'vbmeta_system_b.img'.
[*] Waiting 5 seconds for stability...
[*] Skipping reset as requested (Device remains in EDL).
--- Dump Process Finished ---
[*] Files saved to: backup
--- [STEP 6/9] Dump SUCCESS ---
=============================================================
STEP 7/9: Patching devinfo/persist
=============================================================
--- Starting devinfo & persist patching process ---
--- Waiting for devinfo.img / persist.img ---
[+] Files copied and backed up to 'backup_critical_20251112_162353'.
[*] Cleaning up old 'output_dp' folder...
[*] Detecting current region codes in images...
[+] Detection Result: persist: CNXX, devinfo: CNXX
[*] CN Region detected. Automatically proceeding to region selection...
--- SELECT NEW REGION CODE ---
------------------------------------------------------------------------------------------------------------------
1. Argentina (AR) 2. Armenia (AM) 3. Australia (AU)
4. Austria (AT) 5. Azerbaijan (AZ) 6. Bahrain (BH)
7. Belgium (BE) 8. Brazil (BR) 9. Bulgaria (BG)
10. Canada (CA) 11. Chile (CL) 12. China (CN)
13. Colombia (CO) 14. Costa Rica (CR) 15. Croatia (HR)
16. Cyprus (CY) 17. Czech Republic (CZ) 18. Denmark (DK)
19. Ecuador (EC) 20. Egypt (EG) 21. El Salvador (SV)
22. Estonia (EE) 23. Finland (FI) 24. France (FR)
25. Georgia (GE) 26. Germany (DE) 27. Ghana (GH)
28. Greece (GR) 29. Guatemala (GT) 30. Hong Kong (HK)
31. Hungary (HU) 32. Iceland (IS) 33. India (IN)
34. Indonesia (ID) 35. Israel (IL) 36. Italy (IT)
37. Japan (JP) 38. Jordan (JO) 39. Kazakhstan (KZ)
40. Kenya (KE) 41. Korea (KR) 42. Kuwait (KW)
43. Kyrgyzstan (KG) 44. Latvia (LV) 45. Lebanon (LB)
46. Lithuania (LT) 47. Malaysia (MY) 48. Mexico (MX)
49. Moldova (MD) 50. Morocco (MA) 51. Mozambique (MZ)
52. Netherlands (NL) 53. New Zealand (NZ) 54. Nigeria (NG)
55. Norway (NO) 56. Oman (OM) 57. Pakistan (PK)
58. Panama (PA) 59. Peru (PE) 60. Philippines (PH)
61. Poland (PL) 62. Portugal (PT) 63. Qatar (QA)
64. Romania (RO) 65. Russia (RU) 66. Saudi Arabia (SA)
67. Serbia (RS) 68. Singapore (SG) 69. Slovakia (SK)
70. Slovenia (SI) 71. South Africa (ZA) 72. Spain (ES)
73. Sweden (SE) 74. Switzerland (CH) 75. Taiwan (TW)
76. Tajikistan (TJ) 77. Tanzania (TZ) 78. Thailand (TH)
79. Tunisia (TN) 80. Turkey (TR) 81. Uganda (UG)
82. Ukraine (UA) 83. United Arab Emirates (AE) 84. United Kingdom (GB)
85. United States of America (US) 86. Uruguay (UY) 87. Uzbekistan (UZ)
88. Venezuela (VE) 89. Vietnam (VN)
------------------------------------------------------------------------------------------------------------------
Enter the number (1-89): [+] You selected: Korea (KR)
[*] Starting patch process (New Region: KR)...
--- Processing 'devinfo.img' ---
Found 'CNXX' pattern 1 time(s). Replacing with 'KRXX'...
[+] Patch successful! Saved as 'devinfo_modified.img'
--- Processing 'persist.img' ---
Found 'CNXX' pattern 3 time(s). Replacing with 'KRXX'...
[+] Patch successful! Saved as 'persist_modified.img'
Patching finished! Total 4 instance(s) replaced.
[*] Final images have been moved to 'output_dp' folder.
=============================================================
SUCCESS!
Modified images are ready in the 'output_dp' folder.
=============================================================
--- [STEP 7/9] Patching SUCCESS ---
=============================================================
STEP 8/9: Checking and Patching Anti-Rollback
=============================================================
[*] Using Dumped Images for ARB Check...
--- Anti-Rollback Status Check ---
--- Checking for required files ---
[+] All dependencies are present.
--- [STEP 1] Parsing Rollback Indices from DUMPED IMAGES ---
[*] Reading from: boot_b.img
[Info] Parsed Flags: 0
[Info] Parsed 4 properties.
[*] Reading from: vbmeta_system_b.img
[Info] Parsed Flags: 0
[Info] Parsed 12 properties.
> Current Device Boot Index: 1733356800
> Current Device VBMeta System Index: 1733356800
--- [STEP 2] Comparing New ROM Indices ---
[*] Extracting new ROM's rollback indices (from 'image' folder)...
[Info] Parsed Flags: 0
[Info] Parsed 4 properties.
[Info] Parsed Flags: 0
[Info] Parsed 10 properties.
> New ROM's Boot Index: 1754352000
> New ROM's VBMeta System Index: 1754352000
[*] Indices are different (higher or lower). Patching is REQUIRED.
--- Status Check Complete: NEEDS_PATCH ---
--- Anti-Rollback Patcher ---
--- Checking for required files ---
[+] All dependencies are present.
[*] Using pre-computed Anti-Rollback status...
--- [STEP 3] Patching New ROM ---
[*] Analyzing new boot.img...
[Info] Parsed Flags: 0
[Info] Parsed 4 properties.
> New index: 1754352000
[*] boot.img index is OK. Copying as is.
--------------------
[*] Analyzing new vbmeta_system.img...
[Info] Parsed Flags: 0
[Info] Parsed 10 properties.
> New index: 1754352000
[*] vbmeta_system.img index is OK. Copying as is.
=============================================================
SUCCESS!
Anti-rollback patched images are in 'output_anti_rollback'.
You can now run 'Write Anti-Rollback' (Menu 8).
=============================================================
--- [STEP 8/9] Anti-Rollback Check/Patch SUCCESS ---
=============================================================
[FINAL STEP 9/9] Flashing All Images via EDL
=============================================================
The device will now be flashed with all modified images.
--- Starting Full EDL Flash Process ---
[*] Copying patched files to 'image' folder (overwriting)...
> Copied contents of 'output' to 'image'.
> Copied contents of 'output_anti_rollback' to 'image'.
> Copied contents of 'output_xml' to 'image'.
> Copied contents of 'output_dp' to 'image'.
[+] Device is already in EDL mode. Skipping ADB reboot.
--- [EDL Setup] Waiting for EDL Loader File ---
[+] Loader file 'xbl_s_devprg_ns.melf' found in 'image'.
--- WAITING FOR EDL DEVICE ---
[*] Checking for Qualcomm EDL (9008) device...
[+] Qualcomm EDL device found: COM7
--- [EDL Setup] Device Connected ---
[*] Ensuring clean EDL state via System Reboot loop...
[*] Resetting device via fh_loader on COM7...
[*] Waiting for device to boot to [...]...
--- WAITING FOR ADB DEVICE ---
[!] Please enable USB Debugging on your device, connect it via USB.
[!] A 'Allow USB debugging?' prompt will appear on your device.
[!] Please check 'Always allow from this computer' and tap 'OK'.
[+] ADB device connected.
[*] Rebooting to EDL...
[*] Attempting to reboot device to EDL mode via ADB...
[+] Reboot command sent. Please wait for the device to enter EDL mode.
--- WAITING FOR EDL DEVICE ---
[*] Checking for Qualcomm EDL (9008) device...
[!] No Qualcomm EDL (9008) device found.
[!] Please connect your device in EDL mode.
[*] Waiting for Qualcomm EDL (9008) device... (Press Ctrl+C to cancel)
[*] Waiting for Qualcomm EDL (9008) device... (Press Ctrl+C to cancel)
[+] EDL device connected on COM7.
[+] Using 'rawprogram_write_persist_unsparse0.xml' for persist flash (Patched).
[+] Using 'rawprogram4_write_devinfo.xml' for devinfo flash (Patched).
--- [STEP 1] Flashing all images via rawprogram (fh_loader) ---
[*] STEP 1/2: Loading programmer with Qsaharaserver...
[*] Uploading programmer via QSaharaServer to COM7...
[*] STEP 2/2: Flashing firmware with fh_loader...
Error executing command: C:\Users\김유성\Desktop\LTBox\tools\fh_loader.exe --port=\\.\COM7 --search_path=C:\Users\김유성\Desktop\LTBox\image --sendxml=rawprogram1.xml,rawprogram2.xml,rawprogram3.xml,rawprogram4_write_devinfo.xml,rawprogram5.xml,rawprogram_write_persist_unsparse0.xml --sendxml=patch0.xml,patch1.xml,patch2.xml,patch3.xml,patch4.xml,patch5.xml --setactivepartition=1 --memoryname=UFS --showpercentagecomplete --zlpawarehost=1 --noprompt
Return code: 1
[!] An error occurred during main flash: Command '['C:\\Users\\김유성\\Desktop\\LTBox\\tools\\fh_loader.exe', '--port=\\\\.\\COM7', '--search_path=C:\\Users\\김유성\\Desktop\\LTBox\\image', '--sendxml=rawprogram1.xml,rawprogram2.xml,rawprogram3.xml,rawprogram4_write_devinfo.xml,rawprogram5.xml,rawprogram_write_persist_unsparse0.xml', '--sendxml=patch0.xml,patch1.xml,patch2.xml,patch3.xml,patch4.xml,patch5.xml', '--setactivepartition=1', '--memoryname=UFS', '--showpercentagecomplete', '--zlpawarehost=1', '--noprompt']' returned non-zero exit status 1.
[!] The device may be in an unstable state. Do not reboot manually.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
AN ERROR OCCURRED: Process Halted.
Error details: Command '['C:\\Users\\김유성\\Desktop\\LTBox\\tools\\fh_loader.exe', '--port=\\\\.\\COM7', '--search_path=C:\\Users\\김유성\\Desktop\\LTBox\\image', '--sendxml=rawprogram1.xml,rawprogram2.xml,rawprogram3.xml,rawprogram4_write_devinfo.xml,rawprogram5.xml,rawprogram_write_persist_unsparse0.xml', '--sendxml=patch0.xml,patch1.xml,patch2.xml,patch3.xml,patch4.xml,patch5.xml', '--setactivepartition=1', '--memoryname=UFS', '--showpercentagecomplete', '--zlpawarehost=1', '--noprompt']' returned non-zero exit status 1.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Process halted by script (e.g., file not found).
--- Logging finished. Output saved to log_20251112_162303.txt ---
뭐하다 벽돌됨
ㅋㅋ - dc App
라면 받침대 하나 늘었넼ㅋㅋ 살리고 싶으면 돠스좌한테 기프티콘 하나 드리고 문의드려봐라
ㅈ됐네 ;; ㅅㄱ
가보려잇 - dc App
이건 덤프 및 패치까지는 정상적인데 경로에 한글 들어가서 그런듯?
플래싱 자체를 아마 시작안했을거라 그냥 전원키 볼륨다운키 길게 눌러서 재시작
@ㅇㅇ 문제는 퀄컴 크러시덤프모드 화면이뜨는데 암것도 안되고있어요
@글쓴 탭붕이(222.104) 강제 재시작해도 크러시덤프 모드라는 소리면 위에 강제 재시작 트리거한 다음 화면 뜨기 전에 볼륨 증가 키 길게 누르면 edl 모드 진입됨
@ㅇㅇ 뭘해도 덤프가 뜨네요 ㅜㅜ
@글쓴 탭붕이(222.104) 그 상태여도 장치관리자에서 9008로 잡히는지 보셈
@ㅇㅇ 900e로 잡히네요
@글쓴 탭붕이(222.104) 강제 재시작 시도하면서 화면 잠깐 꺼질때 다른 버튼 떼고 볼륨 증가 키만 누르고 있으면 edl 모드로 가게 되어있으니(edl 모드도 화면 꺼져있어서 모를 수 있으니 장치관리자 보고 확인) 계속 시도해보셈
@ㅇㅇ 안되네요 ㅜㅜ 레노버 마크도 안뜨고 까만화면에서 바로 크러시덤프로 진입하네요
@ㅇㅇ 방전시키면 edl모드 살아난다는 말이 있어서 일단 방전 시켜봐야겠네요
윈도우 로그인 이름으로 한글 못쓰게 해야된다 진짜