summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2015-09-24 00:38:37 -0700
committerJay Freeman (saurik) <saurik@saurik.com>2015-09-24 00:38:37 -0700
commit23d491b47683752e2a3369fb9e51c50563982c04 (patch)
treee8623f7e7640637af6091bcb811f400aa329c4b3
parent06325acfa9b258fd7ab170880a4050fe8c4394b6 (diff)
Support listing installed applications on old iOS.
-rw-r--r--MobileCydia.mm2
-rw-r--r--iPhonePrivate.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index 1abd58b..20d686a 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -4598,7 +4598,7 @@ static _H<NSMutableSet> 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 95e9c00..5e97c50 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);