From ae2957dfcb67b9be1f6a7d9527829e2654906594 Mon Sep 17 00:00:00 2001 From: arichornlover <78001398+arichornlover@users.noreply.github.com> Date: Mon, 29 Apr 2024 22:20:33 -0500 Subject: [PATCH] Fix Google sign in --- YTLitePlus.xm | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/YTLitePlus.xm b/YTLitePlus.xm index 8256d6e..a81adeb 100644 --- a/YTLitePlus.xm +++ b/YTLitePlus.xm @@ -67,6 +67,16 @@ static BOOL IsEnabled(NSString *key) { } %end +// Fix Google Sign in by @PoomSmart and @level3tjg (qnblackcat/uYouPlus#684) +%hook NSBundle +- (NSDictionary *)infoDictionary { + NSMutableDictionary *info = %orig.mutableCopy; + if ([self isEqual:NSBundle.mainBundle]) + info[@"CFBundleIdentifier"] = @"com.google.ios.youtube"; + return info; +} +%end + // Skips content warning before playing *some videos - @PoomSmart %hook YTPlayabilityResolutionUserActionUIController - (void)showConfirmAlert { [self confirmAlertDidPressConfirm]; }