summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Benjamin BOURGEAIS2021-02-22 22:15:54 +0100
committerGravatar Benjamin BOURGEAIS2021-05-08 14:16:50 +0200
commita777c657c956d6a350a8d089fe6e9e1e8f6e9bde (patch)
tree5e11a9d1d3c2afecaf262ccbf811b033c1d99684
parent4c154e82197039fd0991c69f563706bb17eb13ff (diff)
downloadidevicerestore-a777c657c956d6a350a8d089fe6e9e1e8f6e9bde.tar.gz
idevicerestore-a777c657c956d6a350a8d089fe6e9e1e8f6e9bde.tar.bz2
img4: Add new cases for the ASN1 label rewriting
-rw-r--r--src/img4.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/img4.c b/src/img4.c
index 5c2c47d..e0c30bd 100644
--- a/src/img4.c
+++ b/src/img4.c
@@ -409,6 +409,14 @@ int img4_stitch_component(const char* component_name, const unsigned char* compo
memcpy((void*)tag, "rlgo", 4);
} else if (strcmp(component_name, "RestoreTrustCache") == 0) {
memcpy((void*)tag, "rtsc", 4);
+ } else if (strcmp(component_name, "RestoreDCP") == 0) {
+ memcpy((void*)tag, "rdcp", 4);
+ } else if (strcmp(component_name, "Ap,RestoreTMU") == 0) {
+ memcpy((void*)tag, "rtmu", 4);
+ } else if (strcmp(component_name, "Ap,RestoreCIO") == 0) {
+ memcpy((void*)tag, "rcio", 4);
+ } else if (strcmp(component_name, "Ap,DCP2") == 0) {
+ memcpy((void*)tag, "dcp2", 4);
}
}