Jump to content

9 posts in this topic

Recommended Posts

Posted (edited)

Guys i have this error

 

VNF7i.png

 

 

Here's my tweak.xm

http://hastebin.com/iguverures.php

 

Just in case https://i.imgur.com/7mGPyi7.png

 

 

#define PLIST_PATH @"/var/mobile/Library/Preferences/com.ButterSmooth.ArchiePatch.plist"
 
inline bool GetPrefBool(NSString *key) {
return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] boolValue];
}

//* Remove Jailbreak Protection *//

%hook FlurryUtil
+(BOOL) deviceIsJailbroken
	{
	return FALSE;
	}
%end

%hook CLSAnalyticsMetadataController
+(bool) hostJailbroken
	{
	return FALSE;
	}
%end

//* Security/Tracking/Advert *//
%hook FlurryUtil
+(BOOL) appIsCracked
	{
	return FALSE;
	}
%end

%hook CLSAnalyticsMetadataController
+(bool) trackingForAdvertisingEnabled
	{
	return FALSE;
	}
%end

%hook ACTAutomatedUsageTracker

-(bool) shouldContinueReporting
	{
	return FALSE;
	}
%end

%hook GAI
-(bool) trackUncaughtExceptions
	{
	return FALSE;
	}
%end

%hook TAGAdIdAccess
-(bool) retrieveTrackingFlag
	{
	return FALSE;
	}
%end


%hook TAGAdvertisingTrackingEnabledMacro
-(bool) advertisingTrackingEnabled
	{
	return FALSE;
	}
%end

//* Subscription/Transaction Faker *//

%hook Madefire.MFSubscriptionManager
-(bool) validSubscriptionForUser:(id) 
	{
		return TRUE;
	}
%end

%hook Madefire.MFSubscriptionManager
-(bool) validSubscriptionForSkus:(id)
	{
		return TRUE;
	}
%end

%hook Madefire.MFUserSubscription
-(bool) isValid
	{
		return TRUE;
	}
%end

%hook Madefire.MFUserSubscription
-(bool) canceled
	{
		return FALSE;
	}
%end

%hook MFWork
-(bool) freeTier
	{
		return TRUE;
	}
%end

%hook CargoBay
-(bool) isValidTransaction:(id) error:(id")
	{
		return TRUE;
	}
%end

%hook UAAnalystics
-(bool) isEventValid:(id)
	{
		return TRUE;
	}
%end

%hook AFAPIClient
-(bool) checkNeedsVerification:(id)
	{
		return FALSE;
	}
%end

%hook MFPurchase
-(bool) verifyReceiptWithPublicKey
	{
		return FALSE;
	}
%end

%hook MFCrypto
+(bool) verifySignatureUsingSHA1withRSA:(id) plainData:(id) publicKey:(id)
	{
		return FALSE;
	}
%end

%hook MFCrypto
+(bool) addPublicKeyToKeyChain:(id)
	{
		return TRUE;
	}
%end

%hook TAGFunctionCallImplementation
-(bool) hasRequiredKeys:(id)
	{
		return TRUE;
	}
%end


/* Popup with a link 

Varieties of a UIAlertView Popup can be found here: http://iosgods.com/topic/13988-varieties-of-uialertview-types-to-use-in-your-tweaks-patchers/

*/


%hook AppDelegate // Change this with your Application's Delegate. AppController, UnityAppController, GameDelegate etc.

- (BOOL)application:(id)fp8 didFinishLaunchingWithOptions:(id)fp12 { // Popup only once at each launch of the app.
UIAlertView *igcredits = [[UIAlertView alloc] initWithTitle:@"ArchiePatch Cheats" 
                                                  message:@"\nArchiePatch Cheats by ButterSmooth for iOSGods.com"
                                                 delegate:self 
                                                                                cancelButtonTitle:@"Thanks" 
                                                                                otherButtonTitles:@"Visit Us", nil]; 
[igcredits show];
[igcredits release]; 
return %orig();
}
 
%new
-(void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex {
 
NSString *button = [alertView buttonTitleAtIndex:buttonIndex];
 
        if([button isEqualToString:@"Visit Us"])
        {
                [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://iosgods.com/"]];                                                                                
        }
}
%end 
Updated by DiDA
Posted

 

%hook CargoBay
-(bool) isValidTransaction:(id) error:(id")
    {
        return TRUE;
    }
%end

 

" next to id but after that u get more tons of errors

Posted (edited)

 

%hook CargoBay
-(bool) isValidTransaction:(id) error:(id")
	{
		return TRUE;
	}
%end
" next to id but after that u get more tons of errors
Oh my bad its a * instead of " xD

Okay thanks thats fixed now its too much error. I will try to fix those :x does the lexical constant need fixing or something ._. ?

Updated by ButterSmooth

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