1
0
mirror of https://github.com/opa334/TrollStore.git synced 2025-04-13 07:43:12 +08:00

That would really fixup

This commit is contained in:
Halo-Michael 2022-10-10 16:51:34 +08:00
parent 04271d759f
commit 3f7e32b865

View File

@ -16,9 +16,10 @@ extern int posix_spawnattr_set_persona_gid_np(const posix_spawnattr_t* __restric
void chineseWifiFixup(void) void chineseWifiFixup(void)
{ {
Class K_PSAppDataUsagePolicyCache = NSClassFromString(@"PSAppDataUsagePolicyCache"); NSBundle *bundle = [NSBundle bundleWithPath:@"/System/Library/PrivateFrameworks/SettingsCellular.framework"];
PSAppDataUsagePolicyCache* cache = [K_PSAppDataUsagePolicyCache sharedInstance]; [bundle load];
[cache setUsagePoliciesForBundle:NSBundle.mainBundle.bundleIdentifier cellular:true wifi:true]; [[NSClassFromString(@"PSAppDataUsagePolicyCache") sharedInstance] setUsagePoliciesForBundle:NSBundle.mainBundle.bundleIdentifier cellular:true wifi:true];
[bundle unload];
} }
NSString* helperPath(void) NSString* helperPath(void)
@ -220,4 +221,4 @@ void fetchLatestTrollStoreVersion(void (^completionHandler)(NSString* latestVers
}]; }];
[task resume]; [task resume];
} }