summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2012-07-17 17:10:15 +0200
committerGravatar Nikias Bassen2012-07-17 17:10:15 +0200
commit4a7fe85ca5e5a5dfa49df9a70e276c57a085666b (patch)
tree8aaf5c0bd7aa6195a75543f770e0e339df40eeae /src
parent03edb2fd320a598d13bb7cc15c433c590b0f2582 (diff)
downloadidevicerestore-4a7fe85ca5e5a5dfa49df9a70e276c57a085666b.tar.gz
idevicerestore-4a7fe85ca5e5a5dfa49df9a70e276c57a085666b.tar.bz2
restore: Print IMEI after baseband update succeeded
Diffstat (limited to 'src')
-rw-r--r--src/restore.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/restore.c b/src/restore.c
index 7cd2fb9..ce50f3f 100644
--- a/src/restore.c
+++ b/src/restore.c
@@ -555,6 +555,18 @@ int restore_handle_bb_update_status_msg(restored_client_t client, plist_t msg)
if (done) {
info("Updating Baseband completed.\n");
+ plist_t provisioning = plist_access_path(msg, 2, "Output", "provisioning");
+ if (provisioning && plist_get_node_type(provisioning) == PLIST_DICT) {
+ info("Provisioning:\n");
+ char* sval = NULL;
+ node = plist_dict_get_item(provisioning, "IMEI");
+ if (node && plist_get_node_type(node) == PLIST_STRING) {
+ plist_get_string_val(node, &sval);
+ info("IMEI:%s\n", sval);
+ free(sval);
+ sval = NULL;
+ }
+ }
} else {
info("Updating Baseband in progress...\n");
}