mirror of
https://github.com/opa334/TrollStore.git
synced 2026-07-02 11:17:51 +08:00
1.3.3
This commit is contained in:
@@ -50,7 +50,7 @@
|
||||
<string>iPhoneOS</string>
|
||||
</array>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1.3.2</string>
|
||||
<string>1.3.3</string>
|
||||
<key>LSRequiresIPhoneOS</key>
|
||||
<true/>
|
||||
<key>UIDeviceFamily</key>
|
||||
@@ -188,10 +188,5 @@
|
||||
</array>
|
||||
<key>LSSupportsOpeningDocumentsInPlace</key>
|
||||
<false/>
|
||||
<key>TSRootBinaries</key>
|
||||
<array>
|
||||
<string>trollstorehelper</string>
|
||||
<string>ldid</string>
|
||||
</array>
|
||||
</dict>
|
||||
</plist>
|
||||
|
||||
+9
-27
@@ -766,20 +766,6 @@ extern UIImage* imageWithSize(UIImage* image, CGSize size);
|
||||
NSString* version = [self versionString];
|
||||
NSString* sizeString = [self sizeString];
|
||||
|
||||
// Check if any bundle contains a root binary
|
||||
__block BOOL containsRootBinary = NO;
|
||||
[self enumerateAllInfoDictionaries:^(NSString *key, NSObject *value, BOOL *stop) {
|
||||
if([key isEqualToString:@"TSRootBinaries"])
|
||||
{
|
||||
NSArray* valueArr = (NSArray*)value;
|
||||
if([valueArr isKindOfClass:NSArray.class])
|
||||
{
|
||||
containsRootBinary = valueArr.count;
|
||||
if(containsRootBinary) *stop = YES;
|
||||
}
|
||||
}
|
||||
}];
|
||||
|
||||
// Check if any bundles main binary runs unsandboxed
|
||||
__block BOOL isUnsandboxed = NO;
|
||||
[self enumerateAllEntitlements:^(NSString *key, NSObject *value, BOOL *stop) {
|
||||
@@ -811,7 +797,7 @@ extern UIImage* imageWithSize(UIImage* image, CGSize size);
|
||||
}];
|
||||
|
||||
// Check if any bundles main binary can spawn an external binary
|
||||
__block BOOL canSpawnBinaries = NO;
|
||||
__block BOOL isPlatformApplication = NO;
|
||||
[self enumerateAllEntitlements:^(NSString *key, NSObject *value, BOOL *stop)
|
||||
{
|
||||
if([key isEqualToString:@"platform-application"])
|
||||
@@ -819,8 +805,8 @@ extern UIImage* imageWithSize(UIImage* image, CGSize size);
|
||||
NSNumber* valueNum = (NSNumber*)value;
|
||||
if(valueNum && [valueNum isKindOfClass:NSNumber.class])
|
||||
{
|
||||
canSpawnBinaries = valueNum.boolValue;
|
||||
if(canSpawnBinaries) *stop = YES;
|
||||
isPlatformApplication = valueNum.boolValue;
|
||||
if(isPlatformApplication) *stop = YES;
|
||||
}
|
||||
}
|
||||
}];
|
||||
@@ -1072,15 +1058,11 @@ extern UIImage* imageWithSize(UIImage* image, CGSize size);
|
||||
}
|
||||
|
||||
[description appendAttributedString:[[NSAttributedString alloc] initWithString:@"\n\nCapabilities" attributes:headerAttributes]];
|
||||
if(containsRootBinary && canSpawnBinaries && hasPersonaMngmt)
|
||||
if(isPlatformApplication && isUnsandboxed && hasPersonaMngmt)
|
||||
{
|
||||
[description appendAttributedString:[[NSAttributedString alloc] initWithString:@"\nThe app can spawn its own embedded binaries with root privileges." attributes:bodyDangerAttributes]];
|
||||
}
|
||||
else if(canSpawnBinaries && hasPersonaMngmt)
|
||||
{
|
||||
[description appendAttributedString:[[NSAttributedString alloc] initWithString:@"\nThe app can spawn arbitary binaries as root, but does not contain any such binaries by itself." attributes:bodyWarningAttributes]];
|
||||
}
|
||||
else if(canSpawnBinaries)
|
||||
else if(isPlatformApplication && isUnsandboxed)
|
||||
{
|
||||
[description appendAttributedString:[[NSAttributedString alloc] initWithString:@"\nThe app can spawn arbitary binaries as the mobile user." attributes:bodyWarningAttributes]];
|
||||
}
|
||||
@@ -1092,15 +1074,15 @@ extern UIImage* imageWithSize(UIImage* image, CGSize size);
|
||||
if(allowedTccServices.count)
|
||||
{
|
||||
[description appendAttributedString:[[NSAttributedString alloc] initWithString:@"\n\nPrivacy" attributes:headerAttributes]];
|
||||
[description appendAttributedString:[[NSAttributedString alloc] initWithString:@"\nThe app can access the following services without asking for permission:\n" attributes:bodyDangerAttributes]];
|
||||
[description appendAttributedString:[[NSAttributedString alloc] initWithString:[NSListFormatter localizedStringByJoiningStrings:[allowedTccServices allObjects]] attributes:bodyAttributes]];
|
||||
[description appendAttributedString:[[NSAttributedString alloc] initWithString:@"\nThe app can access the following services without asking for permission:\n" attributes:bodyWarningAttributes]];
|
||||
[description appendAttributedString:[[NSAttributedString alloc] initWithString:[NSListFormatter localizedStringByJoiningStrings:[allowedTccServices allObjects]] attributes:bodyWarningAttributes]];
|
||||
}
|
||||
|
||||
if (allowedMGKeys.count)
|
||||
{
|
||||
[description appendAttributedString:[[NSAttributedString alloc] initWithString:@"\n\nDevice Info" attributes:headerAttributes]];
|
||||
[description appendAttributedString:[[NSAttributedString alloc] initWithString:@"\nThe app can access protected information about this device.\n" attributes:bodyWarningAttributes]];
|
||||
[description appendAttributedString:[[NSAttributedString alloc] initWithString:[NSListFormatter localizedStringByJoiningStrings:[allowedMGKeys allObjects]] attributes:bodyAttributes]];
|
||||
[description appendAttributedString:[[NSAttributedString alloc] initWithString:@"\nThe app can access protected information about this device:\n" attributes:bodyWarningAttributes]];
|
||||
[description appendAttributedString:[[NSAttributedString alloc] initWithString:[NSListFormatter localizedStringByJoiningStrings:[allowedMGKeys allObjects]] attributes:bodyWarningAttributes]];
|
||||
}
|
||||
|
||||
if(unrestrictedContainerAccess || accessibleContainers.count)
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
Package: com.opa334.trollstore
|
||||
Name: TrollStore
|
||||
Version: 1.3.2
|
||||
Version: 1.3.3
|
||||
Architecture: iphoneos-arm
|
||||
Description: An awesome application!
|
||||
Maintainer: opa334
|
||||
|
||||
Reference in New Issue
Block a user