diff options
Diffstat (limited to 'src/preflight.c')
| -rw-r--r-- | src/preflight.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/preflight.c b/src/preflight.c index 0041b21..0582dd1 100644 --- a/src/preflight.c +++ b/src/preflight.c | |||
| @@ -170,7 +170,7 @@ static void* preflight_worker_handle_device_add(void* userdata) | |||
| 170 | 170 | ||
| 171 | int version_major = strtol(version_str, NULL, 10); | 171 | int version_major = strtol(version_str, NULL, 10); |
| 172 | if (version_major >= 7) { | 172 | if (version_major >= 7) { |
| 173 | // ============== iOS 7.0 and beyond ============= | 173 | /* iOS 7.0 and later */ |
| 174 | usbmuxd_log(LL_INFO, "%s: Found ProductVersion %s device %s", __func__, version_str, _dev->udid); | 174 | usbmuxd_log(LL_INFO, "%s: Found ProductVersion %s device %s", __func__, version_str, _dev->udid); |
| 175 | 175 | ||
| 176 | set_untrusted_host_buid(lockdown); | 176 | set_untrusted_host_buid(lockdown); |
| @@ -205,7 +205,7 @@ static void* preflight_worker_handle_device_add(void* userdata) | |||
| 205 | np_observe_notifications(np, spec); | 205 | np_observe_notifications(np, spec); |
| 206 | 206 | ||
| 207 | usbmuxd_log(LL_INFO, "%s: Waiting for user to trust this computer on device %s", __func__, _dev->udid); | 207 | usbmuxd_log(LL_INFO, "%s: Waiting for user to trust this computer on device %s", __func__, _dev->udid); |
| 208 | // TODO send notification to user's desktop | 208 | /* TODO send notification to user's desktop */ |
| 209 | while (cbdata.np) { | 209 | while (cbdata.np) { |
| 210 | sleep(1); | 210 | sleep(1); |
| 211 | } | 211 | } |
| @@ -214,7 +214,7 @@ static void* preflight_worker_handle_device_add(void* userdata) | |||
| 214 | np_client_free(cbdata.np); | 214 | np_client_free(cbdata.np); |
| 215 | } | 215 | } |
| 216 | } else { | 216 | } else { |
| 217 | // ============== iOS 6.x and below ============== | 217 | /* iOS 6.x and earlier */ |
| 218 | lerr = lockdownd_pair(lockdown, NULL); | 218 | lerr = lockdownd_pair(lockdown, NULL); |
| 219 | if (lerr == LOCKDOWN_E_PASSWORD_PROTECTED) { | 219 | if (lerr == LOCKDOWN_E_PASSWORD_PROTECTED) { |
| 220 | usbmuxd_log(LL_INFO, "%s: Device %s is locked with a passcode. Cannot pair.", __func__, _dev->udid); | 220 | usbmuxd_log(LL_INFO, "%s: Device %s is locked with a passcode. Cannot pair.", __func__, _dev->udid); |
| @@ -240,7 +240,7 @@ static void* preflight_worker_handle_device_add(void* userdata) | |||
| 240 | goto leave; | 240 | goto leave; |
| 241 | } | 241 | } |
| 242 | 242 | ||
| 243 | // make device visible | 243 | /* emit device added event and thus make device visible to clients */ |
| 244 | client_device_add(info); | 244 | client_device_add(info); |
| 245 | } | 245 | } |
| 246 | 246 | ||
