Jump to content

6 posts in this topic

Recommended Posts

Posted (edited)

The hack works when it's in Flex, but when I make it to a tweak, it has no effect, except for the alert (alert works)

UPDATED TWEAK.XM

 

Tweak.xm:  (I've tried making 'TRUE' to ''true', and removing the space between ')' and method name)

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <SCLAlertView/SCLAlertView.h> 
#import <substratearc.h>



%hook ArkVPNManager

-(bool) isPremiumUser {
return TRUE;
}

-(void) setPremiumUser:(bool)arg1 {
arg1 = TRUE;
}

-(bool) inSubscription {
return TRUE;
}

-(void) setInSubscription:(bool)arg2 {
arg2 = TRUE;

%end


%hook SubscriptionViewController

-(bool) isInSubscription:(id)arg3 {
return TRUE;
}

%end

%hook IAPManager

+(bool) isADFree {
return TRUE
}

%end


%hook AppDelegate

- (BOOL)application:(id)fp8 didFinishLaunchingWithOptions:(id)fp12 { 

    SCLAlertView *alert = [[SCLAlertView alloc] initWithNewWindow];
	
	[alert addButton: @"Visit iOSGods.com!" actionBlock: ^(void) {
        [[UIApplication sharedApplication] openURL: [NSURL URLWithString: @"https://iosgods.com/"]];
    }];
	
	alert.shouldDismissOnTapOutside = NO;
	alert.backgroundType = Blur; 
	
	
	
	
    
    [alert showSuccess: nil 
              subTitle: @"Hacked by Zimon\n"
      closeButtonTitle: @"Thank You" 
              duration: 20.0f]; 
		return %orig;
}
%end

 

Makefile:

ARCHS = armv7 arm64
TARGET = iphone:clang:latest:latest
CFLAGS = -fobjc-arc

include theos/makefiles/common.mk

TWEAK_NAME = mastergopur
mastergopur_FILES = Tweak.xm
mastergopur_FILES = Tweak.xm $(shell find $(THEOS)/include/SCLAlertView -name '*.m')
mastergopur_FRAMEWORKS = UIKit MessageUI Social QuartzCore CoreGraphics Foundation AVFoundation Accelerate GLKit AudioToolbox
mastergopur_LDFLAGS += -Wl,-segalign,4000

include $(THEOS_MAKE_PATH)/tweak.mk

after-install::
	install.exec "killall -9 SpringBoard"

 

Updated by Guest
Posted
29 minutes ago, K1N5 PHo3niX said:

Show me what are the hooks in flex

Exact same as I put in tweak.xm, used my tool to extract and copy pasted. 

 

Posted
5 hours ago, KFCzZz said:

duration: 20.0f]; 

take out the ] 

 

No, lol... it's supposed to be there: TDJrsOu.png

 

And as I said, alert works, just not the hack <_<

Posted (edited)

You used the right bundle id in your plist? No typo made?

 

also you got +(bool), does it

give you that in Flex too?

Updated by Ted2

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines