i make a hooking
game name Sugar Blast: Pop & Relax by Rovio Entertainment
link https://apps.apple.com/qa/app/sugar-blast-pop-relax/id1468893314
Tweak.x
#import <UIKit/UIKit.h>
%hook Inventory
- (int)GetCoins {
NSLog(@"GetCoins method hooked and returning 9999");
return 9999;
}
%end
projectcake.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Filter</key>
<dict>
<key>Bundles</key>
<array>
<string>com.rovio.projectcake</string>
</array>
</dict>
</dict>
</plist>
// Token: 0x06000272 RID: 626 RVA: 0x00002A30 File Offset: 0x00000C30
[Token(Token = "0x6000272")]
[Address(RVA = "0x1ADA504", Offset = "0x1ADA504", VA = "0x1ADA504")]
public int GetCoins()
{
return 0;
}
namespace DreamBlast
{
// Token: 0x020000A2 RID: 162
[Token(Token = "0x20000A2")]
public abstract class Inventory : ScriptableObject, IInitializable
when build deb ok when installing its no chang anyting
if i patching it the offset 1ADA504 to 00F0271EC0035FD6 ITS WORKING
BUT WITH PATCHIN WITH HOOKIN NOT WORKING
ANY HELP ABOUT IT
IM NEW ABOUT