mirror of https://github.com/opa334/TrollStore.git
Also update app info to be more accurate in terms of com.apple.private.security.container-required
This commit is contained in:
parent
a22414d34a
commit
18612495b3
|
@ -849,17 +849,38 @@ extern UIImage* imageWithSize(UIImage* image, CGSize size);
|
||||||
__block NSMutableArray* accessibleContainers = [NSMutableArray new]; //array by design, should be ordered
|
__block NSMutableArray* accessibleContainers = [NSMutableArray new]; //array by design, should be ordered
|
||||||
if(!unrestrictedContainerAccess)
|
if(!unrestrictedContainerAccess)
|
||||||
{
|
{
|
||||||
[self enumerateAllInfoDictionaries:^(NSString *key, NSObject *value, BOOL *stop) {
|
__block NSString *dataContainer = nil;
|
||||||
if([key isEqualToString:@"CFBundleIdentifier"])
|
|
||||||
|
// If com.apple.private.security.container-required Entitlement is a string, prefer it to CFBundleIdentifier
|
||||||
|
[self enumerateAllEntitlements:^(NSString *key, NSObject *value, BOOL *stop) {
|
||||||
|
if([key isEqualToString:@"com.apple.private.security.container-required"])
|
||||||
{
|
{
|
||||||
NSString* valueStr = (NSString*)value;
|
NSString* valueString = (NSString*)value;
|
||||||
if([valueStr isKindOfClass:NSString.class])
|
if(valueString && [valueString isKindOfClass:NSString.class])
|
||||||
{
|
{
|
||||||
[accessibleContainers addObject:valueStr];
|
dataContainer = valueString;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}];
|
}];
|
||||||
|
|
||||||
|
// Else take CFBundleIdentifier
|
||||||
|
if (!dataContainer) {
|
||||||
|
[self enumerateAllInfoDictionaries:^(NSString *key, NSObject *value, BOOL *stop) {
|
||||||
|
if([key isEqualToString:@"CFBundleIdentifier"])
|
||||||
|
{
|
||||||
|
NSString* valueStr = (NSString*)value;
|
||||||
|
if([valueStr isKindOfClass:NSString.class])
|
||||||
|
{
|
||||||
|
dataContainer = valueStr;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}];
|
||||||
|
}
|
||||||
|
|
||||||
|
if (dataContainer) {
|
||||||
|
[accessibleContainers addObject:dataContainer];
|
||||||
|
}
|
||||||
|
|
||||||
[self enumerateAllEntitlements:^(NSString *key, NSObject *value, BOOL *stop)
|
[self enumerateAllEntitlements:^(NSString *key, NSObject *value, BOOL *stop)
|
||||||
{
|
{
|
||||||
if([key isEqualToString:@"com.apple.developer.icloud-container-identifiers"] || [key isEqualToString:@"com.apple.security.application-groups"] || [key isEqualToString:@"com.apple.security.system-groups"])
|
if([key isEqualToString:@"com.apple.developer.icloud-container-identifiers"] || [key isEqualToString:@"com.apple.security.application-groups"] || [key isEqualToString:@"com.apple.security.system-groups"])
|
||||||
|
|
Loading…
Reference in New Issue