mirror of
				https://github.com/SoPat712/YTLitePlus.git
				synced 2025-10-30 20:34:03 -04:00 
			
		
		
		
	added files via upload
This commit is contained in:
		
							
								
								
									
										21
									
								
								Tweaks/YTUHD/YTUHD-AVD/AVD.x
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								Tweaks/YTUHD/YTUHD-AVD/AVD.x
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,21 @@ | ||||
| #import <IOKit/IOKitLib.h> | ||||
| #import <dlfcn.h> | ||||
|  | ||||
| %hookf(kern_return_t, IOServiceGetMatchingServices, mach_port_t mainPort, CFDictionaryRef matching, io_iterator_t *existing) { | ||||
|     if (CFDictionaryGetValue(matching, CFSTR("AppleAVD"))) | ||||
|         return 0; | ||||
|     return %orig(mainPort, matching, existing); | ||||
| } | ||||
|  | ||||
| %hookf(BOOL, AppleAVDCheckPlatform) { | ||||
|     return YES; | ||||
| } | ||||
|  | ||||
| %ctor { | ||||
|     const char *avdPath = "/System/Library/VideoDecoders/AVD.videodecoder"; | ||||
|     void *avd = dlopen(avdPath, RTLD_LAZY); | ||||
|     MSImageRef ref = MSGetImageByName(avdPath); | ||||
|     void *AppleAVDCheckPlatform_p = MSFindSymbol(ref, "_AppleAVDCheckPlatform"); | ||||
|     HBLogDebug(@"AVD open: %d, pointer: %d", avd != NULL, AppleAVDCheckPlatform_p != NULL); | ||||
|     %init(AppleAVDCheckPlatform = (void *)AppleAVDCheckPlatform_p); | ||||
| } | ||||
							
								
								
									
										11
									
								
								Tweaks/YTUHD/YTUHD-AVD/Makefile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								Tweaks/YTUHD/YTUHD-AVD/Makefile
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,11 @@ | ||||
| TARGET := iphone:clang:latest:14.0 | ||||
| ARCHS = arm64 | ||||
|  | ||||
| include $(THEOS)/makefiles/common.mk | ||||
|  | ||||
| TWEAK_NAME = YTUHD-AVD | ||||
| $(TWEAK_NAME)_FILES = AVD.x | ||||
| $(TWEAK_NAME)_CFLAGS = -fobjc-arc | ||||
| $(TWEAK_NAME)_FRAMEWORKS = IOKit | ||||
|  | ||||
| include $(THEOS_MAKE_PATH)/tweak.mk | ||||
							
								
								
									
										21
									
								
								Tweaks/YTUHD/YTUHD-AVD/YTUHD-AVD.plist
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								Tweaks/YTUHD/YTUHD-AVD/YTUHD-AVD.plist
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,21 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||||
| <plist version="1.0"> | ||||
| <dict> | ||||
| 	<key>Filter</key> | ||||
| 	<dict> | ||||
| 		<key>Bundles</key> | ||||
| 		<array> | ||||
| 			<string>com.google.ios.youtube</string> | ||||
| 		</array> | ||||
| 		<key>Executables</key> | ||||
| 		<array> | ||||
| 			<string>mediaserverd</string> | ||||
| 		</array> | ||||
| 		<key>CoreFoundationVersion</key> | ||||
| 		<array> | ||||
| 			<real>1751.108</real> | ||||
| 		</array> | ||||
| 	</dict> | ||||
| </dict> | ||||
| </plist> | ||||
		Reference in New Issue
	
	Block a user
	 Balackburn
					Balackburn