mirror of https://github.com/opa334/TrollStore.git
1.1.1
This commit is contained in:
parent
f89279b620
commit
2900226770
|
@ -1,6 +1,6 @@
|
|||
Package: com.opa334.trollstoreroothelper
|
||||
Name: trollstoreroothelper
|
||||
Version: 1.1
|
||||
Version: 1.1.1
|
||||
Architecture: iphoneos-arm
|
||||
Description: An awesome tool of some sort!!
|
||||
Maintainer: opa334
|
||||
|
|
|
@ -771,6 +771,8 @@ int installApp(NSString* appPath, BOOL sign, BOOL force)
|
|||
}
|
||||
|
||||
int uninstallApp(NSString* appPath, NSString* appId)
|
||||
{
|
||||
if(appId)
|
||||
{
|
||||
BKSTerminateApplicationForReasonAndReportWithDescription(appId, 5, false, @"TrollStore - App uninstalled");
|
||||
|
||||
|
@ -809,6 +811,7 @@ int uninstallApp(NSString* appPath, NSString* appId)
|
|||
[[NSFileManager defaultManager] removeItemAtURL:pluginURL error:nil];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// unregister app
|
||||
registerPath((char*)appPath.UTF8String, 1);
|
||||
|
@ -855,7 +858,6 @@ int uninstallAppByPath(NSString* appPath)
|
|||
{
|
||||
if(!appPath) return 1;
|
||||
NSString* appId = appIdForAppPath(appPath);
|
||||
if(!appId) return 1;
|
||||
return uninstallApp(appPath, appId);
|
||||
}
|
||||
|
||||
|
|
|
@ -52,6 +52,7 @@ BOOL constructContainerizationForEntitlements(NSDictionary* entitlements)
|
|||
{
|
||||
if(noContainer.boolValue)
|
||||
{
|
||||
NSLog(@"constructContainerizationForEntitlements NO com.apple.private.security.no-container");
|
||||
return NO;
|
||||
}
|
||||
}
|
||||
|
@ -61,10 +62,12 @@ BOOL constructContainerizationForEntitlements(NSDictionary* entitlements)
|
|||
{
|
||||
if(!containerRequired.boolValue)
|
||||
{
|
||||
NSLog(@"constructContainerizationForEntitlements NO com.apple.private.security.container-required");
|
||||
return NO;
|
||||
}
|
||||
}
|
||||
|
||||
NSLog(@"constructContainerizationForEntitlements YES");
|
||||
return YES;
|
||||
}
|
||||
|
||||
|
|
|
@ -52,7 +52,7 @@
|
|||
<string>iPhoneOS</string>
|
||||
</array>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1.1</string>
|
||||
<string>1.1.1</string>
|
||||
<key>LSRequiresIPhoneOS</key>
|
||||
<true/>
|
||||
<key>UIDeviceFamily</key>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
Package: com.opa334.trollstorehelper
|
||||
Name: TrollStore Helper
|
||||
Version: 1.1
|
||||
Version: 1.1.1
|
||||
Architecture: iphoneos-arm
|
||||
Description: Helper utility to install and manage TrollStore!
|
||||
Maintainer: opa334
|
||||
|
|
|
@ -30,5 +30,12 @@
|
|||
<true/>
|
||||
<key>com.apple.private.uninstall.deletion</key>
|
||||
<true/>
|
||||
<key>com.apple.CommCenter.fine-grained</key>
|
||||
<array>
|
||||
<string>cellular-plan</string>
|
||||
<string>data-usage</string>
|
||||
<string>data-allowed-write</string>
|
||||
<string>preferences-write</string>
|
||||
</array>
|
||||
</dict>
|
||||
</plist>
|
|
@ -1,10 +1,12 @@
|
|||
#import <Foundation/Foundation.h>
|
||||
#import "TSPHAppDelegate.h"
|
||||
#import "../Store/TSUtil.h"
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
@autoreleasepool {
|
||||
NSBundle* mcmBundle = [NSBundle bundleWithPath:@"/System/Library/PrivateFrameworks/MobileContainerManager.framework"];
|
||||
[mcmBundle load];
|
||||
chineseWifiFixup();
|
||||
return UIApplicationMain(argc, argv, nil, NSStringFromClass(TSPHAppDelegate.class));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -50,7 +50,7 @@
|
|||
<string>iPhoneOS</string>
|
||||
</array>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1.1</string>
|
||||
<string>1.1.1</string>
|
||||
<key>LSRequiresIPhoneOS</key>
|
||||
<true/>
|
||||
<key>UIDeviceFamily</key>
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
@import Foundation;
|
||||
|
||||
extern void chineseWifiFixup(void);
|
||||
extern NSString* helperPath(void);
|
||||
extern void printMultilineNSString(NSString* stringToPrint);
|
||||
extern int spawnRoot(NSString* path, NSArray* args, NSString** stdOut, NSString** stdErr);
|
||||
|
|
|
@ -4,11 +4,23 @@
|
|||
#import <spawn.h>
|
||||
#import <sys/sysctl.h>
|
||||
|
||||
@interface PSAppDataUsagePolicyCache : NSObject
|
||||
+ (instancetype)sharedInstance;
|
||||
- (void)setUsagePoliciesForBundle:(NSString*)bundleId cellular:(BOOL)cellular wifi:(BOOL)wifi;
|
||||
@end
|
||||
|
||||
#define POSIX_SPAWN_PERSONA_FLAGS_OVERRIDE 1
|
||||
extern int posix_spawnattr_set_persona_np(const posix_spawnattr_t* __restrict, uid_t, uint32_t);
|
||||
extern int posix_spawnattr_set_persona_uid_np(const posix_spawnattr_t* __restrict, uid_t);
|
||||
extern int posix_spawnattr_set_persona_gid_np(const posix_spawnattr_t* __restrict, uid_t);
|
||||
|
||||
void chineseWifiFixup(void)
|
||||
{
|
||||
Class K_PSAppDataUsagePolicyCache = NSClassFromString(@"PSAppDataUsagePolicyCache");
|
||||
PSAppDataUsagePolicyCache* cache = [K_PSAppDataUsagePolicyCache sharedInstance];
|
||||
[cache setUsagePoliciesForBundle:NSBundle.mainBundle.bundleIdentifier cellular:true wifi:true];
|
||||
}
|
||||
|
||||
NSString* helperPath(void)
|
||||
{
|
||||
return [[NSBundle mainBundle].bundlePath stringByAppendingPathComponent:@"trollstorehelper"];
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
Package: com.opa334.trollstore
|
||||
Name: TrollStore
|
||||
Version: 1.1
|
||||
Version: 1.1.1
|
||||
Architecture: iphoneos-arm
|
||||
Description: An awesome application!
|
||||
Maintainer: opa334
|
||||
|
|
|
@ -32,5 +32,12 @@
|
|||
<true/>
|
||||
<key>com.apple.private.security.storage.MobileDocuments</key>
|
||||
<true/>
|
||||
<key>com.apple.CommCenter.fine-grained</key>
|
||||
<array>
|
||||
<string>cellular-plan</string>
|
||||
<string>data-usage</string>
|
||||
<string>data-allowed-write</string>
|
||||
<string>preferences-write</string>
|
||||
</array>
|
||||
</dict>
|
||||
</plist>
|
|
@ -1,8 +1,10 @@
|
|||
#import <Foundation/Foundation.h>
|
||||
#import "TSAppDelegate.h"
|
||||
#import "TSUtil.h"
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
@autoreleasepool {
|
||||
chineseWifiFixup();
|
||||
return UIApplicationMain(argc, argv, nil, NSStringFromClass(TSAppDelegate.class));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue