diff options
Diffstat (limited to 'tools/ideviceenterrecovery.c')
| -rw-r--r-- | tools/ideviceenterrecovery.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tools/ideviceenterrecovery.c b/tools/ideviceenterrecovery.c index 827946b..fc46e75 100644 --- a/tools/ideviceenterrecovery.c +++ b/tools/ideviceenterrecovery.c | |||
| @@ -32,8 +32,8 @@ static void print_usage(int argc, char **argv) | |||
| 32 | char *name = NULL; | 32 | char *name = NULL; |
| 33 | 33 | ||
| 34 | name = strrchr(argv[0], '/'); | 34 | name = strrchr(argv[0], '/'); |
| 35 | printf("Usage: %s [OPTIONS] UUID\n", (name ? name + 1: argv[0])); | 35 | printf("Usage: %s [OPTIONS] UDID\n", (name ? name + 1: argv[0])); |
| 36 | printf("Makes a device with the supplied 40-digit UUID enter recovery mode immediately.\n\n"); | 36 | printf("Makes a device with the supplied 40-digit UDID enter recovery mode immediately.\n\n"); |
| 37 | printf(" -d, --debug\t\tenable communication debugging\n"); | 37 | printf(" -d, --debug\t\tenable communication debugging\n"); |
| 38 | printf(" -h, --help\t\tprints usage information\n"); | 38 | printf(" -h, --help\t\tprints usage information\n"); |
| 39 | printf("\n"); | 39 | printf("\n"); |
| @@ -45,8 +45,8 @@ int main(int argc, char *argv[]) | |||
| 45 | idevice_t phone = NULL; | 45 | idevice_t phone = NULL; |
| 46 | idevice_error_t ret = IDEVICE_E_UNKNOWN_ERROR; | 46 | idevice_error_t ret = IDEVICE_E_UNKNOWN_ERROR; |
| 47 | int i; | 47 | int i; |
| 48 | char uuid[41]; | 48 | char udid[41]; |
| 49 | uuid[0] = 0; | 49 | udid[0] = 0; |
| 50 | 50 | ||
| 51 | /* parse cmdline args */ | 51 | /* parse cmdline args */ |
| 52 | for (i = 1; i < argc; i++) { | 52 | for (i = 1; i < argc; i++) { |
| @@ -65,11 +65,11 @@ int main(int argc, char *argv[]) | |||
| 65 | print_usage(argc, argv); | 65 | print_usage(argc, argv); |
| 66 | return 0; | 66 | return 0; |
| 67 | } | 67 | } |
| 68 | strcpy(uuid, argv[i]); | 68 | strcpy(udid, argv[i]); |
| 69 | 69 | ||
| 70 | ret = idevice_new(&phone, uuid); | 70 | ret = idevice_new(&phone, udid); |
| 71 | if (ret != IDEVICE_E_SUCCESS) { | 71 | if (ret != IDEVICE_E_SUCCESS) { |
| 72 | printf("No device found with uuid %s, is it plugged in?\n", uuid); | 72 | printf("No device found with udid %s, is it plugged in?\n", udid); |
| 73 | return -1; | 73 | return -1; |
| 74 | } | 74 | } |
| 75 | 75 | ||
| @@ -79,7 +79,7 @@ int main(int argc, char *argv[]) | |||
| 79 | } | 79 | } |
| 80 | 80 | ||
| 81 | /* run query and output information */ | 81 | /* run query and output information */ |
| 82 | printf("Telling device with uuid %s to enter recovery mode.\n", uuid); | 82 | printf("Telling device with udid %s to enter recovery mode.\n", udid); |
| 83 | if(lockdownd_enter_recovery(client) != LOCKDOWN_E_SUCCESS) | 83 | if(lockdownd_enter_recovery(client) != LOCKDOWN_E_SUCCESS) |
| 84 | { | 84 | { |
| 85 | printf("Failed to enter recovery mode.\n"); | 85 | printf("Failed to enter recovery mode.\n"); |
