diff options
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/iphone_id.c | 3 | ||||
| -rw-r--r-- | tools/iphoneinfo.c | 12 | ||||
| -rw-r--r-- | tools/iphonesyslog.c | 5 |
3 files changed, 10 insertions, 10 deletions
diff --git a/tools/iphone_id.c b/tools/iphone_id.c index 80f22e1..4a2c3af 100644 --- a/tools/iphone_id.c +++ b/tools/iphone_id.c | |||
| @@ -38,7 +38,6 @@ int main(int argc, char **argv) | |||
| 38 | /* parse cmdline args */ | 38 | /* parse cmdline args */ |
| 39 | for (i = 1; i < argc; i++) { | 39 | for (i = 1; i < argc; i++) { |
| 40 | if (!strcmp(argv[i], "-d") || !strcmp(argv[i], "--debug")) { | 40 | if (!strcmp(argv[i], "-d") || !strcmp(argv[i], "--debug")) { |
| 41 | iphone_set_debug_mask(DBGMASK_ALL); | ||
| 42 | iphone_set_debug_level(1); | 41 | iphone_set_debug_level(1); |
| 43 | continue; | 42 | continue; |
| 44 | } | 43 | } |
| @@ -70,7 +69,7 @@ int main(int argc, char **argv) | |||
| 70 | return -2; | 69 | return -2; |
| 71 | } | 70 | } |
| 72 | 71 | ||
| 73 | if (LOCKDOWN_E_SUCCESS != lockdownd_client_new(phone, &client)) { | 72 | if (LOCKDOWN_E_SUCCESS != lockdownd_client_new(phone, &client, "iphone_id")) { |
| 74 | iphone_device_free(phone); | 73 | iphone_device_free(phone); |
| 75 | fprintf(stderr, "ERROR: Connecting to device failed!\n"); | 74 | fprintf(stderr, "ERROR: Connecting to device failed!\n"); |
| 76 | return -2; | 75 | return -2; |
diff --git a/tools/iphoneinfo.c b/tools/iphoneinfo.c index e0d7693..7c41033 100644 --- a/tools/iphoneinfo.c +++ b/tools/iphoneinfo.c | |||
| @@ -37,12 +37,18 @@ static const char *domains[] = { | |||
| 37 | "com.apple.mobile.debug",. */ | 37 | "com.apple.mobile.debug",. */ |
| 38 | "com.apple.xcode.developerdomain", | 38 | "com.apple.xcode.developerdomain", |
| 39 | "com.apple.international", | 39 | "com.apple.international", |
| 40 | "com.apple.mobile.data_sync", | ||
| 41 | "com.apple.mobile.tethered_sync", | ||
| 40 | "com.apple.mobile.mobile_application_usage", | 42 | "com.apple.mobile.mobile_application_usage", |
| 41 | "com.apple.mobile.backup", | 43 | "com.apple.mobile.backup", |
| 44 | "com.apple.mobile.nikita", | ||
| 45 | "com.apple.mobile.restriction", | ||
| 42 | "com.apple.mobile.user_preferences", | 46 | "com.apple.mobile.user_preferences", |
| 43 | "com.apple.mobile.sync_data_class", | 47 | "com.apple.mobile.sync_data_class", |
| 44 | "com.apple.mobile.software_behavior", | 48 | "com.apple.mobile.software_behavior", |
| 45 | "com.apple.mobile.iTunes.SQLMusicLibraryPostProcessCommands", | 49 | "com.apple.mobile.iTunes.SQLMusicLibraryPostProcessCommands", |
| 50 | "com.apple.mobile.iTunes.accessories", | ||
| 51 | "com.apple.fairplay", | ||
| 46 | "com.apple.iTunes", | 52 | "com.apple.iTunes", |
| 47 | "com.apple.mobile.iTunes.store", | 53 | "com.apple.mobile.iTunes.store", |
| 48 | "com.apple.mobile.iTunes", | 54 | "com.apple.mobile.iTunes", |
| @@ -72,7 +78,6 @@ int main(int argc, char *argv[]) | |||
| 72 | /* parse cmdline args */ | 78 | /* parse cmdline args */ |
| 73 | for (i = 1; i < argc; i++) { | 79 | for (i = 1; i < argc; i++) { |
| 74 | if (!strcmp(argv[i], "-d") || !strcmp(argv[i], "--debug")) { | 80 | if (!strcmp(argv[i], "-d") || !strcmp(argv[i], "--debug")) { |
| 75 | iphone_set_debug_mask(DBGMASK_ALL); | ||
| 76 | iphone_set_debug_level(1); | 81 | iphone_set_debug_level(1); |
| 77 | continue; | 82 | continue; |
| 78 | } | 83 | } |
| @@ -136,7 +141,7 @@ int main(int argc, char *argv[]) | |||
| 136 | } | 141 | } |
| 137 | } | 142 | } |
| 138 | 143 | ||
| 139 | if (LOCKDOWN_E_SUCCESS != lockdownd_client_new(phone, &client)) { | 144 | if (LOCKDOWN_E_SUCCESS != lockdownd_client_new_with_handshake(phone, &client, "iphoneinfo")) { |
| 140 | iphone_device_free(phone); | 145 | iphone_device_free(phone); |
| 141 | return -1; | 146 | return -1; |
| 142 | } | 147 | } |
| @@ -278,13 +283,10 @@ void plist_children_to_string(plist_t node) | |||
| 278 | plist_dict_next_item(node, it, &key, &subnode); | 283 | plist_dict_next_item(node, it, &key, &subnode); |
| 279 | while (subnode) | 284 | while (subnode) |
| 280 | { | 285 | { |
| 281 | subnode = NULL; | ||
| 282 | |||
| 283 | printf("%s: ", key); | 286 | printf("%s: ", key); |
| 284 | free(key); | 287 | free(key); |
| 285 | key = NULL; | 288 | key = NULL; |
| 286 | plist_node_to_string(subnode); | 289 | plist_node_to_string(subnode); |
| 287 | |||
| 288 | plist_dict_next_item(node, it, &key, &subnode); | 290 | plist_dict_next_item(node, it, &key, &subnode); |
| 289 | } | 291 | } |
| 290 | free(it); | 292 | free(it); |
diff --git a/tools/iphonesyslog.c b/tools/iphonesyslog.c index 8fa3b04..017956e 100644 --- a/tools/iphonesyslog.c +++ b/tools/iphonesyslog.c | |||
| @@ -49,7 +49,7 @@ int main(int argc, char *argv[]) | |||
| 49 | iphone_error_t ret = IPHONE_E_UNKNOWN_ERROR; | 49 | iphone_error_t ret = IPHONE_E_UNKNOWN_ERROR; |
| 50 | int i; | 50 | int i; |
| 51 | char uuid[41]; | 51 | char uuid[41]; |
| 52 | int port = 0; | 52 | uint16_t port = 0; |
| 53 | uuid[0] = 0; | 53 | uuid[0] = 0; |
| 54 | 54 | ||
| 55 | signal(SIGINT, clean_exit); | 55 | signal(SIGINT, clean_exit); |
| @@ -60,7 +60,6 @@ int main(int argc, char *argv[]) | |||
| 60 | /* parse cmdline args */ | 60 | /* parse cmdline args */ |
| 61 | for (i = 1; i < argc; i++) { | 61 | for (i = 1; i < argc; i++) { |
| 62 | if (!strcmp(argv[i], "-d") || !strcmp(argv[i], "--debug")) { | 62 | if (!strcmp(argv[i], "-d") || !strcmp(argv[i], "--debug")) { |
| 63 | iphone_set_debug_mask(DBGMASK_ALL); | ||
| 64 | iphone_set_debug_level(1); | 63 | iphone_set_debug_level(1); |
| 65 | continue; | 64 | continue; |
| 66 | } | 65 | } |
| @@ -99,7 +98,7 @@ int main(int argc, char *argv[]) | |||
| 99 | } | 98 | } |
| 100 | } | 99 | } |
| 101 | 100 | ||
| 102 | if (LOCKDOWN_E_SUCCESS != lockdownd_client_new(phone, &client)) { | 101 | if (LOCKDOWN_E_SUCCESS != lockdownd_client_new_with_handshake(phone, &client, "iphonesyslog")) { |
| 103 | iphone_device_free(phone); | 102 | iphone_device_free(phone); |
| 104 | return -1; | 103 | return -1; |
| 105 | } | 104 | } |
