|
18 | 18 | #include "MobileDevice.h"
|
19 | 19 | #include "errors.h"
|
20 | 20 |
|
21 |
| -#define APP_VERSION "1.6.1" |
| 21 | +#define APP_VERSION "1.6.3" |
22 | 22 | #define PREP_CMDS_PATH "/tmp/fruitstrap-lldb-prep-cmds-"
|
23 | 23 | #define LLDB_SHELL "lldb -s " PREP_CMDS_PATH
|
24 | 24 | /*
|
@@ -446,16 +446,11 @@ CFStringRef get_device_full_name(const AMDeviceRef device) {
|
446 | 446 | if (verbose)
|
447 | 447 | {
|
448 | 448 | char *devName = MYCFStringCopyUTF8String(device_name);
|
449 |
| - printf("Device Name:[%s]\n",devName); |
450 |
| - CFShow(device_name); |
451 |
| - printf("\n"); |
| 449 | + CFShow([NSString stringWithFormat:@"Device Name: %s\n", devName]); |
452 | 450 | free(devName);
|
453 | 451 |
|
454 | 452 | char *mdlName = MYCFStringCopyUTF8String(model_name);
|
455 |
| - printf("Model Name:[%s]\n",mdlName); |
456 |
| - printf("MM: [%s]\n",CFStringGetCStringPtr(model_name, kCFStringEncodingUTF8)); |
457 |
| - CFShow(model_name); |
458 |
| - printf("\n"); |
| 453 | + CFShow([NSString stringWithFormat:@"Model Name: %s\n", mdlName]); |
459 | 454 | free(mdlName);
|
460 | 455 | }
|
461 | 456 |
|
@@ -1566,25 +1561,25 @@ void handle_device(AMDeviceRef device) {
|
1566 | 1561 | CFStringRef found_device_id = AMDeviceCopyDeviceIdentifier(device),
|
1567 | 1562 | device_full_name = get_device_full_name(device),
|
1568 | 1563 | device_interface_name = get_device_interface_name(device);
|
1569 |
| - |
| 1564 | + |
1570 | 1565 | if (detect_only) {
|
1571 |
| - printf("[....] Found %s connected through %s.\n", CFStringGetCStringPtr(device_full_name, CFStringGetSystemEncoding()), CFStringGetCStringPtr(device_interface_name, CFStringGetSystemEncoding())); |
| 1566 | + CFShow([NSString stringWithFormat:@"[....] Found %@ connected through %@.\n", device_full_name, device_interface_name]); |
1572 | 1567 | found_device = true;
|
1573 | 1568 | return;
|
1574 | 1569 | }
|
1575 | 1570 | if (device_id != NULL) {
|
1576 | 1571 | if(strcmp(device_id, CFStringGetCStringPtr(found_device_id, CFStringGetSystemEncoding())) == 0) {
|
1577 | 1572 | found_device = true;
|
1578 | 1573 | } else {
|
1579 |
| - printf("Skipping %s.\n", CFStringGetCStringPtr(device_full_name, CFStringGetSystemEncoding())); |
| 1574 | + CFShow([NSString stringWithFormat:@"Skipping %@.\n", device_full_name]); |
1580 | 1575 | return;
|
1581 | 1576 | }
|
1582 | 1577 | } else {
|
1583 | 1578 | device_id = MYCFStringCopyUTF8String(found_device_id);
|
1584 | 1579 | found_device = true;
|
1585 | 1580 | }
|
1586 | 1581 |
|
1587 |
| - printf("[....] Using %s (%s).\n", CFStringGetCStringPtr(device_full_name, CFStringGetSystemEncoding()), CFStringGetCStringPtr(found_device_id, CFStringGetSystemEncoding())); |
| 1582 | + CFShow([NSString stringWithFormat:@"[....] Using %@ (%@).\n", device_full_name, found_device_id]); |
1588 | 1583 |
|
1589 | 1584 | if (command_only) {
|
1590 | 1585 | if (strcmp("list", command) == 0) {
|
@@ -1649,7 +1644,7 @@ void handle_device(AMDeviceRef device) {
|
1649 | 1644 |
|
1650 | 1645 | if(install) {
|
1651 | 1646 | printf("------ Install phase ------\n");
|
1652 |
| - printf("[ 0%%] Found %s connected through %s, beginning install\n", CFStringGetCStringPtr(device_full_name, CFStringGetSystemEncoding()), CFStringGetCStringPtr(device_interface_name, CFStringGetSystemEncoding())); |
| 1647 | + CFShow([NSString stringWithFormat:@"[ 0%%] Found %@ connected through %@, beginning install\n", device_full_name, device_interface_name]); |
1653 | 1648 |
|
1654 | 1649 | AMDeviceConnect(device);
|
1655 | 1650 | assert(AMDeviceIsPaired(device));
|
|
0 commit comments