Skip to content

Commit

Permalink
Delete PASS.png for S5L8900
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeZGD committed Jan 3, 2024
1 parent 98754e7 commit 424dff5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/xpwn/ipsw-patch/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ int main(int argc, char* argv[]) {
char needPref = FALSE;
char usedaibutsu = FALSE;
char usepunchd = FALSE;
char passDelete = FALSE;

unsigned int key[32];
unsigned int iv[16];
Expand Down Expand Up @@ -293,6 +294,10 @@ int main(int argc, char* argv[]) {
updateRamdiskFSPathInIPSW = fileValue->value;
}

if(strcmp(patchDict->dValue.key, "WTF 2") == 0) {
passDelete = TRUE;
}

patchValue = (StringValue*) getValueByKey(patchDict, "Patch2");
if(patchValue) {
// none?
Expand Down Expand Up @@ -683,6 +688,10 @@ int main(int argc, char* argv[]) {

StringValue* optionsValue = (StringValue*) getValueByKey(info, "RamdiskOptionsPath");
const char *optionsPlist = optionsValue ? optionsValue->value : "/usr/local/share/restore/options.plist";
const char *passPath = "/usr/local/share/restore/PASS.png";
if (passDelete) {
removeFile(passPath, ramdiskVolume);
}
createRestoreOptions(ramdiskVolume, optionsPlist, preferredRootSize, updateBB);

if(usedaibutsu){
Expand Down

0 comments on commit 424dff5

Please sign in to comment.