mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-08-20 07:45:53 +00:00
Update uYouPlusPatches.xm
This commit is contained in:
parent
e0cfffc935
commit
e8ce19a683
1 changed files with 19 additions and 0 deletions
|
|
@ -5,6 +5,25 @@
|
|||
|
||||
# pragma mark - YouTube patches
|
||||
|
||||
static NSString *accessGroupID() {
|
||||
NSDictionary *query = [NSDictionary dictionaryWithObjectsAndKeys:
|
||||
(__bridge NSString *)kSecClassGenericPassword, (__bridge NSString *)kSecClass,
|
||||
@"bundleSeedID", kSecAttrAccount,
|
||||
@"", kSecAttrService,
|
||||
(id)kCFBooleanTrue, kSecReturnAttributes,
|
||||
nil];
|
||||
CFDictionaryRef result = nil;
|
||||
OSStatus status = SecItemCopyMatching((__bridge CFDictionaryRef)query, (CFTypeRef *)&result);
|
||||
if (status == errSecItemNotFound) {
|
||||
status = SecItemAdd((__bridge CFDictionaryRef)query, (CFTypeRef *)&result);
|
||||
if (status != errSecSuccess) {
|
||||
return nil;
|
||||
}
|
||||
}
|
||||
NSString *accessGroup = [(__bridge NSDictionary *)result objectForKey:(__bridge NSString *)kSecAttrAccessGroup];
|
||||
return accessGroup;
|
||||
}
|
||||
|
||||
// Fix Google Sign in Patch
|
||||
%group gGoogleSignInPatch
|
||||
%hook NSBundle
|
||||
|
|
|
|||
Loading…
Reference in a new issue