mirror of
https://github.com/tihmstar/futurerestore.git
synced 2025-07-02 15:08:14 +00:00
Add support for 6s/SE firmware keys
This commit is contained in:
parent
94db5f4a75
commit
906a933a2e
|
@ -478,8 +478,15 @@ void futurerestore::enterPwnRecovery(plist_t build_identity, string bootargs){
|
||||||
mutex_unlock(&_client->device_event_mutex);
|
mutex_unlock(&_client->device_event_mutex);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
const char *board = getDeviceBoardNoCopy();
|
||||||
|
info("BOARD: %s\n", board);
|
||||||
|
if(board == "n71ap" || board == "n71map" || board == "n69ap" || board == "n69uap") {
|
||||||
|
iBSSKeys = libipatcher::getFirmwareKey(_client->device->product_type, _client->build, "iBSS", board);
|
||||||
|
iBECKeys = libipatcher::getFirmwareKey(_client->device->product_type, _client->build, "iBEC", board);
|
||||||
|
} else {
|
||||||
iBSSKeys = libipatcher::getFirmwareKey(_client->device->product_type, _client->build, "iBSS");
|
iBSSKeys = libipatcher::getFirmwareKey(_client->device->product_type, _client->build, "iBSS");
|
||||||
iBECKeys = libipatcher::getFirmwareKey(_client->device->product_type, _client->build, "iBEC");
|
iBECKeys = libipatcher::getFirmwareKey(_client->device->product_type, _client->build, "iBEC");
|
||||||
|
}
|
||||||
} catch (tihmstar::exception &e) {
|
} catch (tihmstar::exception &e) {
|
||||||
reterror("getting keys failed with error: %d (%s). Are keys publicly available?",e.code(),e.what());
|
reterror("getting keys failed with error: %d (%s). Are keys publicly available?",e.code(),e.what());
|
||||||
}
|
}
|
||||||
|
@ -687,8 +694,15 @@ void futurerestore::enterPwnRecovery2(plist_t build_identity, string bootargs){
|
||||||
mutex_unlock(&_client->device_event_mutex);
|
mutex_unlock(&_client->device_event_mutex);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
const char *board = getDeviceBoardNoCopy();
|
||||||
|
info("BOARD: %s\n", board);
|
||||||
|
if(board == "n71ap" || board == "n71map" || board == "n69ap" || board == "n69uap") {
|
||||||
|
iBSSKeys = libipatcher::getFirmwareKey(_client->device->product_type, _client->build, "iBSS", board);
|
||||||
|
iBECKeys = libipatcher::getFirmwareKey(_client->device->product_type, _client->build, "iBEC", board);
|
||||||
|
} else {
|
||||||
iBSSKeys = libipatcher::getFirmwareKey(_client->device->product_type, _client->build, "iBSS");
|
iBSSKeys = libipatcher::getFirmwareKey(_client->device->product_type, _client->build, "iBSS");
|
||||||
iBECKeys = libipatcher::getFirmwareKey(_client->device->product_type, _client->build, "iBEC");
|
iBECKeys = libipatcher::getFirmwareKey(_client->device->product_type, _client->build, "iBEC");
|
||||||
|
}
|
||||||
} catch (tihmstar::exception &e) {
|
} catch (tihmstar::exception &e) {
|
||||||
reterror("getting keys failed with error: %d (%s). Are keys publicly available?",e.code(),e.what());
|
reterror("getting keys failed with error: %d (%s). Are keys publicly available?",e.code(),e.what());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue