From 9258ccd860d1cfb60749dbfef3f06cb2b5c0bb53 Mon Sep 17 00:00:00 2001 From: "aricloverGitHub (INACTIVE)" <78001398+arichornlover@users.noreply.github.com> Date: Sun, 8 Jun 2025 19:55:38 -0500 Subject: [PATCH] Undo uYouPlusPatches Commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Rewriting the Sign In Patch didn’t work as I hoped, so you will still have to manually turn it off. --- Sources/uYouPlusPatches.xm | 31 +------------------------------ 1 file changed, 1 insertion(+), 30 deletions(-) diff --git a/Sources/uYouPlusPatches.xm b/Sources/uYouPlusPatches.xm index a78d428..5b41be9 100644 --- a/Sources/uYouPlusPatches.xm +++ b/Sources/uYouPlusPatches.xm @@ -6,41 +6,12 @@ %group gGoogleSignInPatch %hook NSBundle - (NSDictionary *)infoDictionary { - NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; - BOOL patchEnabled = [defaults boolForKey:@"kGoogleSignInPatch"]; - if (!patchEnabled) { - return %orig; - } - NSInteger restartCount = [defaults integerForKey:@"kGoogleSignInPatchRestartCount"]; - if (restartCount >= 2) { - [defaults setBool:NO forKey:@"kGoogleSignInPatch"]; - [defaults synchronize]; - return %orig; - } - [defaults setInteger:restartCount + 1 forKey:@"kGoogleSignInPatchRestartCount"]; - [defaults synchronize]; - BOOL crashDetected = [defaults boolForKey:@"kGoogleSignInPatchCrashFlag"]; - if (crashDetected) { - [defaults setBool:NO forKey:@"kGoogleSignInPatchCrashFlag"]; - [defaults setBool:NO forKey:@"kGoogleSignInPatch"]; - [defaults synchronize]; - return %orig; - } NSMutableDictionary *info = %orig.mutableCopy; - if ([self isEqual:NSBundle.mainBundle]) { + if ([self isEqual:NSBundle.mainBundle]) info[@"CFBundleIdentifier"] = @"com.google.ios.youtube"; - } return info; } %end -%hook NSException -+ (void)raise:(NSException *)exception { - NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; - [defaults setBool:YES forKey:@"kGoogleSignInPatchCrashFlag"]; - [defaults synchronize]; - %orig(exception); -} -%end %end // Workaround for MiRO92/uYou-for-YouTube#12, qnblackcat/uYouPlus#263