Skip to content

Commit

Permalink
first blood
Browse files Browse the repository at this point in the history
  • Loading branch information
dlevi309 committed Sep 23, 2021
0 parents commit 6d12763
Show file tree
Hide file tree
Showing 8 changed files with 64 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*.theos
*.DS_Store
packages
15 changes: 15 additions & 0 deletions MIDaemonConfiguration.h
Original file line number Diff line number Diff line change
@@ -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
14 changes: 14 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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"
6 changes: 6 additions & 0 deletions Tweak.xm
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#include "MIDaemonConfiguration.h"

%hook MIDaemonConfiguration
-(BOOL)skipDeviceFamilyCheck { return YES; }
-(BOOL)skipThinningCheck { return YES; }
%end
9 changes: 9 additions & 0 deletions layout/DEBIAN/control
Original file line number Diff line number Diff line change
@@ -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
5 changes: 5 additions & 0 deletions layout/DEBIAN/postinst
Original file line number Diff line number Diff line change
@@ -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
5 changes: 5 additions & 0 deletions layout/DEBIAN/postrm
Original file line number Diff line number Diff line change
@@ -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
7 changes: 7 additions & 0 deletions skipDeviceFamilyCheck.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
Filter = {
Executables = (
installd
);
};
}

0 comments on commit 6d12763

Please sign in to comment.