diff options
author | Martin Szulecki | 2013-09-21 01:43:19 +0200 |
---|---|---|
committer | Martin Szulecki | 2013-09-21 01:43:19 +0200 |
commit | ed1721776aa1be92f8e4ce51f2fec679b5a91100 (patch) | |
tree | d03af03853b78b2ba79b742ba3c59d134eb62c40 | |
parent | 74c81b034f7c61fd8582558a4bc5ad7f41c37b1a (diff) | |
download | libimobiledevice-ed1721776aa1be92f8e4ce51f2fec679b5a91100.tar.gz libimobiledevice-ed1721776aa1be92f8e4ce51f2fec679b5a91100.tar.bz2 |
lockdown: Send EscrowBag when starting service for automatic unlocking
-rw-r--r-- | src/lockdown.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lockdown.c b/src/lockdown.c index f616d25..087d673 100644 --- a/src/lockdown.c +++ b/src/lockdown.c @@ -1674,6 +1674,7 @@ lockdownd_error_t lockdownd_start_service(lockdownd_client_t client, const char return LOCKDOWN_E_INVALID_CONF; plist_t dict = NULL; + plist_t escrow_bag = NULL; uint16_t port_loc = 0; lockdownd_error_t ret = LOCKDOWN_E_UNKNOWN_ERROR; @@ -1684,6 +1685,8 @@ lockdownd_error_t lockdownd_start_service(lockdownd_client_t client, const char plist_dict_add_label(dict, client->label); plist_dict_insert_item(dict,"Request", plist_new_string("StartService")); plist_dict_insert_item(dict,"Service", plist_new_string(identifier)); + userpref_device_record_get_value(client->udid, USERPREF_ESCROW_BAG_KEY, &escrow_bag); + plist_dict_insert_item(dict,"EscrowBag", escrow_bag); /* send to device */ ret = lockdownd_send(client, dict); |