mirror of https://github.com/opa334/TrollStore.git
Show developer mode status in app info
This commit is contained in:
parent
2ac6bc280f
commit
f57326e0a4
|
@ -1012,6 +1012,23 @@ extern UIImage* imageWithSize(UIImage* image, CGSize size);
|
||||||
}
|
}
|
||||||
}];
|
}];
|
||||||
|
|
||||||
|
// Check if any bundles have get-task-allow, which require dev mode enabled on 16+
|
||||||
|
__block BOOL needsDevMode = NO;
|
||||||
|
if (@available(iOS 16.0, *)) {
|
||||||
|
[self enumerateAllEntitlements:^(NSString *key, NSObject *value, BOOL *stop)
|
||||||
|
{
|
||||||
|
if([key isEqualToString:@"get-task-allow"])
|
||||||
|
{
|
||||||
|
NSNumber* valueNum = (NSNumber*)value;
|
||||||
|
if(valueNum && [valueNum isKindOfClass:NSNumber.class])
|
||||||
|
{
|
||||||
|
hasPersonaMngmt = valueNum.boolValue;
|
||||||
|
if(hasPersonaMngmt) *stop = YES;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}];
|
||||||
|
}
|
||||||
|
|
||||||
NSMutableParagraphStyle* leftAlignment = [[NSMutableParagraphStyle alloc] init];
|
NSMutableParagraphStyle* leftAlignment = [[NSMutableParagraphStyle alloc] init];
|
||||||
leftAlignment.alignment = NSTextAlignmentLeft;
|
leftAlignment.alignment = NSTextAlignmentLeft;
|
||||||
|
|
||||||
|
@ -1068,6 +1085,7 @@ extern UIImage* imageWithSize(UIImage* image, CGSize size);
|
||||||
[description appendAttributedString:[[NSAttributedString alloc] initWithString:[NSString stringWithFormat:@"\nBundle Identifier: %@", bundleId] attributes:bodyAttributes]];
|
[description appendAttributedString:[[NSAttributedString alloc] initWithString:[NSString stringWithFormat:@"\nBundle Identifier: %@", bundleId] attributes:bodyAttributes]];
|
||||||
[description appendAttributedString:[[NSAttributedString alloc] initWithString:[NSString stringWithFormat:@"\nVersion: %@", version] attributes:bodyAttributes]];
|
[description appendAttributedString:[[NSAttributedString alloc] initWithString:[NSString stringWithFormat:@"\nVersion: %@", version] attributes:bodyAttributes]];
|
||||||
[description appendAttributedString:[[NSAttributedString alloc] initWithString:[NSString stringWithFormat:@"\nSize: %@", sizeString] attributes:bodyAttributes]];
|
[description appendAttributedString:[[NSAttributedString alloc] initWithString:[NSString stringWithFormat:@"\nSize: %@", sizeString] attributes:bodyAttributes]];
|
||||||
|
[description appendAttributedString:[[NSAttributedString alloc] initWithString:[NSString stringWithFormat:@"\nRequires Developer Mode: %@", needsDevMode ? @"Yes" : @"No"] attributes:bodyAttributes]];
|
||||||
|
|
||||||
[description appendAttributedString:[[NSAttributedString alloc] initWithString:@"\n\nSandboxing" attributes:headerAttributes]];
|
[description appendAttributedString:[[NSAttributedString alloc] initWithString:@"\n\nSandboxing" attributes:headerAttributes]];
|
||||||
if(isUnsandboxed)
|
if(isUnsandboxed)
|
||||||
|
|
Loading…
Reference in New Issue