From 0b864affc76a31d38734079963e91ece5ac1ae0f Mon Sep 17 00:00:00 2001 From: aricloverEXTRA <157071384+aricloverEXTRA@users.noreply.github.com> Date: Mon, 3 Nov 2025 22:48:21 -0600 Subject: [PATCH] Safer Google Sign In Patch (uYouPlusPatches.xm) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I’m reworking the patch, previously it was not safe to even be used in iOS 26. So I’m experimenting with an updated version of it. --- Sources/uYouPlusPatches.xm | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/Sources/uYouPlusPatches.xm b/Sources/uYouPlusPatches.xm index 5b41be9..0ab7a33 100644 --- a/Sources/uYouPlusPatches.xm +++ b/Sources/uYouPlusPatches.xm @@ -2,14 +2,29 @@ # pragma mark - YouTube patches -// Fix Google Sign in by @PoomSmart and @level3tjg (qnblackcat/uYouPlus#684) +// Fix Google Sign in Patch %group gGoogleSignInPatch %hook NSBundle - (NSDictionary *)infoDictionary { - NSMutableDictionary *info = %orig.mutableCopy; - if ([self isEqual:NSBundle.mainBundle]) - info[@"CFBundleIdentifier"] = @"com.google.ios.youtube"; - return info; + NSDictionary *orig = %orig; + if ([self isEqual:NSBundle.mainBundle]) { + NSArray *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]; + patched[@"CFBundleIdentifier"] = @"com.google.ios.youtube"; + return [patched copy]; + } + } + return orig; } %end %end