Jump to content

How to return -(bool) productPurchased:(id) ?


Go to solution Solved by ProCydia,

13 posts in this topic

Recommended Posts

Posted (edited)

So I am trying to hack an app's IAP,which won't work with IAP crackers. So I found this function -(bool) productPurchased:(id) and I was wondering what would be the return value?

Updated by NitroxicDemon
  • Solution
Posted (edited)

%hook (Name of Class)

 

-(bool) productPurchased:(id)fp8 {

return TRUE;

%orig(fp8);

}

%end

 

I think that will work.

Updated by castix
Posted

Try this:
 

-(bool)productPurchased:(id)fp8 {
return TRUE;
fp8 = [NSNumber numberWithBool:TRUE];
}
%end
Posted

Don't return the argument in this function :mellow:

 

- (bool)productPurchased:(id)fp8 {
     return true;
}
This method won't hack a shit anyway :3
Posted

Pro Cydia's code was right, I was getting some error when doing your code @DiDA. But @castix was right, it didn't work.

Marked ProCydia's post as solved. :)

 

What error were you getting with the second code?

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