Skip to content

Commit

Permalink
Merge pull request akemin-dayo#50 from aydenp/master
Browse files Browse the repository at this point in the history
  • Loading branch information
Thatchapon Unprasert authored Nov 1, 2019
2 parents 03d3919 + d56fff9 commit e1edf4a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion simject/simject.xm
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ NSArray *simjectGenerateDylibList() {
blackListForFLEX = @[@"com.apple.Search.framework", @"com.apple.accessibility.AccessibilityUIServer", @"com.apple.backboardd"];
// Inject any dylib meant to be run for this application
for (NSString *dylib in simjectGenerateDylibList()) {
HBLogDebug(@"Injecting %@ into %@: %d", dylib, NSBundle.mainBundle.bundleIdentifier, dlopen([dylib UTF8String], RTLD_LAZY | RTLD_GLOBAL) != NULL);
BOOL success = dlopen([dylib UTF8String], RTLD_LAZY | RTLD_GLOBAL) != NULL;
HBLogDebug(@"Injecting %@ into %@: %d.", dylib, NSBundle.mainBundle.bundleIdentifier, success);
if (!success) HBLogError(@"Couldn't inject %@ into %@:\n%s.", dylib, NSBundle.mainBundle.bundleIdentifier, dlerror());
}
}
1 change: 1 addition & 0 deletions simjectExampleTweak/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@ ifneq (,$(filter x86_64 i386,$(ARCHS)))
setup:: clean all
@rm -f /opt/simject/$(TWEAK_NAME).dylib
@cp -v $(THEOS_OBJ_DIR)/$(TWEAK_NAME).dylib /opt/simject/$(TWEAK_NAME).dylib
@codesign -f -s - /opt/simject/$(TWEAK_NAME).dylib
@cp -v $(PWD)/$(TWEAK_NAME).plist /opt/simject
endif

0 comments on commit e1edf4a

Please sign in to comment.