Jump to content

3 posts in this topic

Recommended Posts

Posted (edited)

Anyone can help me with this?

I decompiled a .dylid into this:

var_8= -8
var_4= -4

SUB             SP, SP, #8
MOVS            R2, #1
STR             R0, [SP,#8+var_4]
STR             R1, [SP,#8+var_8]
MOV             R0, R2
ADD             SP, SP, #8
BX              LR

And the actual code is:

%hook SomeClass
- (int)somemethod {
return 1;
}
%end

I'm learning how to hack tweak by creating my own tweak and hack my own tweak first :)

I try to make it to return 0 (false). I did by changing MOVS R2, #1 to MOVS R2, #0 but it still returning 1. Any ideas?

Updated by latestz

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