diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/preboard.c | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/src/preboard.c b/src/preboard.c index 7b27a34..b975f0e 100644 --- a/src/preboard.c +++ b/src/preboard.c | |||
| @@ -229,73 +229,10 @@ LIBIMOBILEDEVICE_API preboard_error_t preboard_create_stashbag(preboard_client_t | |||
| 229 | } | 229 | } |
| 230 | 230 | ||
| 231 | return preboard_receive_status_loop_with_callback(client, status_cb, user_data); | 231 | return preboard_receive_status_loop_with_callback(client, status_cb, user_data); |
| 232 | |||
| 233 | // return { ShowDialog: true} or {Timeout: true} followed by {HideDialog: true} | ||
| 234 | // or { Error: 1, ErrorString: <error string> } | ||
| 235 | |||
| 236 | |||
| 237 | /* | ||
| 238 | <?xml version="1.0" encoding="UTF-8"?> | ||
| 239 | <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
| 240 | <plist version="1.0"> | ||
| 241 | <dict> | ||
| 242 | <key>ShowDialog</key> | ||
| 243 | <true/> | ||
| 244 | <key>Version</key> | ||
| 245 | <integer>2</integer> | ||
| 246 | </dict> | ||
| 247 | </plist> | ||
| 248 | |||
| 249 | for success, it will send the HideDialog message, then wait up to 14400 seconds (4h) for the device to reboot? | ||
| 250 | |||
| 251 | |||
| 252 | <!-- error: --> | ||
| 253 | |||
| 254 | <?xml version="1.0" encoding="UTF-8"?> | ||
| 255 | <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
| 256 | <plist version="1.0"> | ||
| 257 | <dict> | ||
| 258 | <key>Error</key> | ||
| 259 | <integer>1</integer> | ||
| 260 | <key>ErrorString</key> | ||
| 261 | <string>user authentication failed: Error Domain=com.apple.LocalAuthentication Code=-2 "Canceled by user." UserInfo={BiometryType=1, NSLocalizedDescription=Canceled by user.}</string> | ||
| 262 | <key>Version</key> | ||
| 263 | <integer>2</integer> | ||
| 264 | </dict> | ||
| 265 | </plist> | ||
| 266 | |||
| 267 | <!-- or after 2 minutes --> | ||
| 268 | |||
| 269 | <?xml version="1.0" encoding="UTF-8"?> | ||
| 270 | <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
| 271 | <plist version="1.0"> | ||
| 272 | <dict> | ||
| 273 | <key>Timeout</key> | ||
| 274 | <true/> | ||
| 275 | <key>Version</key> | ||
| 276 | <integer>2</integer> | ||
| 277 | </dict> | ||
| 278 | </plist> | ||
| 279 | |||
| 280 | <?xml version="1.0" encoding="UTF-8"?> | ||
| 281 | <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
| 282 | <plist version="1.0"> | ||
| 283 | <dict> | ||
| 284 | <key>HideDialog</key> | ||
| 285 | <true/> | ||
| 286 | <key>Version</key> | ||
| 287 | <integer>2</integer> | ||
| 288 | </dict> | ||
| 289 | </plist> | ||
| 290 | |||
| 291 | */ | ||
| 292 | } | 232 | } |
| 293 | 233 | ||
| 294 | LIBIMOBILEDEVICE_API preboard_error_t preboard_commit_stashbag(preboard_client_t client, plist_t manifest, preboard_status_cb_t status_cb, void *user_data) | 234 | LIBIMOBILEDEVICE_API preboard_error_t preboard_commit_stashbag(preboard_client_t client, plist_t manifest, preboard_status_cb_t status_cb, void *user_data) |
| 295 | { | 235 | { |
| 296 | // returns { StashbagCommitComplete: true } | ||
| 297 | // or { StashbagCommitComplete: 0, Error: 1, <optional> ErrorString: <error string> } | ||
| 298 | |||
| 299 | if (!client) { | 236 | if (!client) { |
| 300 | return PREBOARD_E_INVALID_ARG; | 237 | return PREBOARD_E_INVALID_ARG; |
| 301 | } | 238 | } |
