Skip to content

Commit 4f5091f

Browse files
committed
Revert "Brought back %hookf (fishhook)"
This reverts commit 33be83b.
1 parent 33be83b commit 4f5091f

File tree

3 files changed

+1
-22
lines changed

3 files changed

+1
-22
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
TARGET := iphone:clang:latest:11.0
22
ARCHS = arm64
3-
PACKAGE_VERSION = 1.2.1
3+
PACKAGE_VERSION = 1.2.0
44
DEBUG = 0
55

66
include $(THEOS)/makefiles/common.mk

README.md

-2
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,3 @@
33
Potentially useful for sideloaded YouTube where certain operations read bundle ID of the app rather than assuming it's just the official YouTube.
44

55
Bundle identifier checks serve multiple purposes. Some apps (YouTube included) does it for functionalities (for example, check if itself is a developer build). Some apps does it for integrity (so that it won't run in the "contaminated" self). Some apps does it for analytics.
6-
7-
Meant to be used with fishhook.

Tweak.x

-19
Original file line numberDiff line numberDiff line change
@@ -108,22 +108,3 @@
108108
}
109109

110110
%end
111-
112-
static const CFStringRef YT_BUNDLE_ID = CFSTR("com.google.ios.youtube");
113-
static const CFStringRef YT_NAME = CFSTR("YouTube");
114-
115-
%hookf(CFMutableDictionaryRef, CFBundleGetInfoDictionary, CFBundleRef bundle) {
116-
CFMutableDictionaryRef dict = %orig(bundle);
117-
if (dict != NULL) {
118-
CFStringRef packageType = (CFStringRef)CFDictionaryGetValue(dict, CFSTR("CFBundlePackageType"));
119-
if (packageType != NULL && CFStringCompare(packageType, CFSTR("APPL"), kCFCompareCaseInsensitive) == kCFCompareEqualTo) {
120-
CFStringRef currentBundleIdentifier = (CFStringRef)CFDictionaryGetValue(dict, kCFBundleIdentifierKey);
121-
if (currentBundleIdentifier != NULL && CFStringHasPrefix(currentBundleIdentifier, YT_BUNDLE_ID)) {
122-
CFDictionarySetValue(dict, kCFBundleIdentifierKey, YT_BUNDLE_ID);
123-
CFDictionarySetValue(dict, kCFBundleNameKey, YT_NAME);
124-
CFDictionarySetValue(dict, CFSTR("CFBundleDisplayName"), YT_NAME);
125-
}
126-
}
127-
}
128-
return dict;
129-
}

0 commit comments

Comments
 (0)