mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-05-23 15:52:17 +00:00
revert infoDictionary method in NSBundle hook
This commit is contained in:
parent
d4f8cf0cc0
commit
b49c27ea7e
1 changed files with 2 additions and 12 deletions
|
|
@ -8,18 +8,8 @@
|
|||
- (NSDictionary *)infoDictionary {
|
||||
NSDictionary *orig = %orig;
|
||||
if ([self isEqual:NSBundle.mainBundle]) {
|
||||
NSArray<NSString *> *stack = [NSThread callStackSymbols];
|
||||
BOOL needsSpoof = NO;
|
||||
for (NSString *frame in stack) {
|
||||
if ([frame containsString:@"GIDSignIn"] ||
|
||||
[frame containsString:@"GTMSessionFetcher"] ||
|
||||
[frame containsString:@"GoogleSignIn"]) {
|
||||
needsSpoof = YES;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (needsSpoof) {
|
||||
NSMutableDictionary *patched = [orig mutableCopy];
|
||||
NSMutableDictionary *patched = [orig mutableCopy];
|
||||
if (patched) {
|
||||
patched[@"CFBundleIdentifier"] = @"com.google.ios.youtube";
|
||||
return [patched copy];
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue