You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Notificationnotification = newNotification("Saving blobs failed", "Check your internet connection.\nIf it is working, click here to report this error.", Notification.ERROR_ICON);
if (!ipswField.getText().matches("https?://.*apple.*\\.ipsw")) {
258
-
newUnreportableError("\"" + ipswField.getText() + "\" is not a valid URL.\n\nMake sure it starts with \"http://\" or \"https://\", has \"apple\" in it, and ends with \".ipsw\"");
newUnreportableError("\"" + ipswField.getText() + "\" is not a valid URL.\n\nMake sure it starts with \"http://\" or \"https://\", has \"apple\" in it, and ends with \".ipsw\"");
268
-
deleteTempFiles(buildManifestPlist);
269
-
return;
270
-
}
271
-
ZipEntryze;
272
-
while ((ze = zin.getNextEntry()) != null) {
273
-
if ("BuildManifest.plist".equals(ze.getName())) {
274
-
copyStreamToFile(zin, buildManifestPlist);
275
-
break;
276
-
}
277
-
}
278
-
buildManifestPlist.deleteOnExit();
279
-
} catch (IOExceptione) {
280
-
newReportableError("Unable to get BuildManifest from .ipsw.", e.getMessage());
newUnreportableError("\"" + ecidField.getText() + "\"" + " is not a valid ECID. Try getting it from iTunes.\n\nIf this was done to test whether the preset works in the background, please cancel that preset, fix the error, and try again.");
306
-
ecidField.setEffect(errorBorder);
307
-
} elseif (tsscheckerLog.contains("[Error] [TSSC] device " + device + " could not be found in devicelist")) {
308
-
Alertalert = newAlert(Alert.AlertType.ERROR, "tsschecker could not find device: \"" + device +
309
-
"\"\n\nPlease create a new Github issue or PM me on Reddit if you used the dropdown menu.\n\nIf this was done to test whether the preset works in the background, please cancel that preset, fix the error, and try again.", githubIssue, redditPM, ButtonType.CANCEL);
310
-
resizeAlertButtons(alert);
311
-
alert.showAndWait();
312
-
reportError(alert);
313
-
} elseif (tsscheckerLog.contains("[Error] [TSSC] ERROR: could not get url for device " + device + " on iOS " + versionField.getText())) {
314
-
newUnreportableError("Could not find device \"" + device + "\" on iOS/tvOS " + versionField.getText() +
315
-
"\n\nThe version doesn't exist or isn't compatible with the device");
newUnreportableError("\"" + apnonceField.getText() + "\" is not a valid apnonce");
319
-
apnonceField.setEffect(errorBorder);
320
-
} elseif (tsscheckerLog.contains("[WARNING] [TSSC] could not get id0 for installType=Erase. Using fallback installType=Update since user did not specify installType manually")
321
-
&& tsscheckerLog.contains("[Error] [TSSR] Error: could not get id0 for installType=Update")
322
-
&& tsscheckerLog.contains("[Error] [TSSR] faild to build tssrequest")
323
-
&& tsscheckerLog.contains("Error] [TSSC] checking tss status failed!")) {
324
-
Alertalert = newAlert(Alert.AlertType.ERROR,
325
-
"Saving blobs failed. Check the board configuration or try again later.\n\nIf this doesn't work, please create a new issue on Github or PM me on Reddit. The log has been copied to your clipboard.\n\nIf this was done to test whether the preset works in the background, please cancel that preset, fix the error, and try again.",
326
-
githubIssue, redditPM, ButtonType.OK);
327
-
resizeAlertButtons(alert);
328
-
alert.showAndWait();
329
-
reportError(alert, tsscheckerLog);
330
-
} elseif (tsscheckerLog.contains("[Error] ERROR: TSS request failed: Could not resolve host:")) {
331
-
Alertalert = newAlert(Alert.AlertType.ERROR,
332
-
"Saving blobs failed. Check your internet connection.\n\nIf your internet is working and you can connect to apple.com in your browser, please create a new issue on Github or PM me on Reddit. The log has been copied to your clipboard.\n\nIf this was done to test whether the preset works in the background, please cancel that preset, fix the error, and try again.",
333
-
githubIssue, redditPM, ButtonType.OK);
334
-
resizeAlertButtons(alert);
335
-
alert.showAndWait();
336
-
reportError(alert, tsscheckerLog);
337
-
} elseif (tsscheckerLog.contains("[Error] [Error] can't save shsh at " + pathField.getText())) {
338
-
newUnreportableError("\'" + pathField.getText() + "\' is not a valid path\n\nIf this was done to test whether the preset works in the background, please cancel that preset, fix the error, and try again.");
339
-
pathField.setEffect(errorBorder);
340
-
} elseif (tsscheckerLog.contains("iOS " + versionField.getText() + " for device " + device + " IS NOT being signed!") || tsscheckerLog.contains("Build " + buildIDField.getText() + " for device iPhone9,2 IS NOT being signed!")) {
341
-
newUnreportableError("iOS/tvOS " + versionField.getText() + " is not being signed for device " + device);
342
-
versionField.setEffect(errorBorder);
343
-
if (betaCheckBox.isSelected()) {
344
-
buildIDField.setEffect(errorBorder);
345
-
ipswField.setEffect(errorBorder);
346
-
}
347
-
} elseif (tsscheckerLog.contains("[Error] [TSSC] failed to load manifest")) {
348
-
Alertalert = newAlert(Alert.AlertType.ERROR,
349
-
"Failed to load manifest.\n\n\"" + ipswField.getText() + "\" might not be a valid URL.\n\nMake sure it starts with \"http://\" or \"https://\", has \"apple\" in it, and ends with \".ipsw\"\n\nIf the URL is fine, please create a new issue on Github or PM me on Reddit. The log has been copied to your clipboard",
350
-
githubIssue, redditPM, ButtonType.OK);
351
-
resizeAlertButtons(alert);
352
-
alert.showAndWait();
353
-
reportError(alert, tsscheckerLog);
354
-
} elseif (tsscheckerLog.contains("[Error] [TSSC] selected device can't be used with that buildmanifest")) {
355
-
newUnreportableError("Device and build manifest don't match.");
356
-
} elseif (tsscheckerLog.contains("[Error]")) {
357
-
newReportableError("Saving blobs failed.\n\nIf this was done to test whether the preset works in the background, please cancel that preset, fix the error, and try again.", tsscheckerLog);
358
-
} else {
359
-
newReportableError("Unknown result.\n\nIf this was done to test whether the preset works in the background, please cancel that preset, fix the error, and try again.", tsscheckerLog);
0 commit comments