mirror of
https://github.com/tihmstar/futurerestore.git
synced 2025-07-09 16:10:32 +00:00
removing workaround option to manually set bbgcid
This commit is contained in:
parent
41047b7b75
commit
77726b7596
|
@ -30,7 +30,6 @@ static struct option longopts[] = {
|
||||||
{ "debug", no_argument, NULL, 'd' },
|
{ "debug", no_argument, NULL, 'd' },
|
||||||
{ "latest-sep", no_argument, NULL, '0' },
|
{ "latest-sep", no_argument, NULL, '0' },
|
||||||
{ "latest-baseband", no_argument, NULL, '1' },
|
{ "latest-baseband", no_argument, NULL, '1' },
|
||||||
{ "bbgcid", required_argument, NULL, '2' },
|
|
||||||
{ NULL, 0, NULL, 0 }
|
{ NULL, 0, NULL, 0 }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -115,10 +114,6 @@ int main(int argc, const char * argv[]) {
|
||||||
case '1': // long option: "latest-baseband";
|
case '1': // long option: "latest-baseband";
|
||||||
flags |= FLAG_LATEST_BASEBAND;
|
flags |= FLAG_LATEST_BASEBAND;
|
||||||
break;
|
break;
|
||||||
case '2': // long option: "latest-baseband";
|
|
||||||
devVals.bbgcid = (uint64_t)atoll(optarg);
|
|
||||||
printf("manually set bbgcid to %llu\n",(unsigned long long)devVals.bbgcid);
|
|
||||||
break;
|
|
||||||
case 'd': // long option: "debug"; can be called as short option
|
case 'd': // long option: "debug"; can be called as short option
|
||||||
idevicerestore_debug = 1;
|
idevicerestore_debug = 1;
|
||||||
break;
|
break;
|
||||||
|
@ -191,10 +186,8 @@ int main(int argc, const char * argv[]) {
|
||||||
}
|
}
|
||||||
|
|
||||||
versVals.basebandMode = kBasebandModeOnlyBaseband;
|
versVals.basebandMode = kBasebandModeOnlyBaseband;
|
||||||
if (!devVals.bbgcid) {
|
if (!(devVals.bbgcid = client.getBasebandGoldCertIDFromDevice())){
|
||||||
if (!(devVals.bbgcid = client.getBasebandGoldCertIDFromDevice())){
|
printf("[WARNING] using tsschecker's fallback to get BasebandGoldCertID. This might result in invalid baseband signing status information\n");
|
||||||
printf("[WARNING] using tsschecker's fallback to get BasebandGoldCertID. This might result in invalid baseband signing status information\n");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if (!(isBasebandSigned = isManifestSignedForDevice(basebandManifestPath, &devVals, &versVals))) {
|
if (!(isBasebandSigned = isManifestSignedForDevice(basebandManifestPath, &devVals, &versVals))) {
|
||||||
reterror(-3,"baseband firmware isn't signed\n");
|
reterror(-3,"baseband firmware isn't signed\n");
|
||||||
|
|
Loading…
Reference in a new issue