Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for iOS 1 and iOS 2 recovery mode #126

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ case ${host_os} in
], [])
], [])
;;
mingw32*)
mingw32*|*msys*)
AC_MSG_RESULT([${host_os}])
GLOBAL_LDFLAGS+=" -static-libgcc -lkernel32 -lsetupapi"
win32=true
Expand Down Expand Up @@ -223,6 +223,7 @@ Configuration for $PACKAGE $VERSION:

Install prefix: .........: $prefix
USB backend: ............: $USB_BACKEND
with tools: .............: $with_tools

Now type 'make' to build $PACKAGE $VERSION,
and then 'make install' for installation.
Expand Down
10 changes: 10 additions & 0 deletions include/libirecovery.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,15 @@ struct irecv_device_info {
unsigned int bdid;
uint64_t ecid;
unsigned int ibfl;

unsigned int have_cpid : 1;
unsigned int have_cprv : 1;
unsigned int have_cpfm : 1;
unsigned int have_scep : 1;
unsigned int have_bdid : 1;
unsigned int have_ecid : 1;
unsigned int have_ibfl : 1;

char* srnm;
char* imei;
char* srtg;
Expand Down Expand Up @@ -151,6 +160,7 @@ IRECV_API irecv_error_t irecv_usb_set_configuration(irecv_client_t client, int c
IRECV_API irecv_error_t irecv_usb_set_interface(irecv_client_t client, int usb_interface, int usb_alt_interface);
IRECV_API int irecv_usb_control_transfer(irecv_client_t client, uint8_t bm_request_type, uint8_t b_request, uint16_t w_value, uint16_t w_index, unsigned char *data, uint16_t w_length, unsigned int timeout);
IRECV_API int irecv_usb_bulk_transfer(irecv_client_t client, unsigned char endpoint, unsigned char *data, int length, int *transferred, unsigned int timeout);
IRECV_API int irecv_usb_interrupt_transfer(irecv_client_t client, unsigned char endpoint, unsigned char *data, int length, int *transferred);

/* events */
typedef void(*irecv_device_event_cb_t)(const irecv_device_event_t* event, void *user_data);
Expand Down
Loading