TB520FU 이고 내수롬에서 글로벌롬으로 올리다 벽돌되어 있다가
툴을 만나게 되어 해보다가 안되어 질문 올립니다
--- Logging enabled. Output will be saved to log_20251112_184428.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
=============================================================
[!] Skipping ADB connection as requested.
[!] Skipping device model check as requested.
[!] Skipping active slot check as requested.
--- [STEP 2/9] Device Info Check SUCCESS ---
[*] Device will boot back to system if needed. Waiting for ADB connection again...
[!] Skipping ADB connection as requested.
[+] 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.
--- 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, vbmeta_system
--- Starting Dump Process (fh_loader) ---
[+] 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: COM5
--- [EDL Setup] Device Connected ---
[*] Uploading programmer via QSaharaServer to COM5...
[*] Extended dump targets: devinfo, persist, boot, vbmeta_system
[*] 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'...
> Found info in rawprogram4.xml: LUN=4, Start=112006
[*] Dumping -> LUN:4, Start:112006, Num:24576...
[+] Successfully read 'boot' to 'boot.img'.
[*] Waiting 5 seconds for stability...
[*] Preparing to dump 'vbmeta_system'...
[!] Error: Could not find partition info for 'vbmeta_system' in XMLs.
[!] Skipping 'vbmeta_system': Partition 'vbmeta_system' not found in XMLs
[*] 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_184458'.
[*] Cleaning up old 'output_dp' folder...
[*] Detecting current region codes in images...
[+] Detection Result: persist: KRXX, devinfo: KRXX
Do you want to change the region code? (y/n)
Enter choice:
--- 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: China (CN)
[*] Starting patch process (New Region: CN)...
--- Processing 'devinfo.img' ---
Found 'KRXX' pattern 1 time(s). Replacing with 'CNXX'...
[+] Patch successful! Saved as 'devinfo_modified.img'
--- Processing 'persist.img' ---
Found 'KRXX' pattern 3 time(s). Replacing with 'CNXX'...
[+] 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 ---
[!] Error extracting AVB info from dumps: Dumped boot/vbmeta images not found.
--- Status Check Complete: ERROR ---
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
CRITICAL ERROR: Anti-Rollback check failed!
Could not determine device security version.
Aborting process to prevent bricking.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
PROCESS HALTED BY SCRIPT: 1
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
--- Logging finished. Output saved to log_20251112_184428.txt ---
걍 패치된 vendor_boot.img와 vbmeta.img만 복사해서 RSA로 플래싱할때 덮어씌우셈
그게 안되어 벽돌 상태(패스트부트 계속)입니다 그래서 이방법하는데 이전도 그렇고 이방법도 그렇고 뭐가 잘못 된지 몰라 걱정입니다 hxd로 변조하고 했는데 안되었습니다 방법이 있을까요?
@글쓴 탭붕이(112.147) RSA 파일교체가 안되는거면 글로벌롬 그냥 플래싱하고 패스트부트 모드에서 패치된 두 이미지만 플래싱
그게 안되어 벽돌 상태(패스트부트 계속)입니다 그래서 이방법하는데 이전도 그렇고 이방법도 그렇고 뭐가 잘못 된지 몰라 걱정입니다 hxd로 변조하고 했는데 안되었습니다 방법이 있을까요?
국가코드를 중국-> 한국 이 아니라 반대로 한국 -> 중국 으로 바꾼거 같은데 KRXX -> CNXX로 바꾼거 보니까? 근데 롤백 fail 뜨는거면 상관없는 듯 한데
국가코드변경 말고 RSA로 롬만 다시 올리면 될 듯 한데
@탭붕이1(110.11) 오픈톡방 파줘봐 도와줄게