diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ac7b489 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +*.theos +*.DS_Store +packages \ No newline at end of file diff --git a/MIDaemonConfiguration.h b/MIDaemonConfiguration.h new file mode 100644 index 0000000..e406719 --- /dev/null +++ b/MIDaemonConfiguration.h @@ -0,0 +1,15 @@ +@interface MIGlobalConfiguration : NSObject {} +@end + +@interface MIDaemonConfiguration : MIGlobalConfiguration {} +@property (nonatomic,readonly) BOOL skipDeviceFamilyCheck; +@property (nonatomic,readonly) BOOL skipThinningCheck; +@property (nonatomic,readonly) BOOL allowPatchWithoutSinf; +@property (nonatomic,readonly) BOOL codeSigningEnforcementIsDisabled; +@property (nonatomic,readonly) BOOL isInternalImageType; +-(BOOL)isInternalImageType; +-(BOOL)codeSigningEnforcementIsDisabled; +-(BOOL)skipDeviceFamilyCheck; +-(BOOL)skipThinningCheck; +-(BOOL)allowPatchWithoutSinf; +@end \ No newline at end of file diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..1271a47 --- /dev/null +++ b/Makefile @@ -0,0 +1,14 @@ +GO_EASY_ON_ME=1 + +ARCHS = arm64 arm64e + +include $(THEOS)/makefiles/common.mk + +TWEAK_NAME = skipDeviceFamilyCheck +skipDeviceFamilyCheck_FILES = Tweak.xm +skipDeviceFamilyCheck_FRAMEWORKS = CoreFoundation + +include $(THEOS_MAKE_PATH)/tweak.mk + +after-install:: + install.exec "killall -9 backboardd" \ No newline at end of file diff --git a/Tweak.xm b/Tweak.xm new file mode 100644 index 0000000..e46a18d --- /dev/null +++ b/Tweak.xm @@ -0,0 +1,6 @@ +#include "MIDaemonConfiguration.h" + +%hook MIDaemonConfiguration +-(BOOL)skipDeviceFamilyCheck { return YES; } +-(BOOL)skipThinningCheck { return YES; } +%end diff --git a/layout/DEBIAN/control b/layout/DEBIAN/control new file mode 100644 index 0000000..374ac24 --- /dev/null +++ b/layout/DEBIAN/control @@ -0,0 +1,9 @@ +Package: daniel.skipdevicefamilycheck +Name: skipDeviceFamilyCheck +Depends: mobilesubstrate +Version: 0.0.1 +Architecture: iphoneos-arm +Description: Allow iPad app installation on any device +Maintainer: daniel +Author: daniel +Section: Tweaks diff --git a/layout/DEBIAN/postinst b/layout/DEBIAN/postinst new file mode 100755 index 0000000..b83302f --- /dev/null +++ b/layout/DEBIAN/postinst @@ -0,0 +1,5 @@ +#!/bin/sh +killall -9 installd +launchctl unload -w /System/Library/LaunchDaemons/com.apple.mobile.installd.plist +launchctl load -w /System/Library/LaunchDaemons/com.apple.mobile.installd.plist +exit 0 diff --git a/layout/DEBIAN/postrm b/layout/DEBIAN/postrm new file mode 100755 index 0000000..b83302f --- /dev/null +++ b/layout/DEBIAN/postrm @@ -0,0 +1,5 @@ +#!/bin/sh +killall -9 installd +launchctl unload -w /System/Library/LaunchDaemons/com.apple.mobile.installd.plist +launchctl load -w /System/Library/LaunchDaemons/com.apple.mobile.installd.plist +exit 0 diff --git a/skipDeviceFamilyCheck.plist b/skipDeviceFamilyCheck.plist new file mode 100644 index 0000000..c588deb --- /dev/null +++ b/skipDeviceFamilyCheck.plist @@ -0,0 +1,7 @@ +{ + Filter = { + Executables = ( + installd + ); + }; +} \ No newline at end of file