Jump to content

8 posts in this topic

Recommended Posts

Posted (edited)

Hey, Guys i am developing tweaks with Theos but this is my first time to create an iosgods preference patcher 

 

Here are picture take a look at it:

But if you know what is wrong to the code tweak.xm code is included

 

 

 

Here is my tweak.xm

 

#import "writeData.h"
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <substrate.h>
 
#define PLIST_PATH @"/var/mobile/Library/Preferences/com.demy076.plist"
 
inline bool GetPrefBool(NSString *key) {
return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] boolValue];
}
 
%ctor {
if(GetPrefBool(@"key1")) {
writeData(0xOFFSET, 0xHEX);
} else {
}
 
 
if(GetPrefBool(@"key2")) {
writeData(0x10963C, 0xC0F8AC70);
} else {
}
 
 
if(GetPrefBool(@"key3")) {
writeData(0x10ACEA, 0xC0F8C871);
} else {
}
 
 
if(GetPrefBool(@"key4")) {
writeData(0x1806B8, 0x381C);
writeData(0x2FA51C, 0x381C);
writeData(0x1806B8, 0x7047);
writeData(0x1806B8, 0x7047);
} else {
}
 
}
 
 
 
 
/* Popup with a link 
 
*/
 
 
%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:@"Pref Cheats" 
                                                  message:@"\nPref Cheats by demy kromhof 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:@"https://iosgods.com/"]];                                                                                
}
}
%end
Updated by Amuyea
Posted

This is a link for the error

https://imgur.com/a/lP1LG

Here

If I use there ctor like this

%ctor

- (BOOL)application:(id)fp8 didFinishLaunchingWithOptions:(id)fp12 { // Popup only once at each launch of the app.

UIAlertView *igcredits = [[uIAlertView alloc] initWithTitle:@"Pref Cheats"

 

It will give more sdk error but Idk what to do

Posted

I know but that doesn't work either so

Ow yeah

You can't use %hook if you do this test.test

If you use this (.) because the dot is like a swift class so

%hook boom.bmanalysehandler

-(bool) isVipUser {

return true;

}

%end

It will lead into errors

 

That is why you got to use %ctor but that was an mistake

 

 

If you want to fix that error then you got to use %ctor

 

Like this:

%ctor {

%init(SwiftClass = objc_getClass("Boom.BMAnalyticsHandler"));

}

%hook

-(bool) Boom.BMAnalyticsHandler:(id) arg1 {

return true;

}

%end

So I fixed it the previous time for my boom tweak

But now it doesn't work

Posted

ARCHS = armv7 arm64

TARGET = iphone:clang:latest:latest

#CFLAGS = -fobjc-arc

#THEOS_PACKAGE_DIR_NAME = debs

 

include $(THEOS)/makefiles/common.mk

 

TWEAK_NAME = Pref

Pref_FILES = Tweak.xm

Pref_FRAMEWORKS = UIKit

Pref_LDFLAGS += -Wl,-segalign,4000

 

include $(THEOS_MAKE_PATH)/tweak.mk

 

after-install::

install.exec "killall -9 SpringBoard"

SUBPROJECTS += Pref

include $(THEOS_MAKE_PATH)/aggregate.mk

Show me your makefile

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
  • Our picks

    • Element War : Merge Games v0.2 [ +1 Jailed ] Currency Max
      Modded/Hacked App: Element War : Merge Games By Gamify Studio FZ-LLC
      Bundle ID: com.gamifystudio.elementalbattle
      App Store Link: https://apps.apple.com/nz/app/element-war-merge-games/id6753741421?uo=4

      🤩 Hack Features

      - Unlimited Coins
        • Winner
      • 0 replies
    • Element War : Merge Games v0.2 [ +1 Cheats ] Currency Max
      Modded/Hacked App: Element War : Merge Games By Gamify Studio FZ-LLC
      Bundle ID: com.gamifystudio.elementalbattle
      App Store Link: https://apps.apple.com/nz/app/element-war-merge-games/id6753741421?uo=4

      🤩 Hack Features

      - Unlimited Coins
        • Winner
      • 1 reply
    • Last Legion: Tower Defense TD v1.1.2 [ +13 APK MOD ] Currency Max
      Mod APK Game Name: Last Legion: Tower Defense TD
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=last.legion.tower.defense.survival.war.fortress.idle.td&hl=en
      🤩 Hack Features

      - Unlimited Gems
      - Unlimited Coins
      - Unlimited Energy
      - Unlimited Dice
      - Unlimited Blueprint
      - Unlimited Silver Core
      - Unlimited Gold Core
      - Unlimited Silver Module
      - Unlimited Card / For Weapon UP
      - Unlimited EXP / Battle Rewards
      - Unlimited Battle Rewards / Coins Blueprint EXP
      - Equip Status / ATK
      - Weapon Status / ATK / Area DMG Linked Weapon
        • Winner
      • 0 replies
    • SimCity BuildIt Cheats v1.74.1 +1 [ Freeze Currencies ]
      Modded/Hacked App: SimCity BuildIt By EA Swiss Sarl
      Bundle ID: com.ea.simcitymobile.bv
      iTunes Store Link: https://apps.apple.com/us/app/simcity-buildit/id913292932?uo=4


      Hack Features:
      - Infinite Currencies


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/124792-arm64-simcity-buildit-v1412-jailed-cheats-1/


      iOS Hack Download Link: https://iosgods.com/topic/157687-simcity-buildit-cheats-v1415-1/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 727 replies
    • Last Legion: Tower Defense TD v1.1.3 [ +13 Cheats ] Currency Max
      Modded/Hacked App: Last Legion: Tower Defense TD By Antares Games s.r.o.
      Bundle ID: last.legion.tower.defense.survival.war.fortress.idle.td
      App Store Link: https://apps.apple.com/us/app/last-legion-tower-defense-td/id6753672104?uo=4

      🤩 Hack Features

      - Unlimited Gems
      - Unlimited Coins
      - Unlimited Energy
      - Unlimited Dice
      - Unlimited Blueprint
      - Unlimited Silver Core
      - Unlimited Gold Core
      - Unlimited Silver Module
      - Unlimited Card / For Weapon UP
      - Unlimited EXP / Battle Rewards
      - Unlimited Battle Rewards / Coins Blueprint EXP
      - Equip Status / ATK
      - Weapon Status / ATK / Area DMG Linked Weapon
        • Agree
        • Thanks
        • Winner
        • Like
      • 9 replies
    • Last Legion: Tower Defense TD v1.1.3 [ +13 Jailed ] Currency Max
      Modded/Hacked App: Last Legion: Tower Defense TD By Antares Games s.r.o.
      Bundle ID: last.legion.tower.defense.survival.war.fortress.idle.td
      App Store Link: https://apps.apple.com/us/app/last-legion-tower-defense-td/id6753672104?uo=4

      🤩 Hack Features

      - Unlimited Gems
      - Unlimited Coins
      - Unlimited Energy
      - Unlimited Dice
      - Unlimited Blueprint
      - Unlimited Silver Core
      - Unlimited Gold Core
      - Unlimited Silver Module
      - Unlimited Card / For Weapon UP
      - Unlimited EXP / Battle Rewards
      - Unlimited Battle Rewards / Coins Blueprint EXP
      - Equip Status / ATK
      - Weapon Status / ATK / Area DMG Linked Weapon
        • Agree
        • Thanks
        • Winner
        • Like
      • 11 replies
    • Miner Fighters ! v3.1.1 [ +10 Cheats ] Currency Max
      Modded/Hacked App: Miner Fighters ! By UNICO STUDIO LLC
      Bundle ID: com.unicostudio.minerfighters
      App Store Link: https://apps.apple.com/us/app/miner-fighters/id6752961543?uo=4

      🤩 Hack Features

      - Auto ADS OFF
      - Unlimited Red Gems
      - Unlimited Green Gems
      - Hero Cost Up / Earn Green Gems
      - Gold / No Need IN Battle For Trop
      - Trop Unlocked / IN Battle Only 
      - Trower HP
      - HP
      - ATK
      - DEF
      - Luck
      - Miner Gold
        • Agree
        • Haha
        • Like
      • 8 replies
    • Miner Fighters ! v3.1.1 [ +10 Jailed ] Currency Max
      Modded/Hacked App: Miner Fighters ! By UNICO STUDIO LLC
      Bundle ID: com.unicostudio.minerfighters
      App Store Link: https://apps.apple.com/us/app/miner-fighters/id6752961543?uo=4

      🤩 Hack Features

      - Auto ADS OFF
      - Unlimited Red Gems
      - Unlimited Green Gems
      - Hero Cost Up / Earn Green Gems
      - Gold / No Need IN Battle For Trop
      - Trop Unlocked / IN Battle Only 
      - Trower HP
      - HP
      - ATK
      - DEF
      - Luck
      - Miner Gold
        • Like
      • 10 replies
    • Tower Defense Rumble v7424 [ +10 Cheats ] Easy Win
      Modded/Hacked App: Tower Defense Rumble By DU-EON YOO
      Bundle ID: com.i.dfr
      App Store Link: https://apps.apple.com/ph/app/tower-defense-rumble/id6738600584?uo=4

      🤩 Hack Features

      - Always Last Wave / Easy Win
      Tower Status
      - ATK Max
      - HP Max
      - Range Max
      - ATK CD
      Base Tower Status
      - ATK Max
      - HP Max
      - Range Max
      - ATK CD
      - ATK Speed
      • 5 replies
    • Dice Lords v1.4 [ +5 Cheats ] Currency Max
      Modded/Hacked App: Dice Lords By Voodoo
      Bundle ID: com.oxvgames.dicelords
      App Store Link: https://apps.apple.com/us/app/dice-lords/id6743435206?uo=4

      🤩 Hack Features

      - ADS NO / Rewards Free
      - Unlimited Gems Green
      - Unlimited Gems Red
      - Unlimited Coins
      - DMG / Roll Dice
        • Winner
        • Like
      • 17 replies
    • Dice Lords v1.4 [ +5 Jailed ] Currency Max
      Modded/Hacked App: Dice Lords By Voodoo
      Bundle ID: com.oxvgames.dicelords
      App Store Link: https://apps.apple.com/us/app/dice-lords/id6743435206?uo=4

      🤩 Hack Features

      - ADS NO / Rewards Free
      - Unlimited Gems Green
      - Unlimited Gems Red
      - Unlimited Coins
      - DMG / Roll Dice
        • Informative
        • Thanks
        • Winner
        • Like
      • 17 replies
    • Tower Defense Rumble v7424 [ +10 Jailed ] Easy Win
      Modded/Hacked App: Tower Defense Rumble By DU-EON YOO
      Bundle ID: com.i.dfr
      App Store Link: https://apps.apple.com/ph/app/tower-defense-rumble/id6738600584?uo=4

      🤩 Hack Features

      - Always Last Wave / Easy Win
      Tower Status
      - ATK Max
      - HP Max
      - Range Max
      - ATK CD
      Base Tower Status
      - ATK Max
      - HP Max
      - Range Max
      - ATK CD
      - ATK Speed
        • Thanks
        • Like
      • 8 replies
×
  • 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