diff options
Diffstat (limited to 'tools/iphoneinfo.c')
| -rw-r--r-- | tools/iphoneinfo.c | 12 |
1 files changed, 7 insertions, 5 deletions
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); |
