Skip to content

Commit bbe7078

Browse files
authored
Add files via upload
1 parent 1ca3e25 commit bbe7078

4 files changed

Lines changed: 60 additions & 0 deletions

File tree

Makefile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
TARGET := iphone:clang:latest:7.0
2+
INSTALL_TARGET_PROCESSES = YouTube
3+
4+
5+
include $(THEOS)/makefiles/common.mk
6+
7+
TWEAK_NAME = YTSideloadFix
8+
9+
YTSideloadFix_FILES = Tweak.x
10+
YTSideloadFix_CFLAGS = -fobjc-arc
11+
12+
include $(THEOS_MAKE_PATH)/tweak.mk

Tweak.x

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
%hook SSOKeychain
2+
+ (id)accessGroup {
3+
NSDictionary *query = [NSDictionary dictionaryWithObjectsAndKeys:
4+
(__bridge NSString *)kSecClassGenericPassword, (__bridge NSString *)kSecClass,
5+
@"bundleSeedID", kSecAttrAccount,
6+
@"", kSecAttrService,
7+
(id)kCFBooleanTrue, kSecReturnAttributes,
8+
nil];
9+
CFDictionaryRef result = nil;
10+
OSStatus status = SecItemCopyMatching((__bridge CFDictionaryRef)query, (CFTypeRef *)&result);
11+
if (status == errSecItemNotFound)
12+
status = SecItemAdd((__bridge CFDictionaryRef)query, (CFTypeRef *)&result);
13+
if (status != errSecSuccess)
14+
return nil;
15+
NSString *accessGroup = [(__bridge NSDictionary *)result objectForKey:(__bridge NSString *)kSecAttrAccessGroup];
16+
17+
return accessGroup;
18+
}
19+
20+
+ (id)sharedAccessGroup {
21+
NSDictionary *query = [NSDictionary dictionaryWithObjectsAndKeys:
22+
(__bridge NSString *)kSecClassGenericPassword, (__bridge NSString *)kSecClass,
23+
@"bundleSeedID", kSecAttrAccount,
24+
@"", kSecAttrService,
25+
(id)kCFBooleanTrue, kSecReturnAttributes,
26+
nil];
27+
CFDictionaryRef result = nil;
28+
OSStatus status = SecItemCopyMatching((__bridge CFDictionaryRef)query, (CFTypeRef *)&result);
29+
if (status == errSecItemNotFound)
30+
status = SecItemAdd((__bridge CFDictionaryRef)query, (CFTypeRef *)&result);
31+
if (status != errSecSuccess)
32+
return nil;
33+
NSString *accessGroup = [(__bridge NSDictionary *)result objectForKey:(__bridge NSString *)kSecAttrAccessGroup];
34+
35+
return accessGroup;
36+
}
37+
38+
%end

YTSideloadFix.plist

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{ Filter = { Bundles = ( "com.google.ios.youtube" ); }; }

control

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
Package: com.jawshoeadan.ytsideloadfix
2+
Name: YTSideloadFix
3+
Version: 0.0.1
4+
Architecture: iphoneos-arm
5+
Description: An awesome MobileSubstrate tweak!
6+
Maintainer: Jawshoeadan
7+
Author: Jawshoeadan
8+
Section: Tweaks
9+
Depends: mobilesubstrate (>= 0.9.5000)

0 commit comments

Comments
 (0)