Skip to content
This repository was archived by the owner on Feb 5, 2019. It is now read-only.

Commit 81b98e0

Browse files
committed
idevicerestore: handle new timeout error conditions
1 parent 31ea6d6 commit 81b98e0

File tree

8 files changed

+106
-161
lines changed

8 files changed

+106
-161
lines changed

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
*.patch
2-
*.diff
3-
*.swp
41
*.DS_Store
52
*.a
63
*.o

configure.ac

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ AC_CONFIG_MACRO_DIRS([m4])
2828
AC_CONFIG_SUBDIRS(external/idevicerestore external/img4tool external/tsschecker)
2929
AC_CONFIG_SRCDIR([futurerestore])
3030

31+
# Check for libraries
3132
AC_SEARCH_LIBS([pthread_create], [pthread])
32-
PKG_CHECK_MODULES(libplist, libplist >= 1.12)
33+
PKG_CHECK_MODULES(libplist, libplist >= 2.0.0)
3334
PKG_CHECK_MODULES(libzip, libzip >= 0.10)
3435
PKG_CHECK_MODULES(libimobiledevice, libimobiledevice-1.0 >= 1.2.1)
3536
PKG_CHECK_MODULES(libfragmentzip, libfragmentzip >= 1.0)

futurerestore.xcodeproj/project.pbxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@
422422
);
423423
runOnlyForDeploymentPostprocessing = 0;
424424
shellPath = /bin/sh;
425-
shellScript = "sed -i '.bak' \"s/.*define VERSION_COUNT_FUTURERESTORE.*/#define VERSION_COUNT_FUTURERESTORE \\\"$(git rev-list --count HEAD)\\\"/\" ./futurerestore/config.h 2>/dev/null || sed -i \"s/.*VERSION_COUNT_FUTURERESTORE.*/#define VERSION_COUNT_FUTURERESTORE \\\"$(git rev-list --count HEAD)\\\"/\" ./futurerestore/config.h 2>/dev/null\nsed -i '.bak' \"s/.*define VERSION_SHA_FUTURERESTORE.*/#define VERSION_SHA_FUTURERESTORE \\\"$(git rev-parse HEAD)\\\"/\" ./futurerestore/config.h 2>/dev/null || sed -i \"s/.*VERSION_SHA_FUTURERESTORE.*/#define VERSION_SHA_FUTURERESTORE \\\"$(git rev-parse HEAD)\\\"/\" ./futurerestore/config.h 2>/dev/null\n\n";
425+
shellScript = "sed -i '.bak' \"s/.*define VERSION_COUNT_FUTURERESTORE.*/#define VERSION_COUNT_FUTURERESTORE \\\"$(git rev-list --count HEAD)\\\"/\" ./futurerestore/config.h 2>/dev/null || sed -i \"s/.*VERSION_COUNT_FUTURERESTORE.*/#define VERSION_COUNT_FUTURERESTORE \\\"$(git rev-list --count HEAD)\\\"/\" ./futurerestore/config.h 2>/dev/null\nsed -i '.bak' \"s/.*define VERSION_SHA_FUTURERESTORE.*/#define VERSION_SHA_FUTURERESTORE \\\"$(git rev-parse HEAD)\\\"/\" ./futurerestore/config.h 2>/dev/null || sed -i \"s/.*VERSION_SHA_FUTURERESTORE.*/#define VERSION_SHA_FUTURERESTORE \\\"$(git rev-parse HEAD)\\\"/\" ./futurerestore/config.h 2>/dev/null\n";
426426
};
427427
/* End PBXShellScriptBuildPhase section */
428428

futurerestore/config.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
#undef VERSION_SHA
2222
#undef VERSION_COUNT
23-
#define VERSION_COUNT_FUTURERESTORE "undefined version number"
24-
#define VERSION_SHA_FUTURERESTORE "undefined version commit"
23+
#define VERSION_COUNT_FUTURERESTORE "undefined number"
24+
#define VERSION_SHA_FUTURERESTORE "undefined commit"
2525

2626
#endif /* config_h */

futurerestore/futurerestore.cpp

Lines changed: 93 additions & 145 deletions
Large diffs are not rendered by default.

futurerestore/futurerestore.hpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,17 @@
99
#ifndef futurerestore_hpp
1010
#define futurerestore_hpp
1111

12-
#include "config.h"
1312
#include <stdio.h>
1413
#include <functional>
1514
#include <vector>
16-
1715
#include <plist/plist.h>
16+
1817
#include <jssy.h>
18+
#include "config.h"
1919
#include "idevicerestore.h"
2020

2121
#if defined _WIN32 || defined __CYGWIN__
22-
#ifndef WIN32
23-
//make sure WIN32 is defined if compiling for windows
22+
#ifndef WIN32 //make sure WIN32 is defined if compiling for windows
2423
#define WIN32
2524
#endif
2625
#endif

futurerestore/main.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,14 +75,14 @@ void cmd_help(){
7575
printf(" --exit-recovery\t\tExit recovery mode and quit\n");
7676

7777
printf("\nOptions for SEP:\n");
78-
printf(" --latest-sep\t\tUse latest signed sep instead of manually specifying one (may cause bad restore)\n");
78+
printf(" --latest-sep\t\tUse latest signed SEP instead of manually specifying one (may cause bad restore)\n");
7979
printf(" -s, --sep PATH\t\tSEP to be flashed\n");
8080
printf(" -m, --sep-manifest PATH\tBuildManifest for requesting SEP ticket\n");
8181

8282
#ifdef HAVE_LIBIPATCHER
83-
printf("\nOptions for Odysseus method:\n");
84-
printf(" --use-pwndfu\t\tuse this for restoring devices with Odysseus method. Device needs to be in kDFU mode already\n");
85-
printf(" --just-boot=\"-v\"\t\tuse this to tethered boot the device from kDFU mode. You can optionally set boot-args\n");
83+
printf("\nOptions for 32-bit downgrading:\n");
84+
printf(" --use-pwndfu\t\tuse this for restoring devices with Odysseus method. Device needs to be in pwned DFU mode already\n");
85+
printf(" --just-boot=\"-v\"\t\tuse this to tethered boot the device from pwned DFU mode. You can optionally set boot-args\n");
8686
#endif
8787

8888
printf("\nOptions for baseband:\n");

0 commit comments

Comments
 (0)