From 23d491b47683752e2a3369fb9e51c50563982c04 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Thu, 24 Sep 2015 00:38:37 -0700 Subject: [PATCH] Support listing installed applications on old iOS. --- MobileCydia.mm | 2 +- iPhonePrivate.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/MobileCydia.mm b/MobileCydia.mm index 1abd58be..20d686a6 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -4598,7 +4598,7 @@ static _H Diversions_; } - (NSArray *) getDisplayIdentifiers { - NSSet *set([SBSCopyDisplayIdentifiers() autorelease]); + NSSet *set([SBSCopyApplicationDisplayIdentifiers() autorelease]); if (set == nil || ![set isKindOfClass:[NSSet class]]) return [NSArray array]; return [set allObjects]; diff --git a/iPhonePrivate.h b/iPhonePrivate.h index 95e9c002..5e97c501 100644 --- a/iPhonePrivate.h +++ b/iPhonePrivate.h @@ -438,7 +438,7 @@ extern float const UIWebViewScalesToFitScale; extern "C" void *reboot2(uint64_t flags); extern "C" mach_port_t SBSSpringBoardServerPort(); extern "C" int SBBundlePathForDisplayIdentifier(mach_port_t port, const char *identifier, char *path); -extern "C" NSSet *SBSCopyDisplayIdentifiers(); +extern "C" NSSet *SBSCopyApplicationDisplayIdentifiers(); extern "C" NSString *SBSCopyLocalizedApplicationNameForDisplayIdentifier(NSString *); extern "C" NSString *SBSCopyIconImagePathForDisplayIdentifier(NSString *); extern "C" UIImage *_UIImageWithName(NSString *name); -- 2.47.2