mirror of
https://github.com/opa334/TrollStore.git
synced 2025-04-14 00:03:12 +08:00
That would really fixup
This commit is contained in:
parent
04271d759f
commit
3f7e32b865
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user