diff options
author | 2025-09-05 23:18:53 +0200 | |
---|---|---|
committer | 2025-09-05 23:18:53 +0200 | |
commit | d2cf14fa316b1637bbf3e347f674d6bcdfaa1a43 (patch) | |
tree | a4d841e3abc416e6d8daba9e7b709c6e9eeccdc4 /src | |
parent | 2914bf66cfb28c6d0fde43655dac05ea044d2907 (diff) | |
download | idevicerestore-d2cf14fa316b1637bbf3e347f674d6bcdfaa1a43.tar.gz idevicerestore-d2cf14fa316b1637bbf3e347f674d6bcdfaa1a43.tar.bz2 |
img4: Fix Ap,RestoreDCP2 -> rdc2 mapping
The component is called `Ap,RestoreDCP2` and not `RestoreDCP2`
Diffstat (limited to 'src')
-rw-r--r-- | src/img4.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -300,6 +300,7 @@ static const char *_img4_get_component_tag(const char *compname) { "Ap,RestoreANE2", "ran2" }, { "Ap,RestoreANE3", "ran3" }, { "Ap,RestoreCIO", "rcio" }, + { "Ap,RestoreDCP2", "rdc2", }, { "Ap,RestoreTMU", "rtmu" }, { "Ap,Scorpius", "scpf" }, { "Ap,SystemVolumeCanonicalMetadata", "msys" }, @@ -356,7 +357,6 @@ static const char *_img4_get_component_tag(const char *compname) { "RecoveryMode", "recm" }, { "RestoreANS", "rans" }, { "RestoreDCP", "rdcp" }, - { "RestoreDCP2", "rdc2", }, { "RestoreDeviceTree", "rdtr" }, { "RestoreExtDCP", "recp" }, { "RestoreKernelCache", "rkrn" }, @@ -441,6 +441,8 @@ int img4_stitch_component(const char* component_name, const void* component_data memcpy((void*)tag, "rtmu", 4); } else if (strcmp(component_name, "Ap,RestoreCIO") == 0) { memcpy((void*)tag, "rcio", 4); + } else if (strcmp(component_name, "Ap,RestoreDCP2") == 0) { + memcpy((void*)tag, "rdc2", 4); } else if (strcmp(component_name, "Ap,DCP2") == 0) { memcpy((void*)tag, "dcp2", 4); } else if (strcmp(component_name, "Ap,RestoreSecureM3Firmware") == 0) { |