Jump to content

Go to solution Solved by Diversityy,

18 posts in this topic

Recommended Posts

Posted

How to hook the method with void and bool?I write like this, but I don't know why can't work.

#include <substrate.h>

 

%hook UserProfessionObj

-(void) setRed:(BOOL)a

{

return %orig(a);

a = TRUE;

}

%end

 

<dict>

<key>methodObjc</key>

<dict>

<key>className</key>

<string>UserProfessionObj</string>

<key>displayName</key>

<string>-(void) setRed:(BOOL)</string>

<key>prefix</key>

<string>-</string>

<key>selector</key>

<string>setRed:</string>

<key>typeEncoding</key>

<string>v12@0:4c8</string>

</dict>

<key>name</key>

<string>Unit for -(void) setRed:(BOOL)</string>

<key>overrides</key>

<array>

<dict>

<key>argument</key>

<integer>1</integer>

<key>type</key>

<dict>

<key>subtype</key>

<integer>0</integer>

<key>type</key>

<integer>5</integer>

</dict>

<key>value</key>

<dict>

<key>type</key>

<integer>5</integer>

<key>value</key>

<true/>

</dict>

</dict>

</array>

this is in flex method,please help me!!

Posted (edited)

what is all these?

 

 

<dict>
<key>methodObjc</key>
<dict>
<key>className</key>
<string>UserProfessionObj</string>
<key>displayName</key>
<string>-(void) setRed:(BOOL)</string>
<key>prefix</key>
<string>-</string>
<key>selector</key>
<string>setRed:</string>
<key>typeEncoding</key>
<string>v12@0:4c8</string>
</dict>
<key>name</key>
<string>Unit for -(void) setRed:(BOOL)</string>
<key>overrides</key>
<array>
<dict>
<key>argument</key>
<integer>1</integer>
<key>type</key>
<dict>
<key>subtype</key>
<integer>0</integer>
<key>type</key>
<integer>5</integer>
</dict>
<key>value</key>
<dict>
<key>type</key>
<integer>5</integer>
<key>value</key>
<true/>
</dict>
</dict>
</array>

did you follow a tutorial?

Updated by ITz_kser
Posted (edited)

what is all these?

 

 

<dict>

<key>methodObjc</key>

<dict>

<key>className</key>

<string>UserProfessionObj</string>

<key>displayName</key>

<string>-(void) setRed:(BOOL)</string>

<key>prefix</key>

<string>-</string>

<key>selector</key>

<string>setRed:</string>

<key>typeEncoding</key>

<string>v12@0:4c8</string>

</dict>

<key>name</key>

<string>Unit for -(void) setRed:(BOOL)</string>

<key>overrides</key>

<array>

<dict>

<key>argument</key>

<integer>1</integer>

<key>type</key>

<dict>

<key>subtype</key>

<integer>0</integer>

<key>type</key>

<integer>5</integer>

</dict>

<key>value</key>

<dict>

<key>type</key>

<integer>5</integer>

<key>value</key>

<true/>

</dict>

</dict>

</array>

did you follow a tutorial?

 

 

 

I want to use flex to build function,then writing a tweak,but I don't actually know the function such as -(void) setRed:(BOOL).Furthermore how to make bool active?@_@

Updated by QQRK
Posted

The <dict>

<key>

<string>

Are for preference bundle

And they shouldn't be in tweak.xm

idk if this will make a different but try to change BOOL to bool

Posted

Okay, so..

%hook UserProfessionObj
-(void) setRed:(BOOL)a
{
%orig(TRUE);
}
%end
Try that. Like what ITz_kser said, you do not include those key, string, dict on your tweak.xm.
Posted

here come another question, how to write a return?  should i change id to null and int to 1 ? (see the picture below the link)

 

http://www.jnbhgbox.org/forum.php?mod=attachment&aid=MjYxNHxmZTA5ZGRhY3wxNDQ4MTY5MTMwfDE5fDUyOQ%3D%3D&nothumb=yes

%hook MGTwitterHTTPURLConnection
-(id)initWithRequest:(id)delegate:(id)requestType:(int)responseTime:(int)
{
return;
}
%end
I believe it's like that. What app are you trying to do this on?
Posted
%hook MGTwitterHTTPURLConnection
-(id)initWithRequest:(id)delegate:(id)requestType:(int)responseTime:(int)
{
return;
}
%end
I believe it's like that. What app are you trying to do this on?

 

like what i think you need to give every function from these a return or the functions that's you want will not work that's what i test

but didn't test the id :turned:

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

    • Darkest Hero! v0.0.96 [ +4 APK MOD ] Currency Max
      Mod APK Game Name: Darkest Hero! By MINIDRAGON LTD
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.minidragon.randomdungeon&hl=en_US

      🤩 Hack Features

      - Unlimited Gems / Earn
      - Unlimited Red Crystal / Earn
      - Unlimited Gold / Earn
      - Unlimited Keys / Earn
        • Informative
        • Agree
        • Thanks
        • Like
      • 22 replies
    • Apple Grapple: Survivor v1195 +50++ Jailed Cheats [ Debug Menu ]
      Modded/Hacked App: Apple Grapple: Survivor By Loop Games Oyun Teknolojileri Anonim Sirketi
      Bundle ID: com.loop.apple.grapple
      iTunes Store Link: https://apps.apple.com/us/app/apple-grapple-survivor/id6478910885?uo=4


      Hack Features:
      - Damage Multiplier
      - Defence Multiplier
      - Battle Pass Purchased
      - Debug Menu -> Head into Settings and toggle the Discord button.

      -> Set Player Health
      -> Set Player Speed
      -> Set Player Weapon
      -> Change Level
      -> Add/Remove Currencies
      -> Increase Battle Pass Kills
      -> Earn All Equipment
      -> Skip Tutorial

      + More!


      Jailbreak required hack(s): [Mod Menu Hack] Apple Grapple: Survivor v679 +50++ Cheats [ Debug Menu ] - Free Jailbroken Cydia Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Informative
        • Agree
        • Thanks
        • Winner
        • Like
      • 18 replies
    • Doctor Who: Lost In Time v2.6.5 +1++ Jailed Cheat [ Unlimited Currencies ]
      Modded/Hacked App: Doctor Who: Lost In Time By Eastside Games
      Bundle ID: com.eastsidegames.doctorwho
      iTunes Store Link: https://apps.apple.com/us/app/doctor-who-lost-in-time/id1615158216
       

      Hack Features:
      - Unlimited Currencies -> Will increase instead of decrease.


      Jailbreak required hack(s): https://iosgods.com/topic/169486-doctor-who-lost-in-time-all-versions-1-cheat-unlimited-currencies/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 56 replies
    • Chrome Valley Customs v30.1.0 +1 Jailed Cheat [ Freeze Moves ]
      Modded/Hacked App: Chrome Valley Customs By Space Ape Ltd
      Bundle ID: com.spaceapegames.carsuperstar
      iTunes Store Link: https://apps.apple.com/us/app/chrome-valley-customs/id6444042518
       

      Hack Features:
      - Freeze Moves


      Jailbreak required hack(s): https://iosgods.com/topic/173179-chrome-valley-customs-v400-1-cheat-unlimited-moves/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 114 replies
    • Mini Kitchen Chef v7.3.15 +4 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Mini Kitchen Chef By JOHANNES DIMITRIS TSOUCHLOS
      Bundle ID: com.tsepigames.minikitchen
      iTunes Store Link: https://apps.apple.com/us/app/mini-kitchen-chef/id6738204646?uo=4

       


      Hack Features

      - Unlimited Cash
      - Unlimited Plates
      - Unlimited Stars
      - No Burning


      Jailbreak required iOS hacks: [Mod Menu Hack] Mini Kitchen Chef v3.0 +4 Cheats [ Unlimited Currencies ] - Free Jailbroken Cydia Cheats - iOSGods
      Modded Android APKs: https://iosgods.com/forum/68-android-section/
        • Informative
        • Agree
        • Thanks
        • Like
      • 6 replies
    • Crunchyroll: Two Strikes v1.0.4 +2 Jailed Cheats [ Unlocked ]
      Modded/Hacked App: Crunchyroll: Two Strikes By Crunchyroll, LLC
      Bundle ID: com.crunchyroll.gv.twostrikes
      App Store Link: https://apps.apple.com/us/app/crunchyroll-two-strikes/id6742846993?uo=4

       


      🤩 Hack Features

      - God Mode *Online Untested*
      -- Full Game Unlocked
        • Agree
        • Haha
        • Winner
        • Like
      • 8 replies
    • Bejeweled Stars v4.0.2 +2++ Cheats [ Unlimited Everything ]
      Modded/Hacked App: Bejeweled Stars By Electronic Arts
      Bundle ID: com.ea.ios.bejeweledskies
      iTunes Store Link: https://apps.apple.com/us/app/bejeweled-stars/id974135847
       

      Hack Features:
      - Unlimited Everything -> Use coins or powerups to gain an unlimited amount.


      Jailbreak required hack(s): [Mod Menu Hack] Bejeweled Stars v3.02.0 +1++ Cheats [ Unlimited Everything ] - Free Jailbroken Cydia Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 16 replies
    • Parking Master Multiplayer 2 v2.9.5 +4 Jailed Cheats [ No Damage ]
      Modded/Hacked App: Parking Master Multiplayer 2 By SPEKTRA GAMES OYUN VE YAZILIM ANONIM SIRKETI
      Bundle ID: com.SpektraGames.ParkingMasterMultiplayer2
      iTunes Store Link: https://apps.apple.com/us/app/parking-master-multiplayer-2/id1604738089?uo=4

       
       

      🤩 Hack Features

      - Freeze Fuel
      - No Damage
      - No Traffic
      -- No Forced Ads
        • Informative
        • Agree
        • Like
      • 10 replies
    • Episode My First Kiss BL Story v2.0.5 +2 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Episode My First Kiss BL Story By Faifly, LLC
      Bundle ID: com.faifly.my.first.kiss.bl.yaoi.choices
      iTunes Store Link: https://apps.apple.com/us/app/episode-my-first-kiss-bl-story/id1644503857?uo=4

       
       

      🤩 Hack Features

      - Unlimited Feathers -> Spend some.
      - Unlimited Gems -> Buy a feather.


      🍏 Jailbreak iOS hacks: [Mod Menu Hack] Episode My First Kiss BL Story v1.5.20 +2 Cheats [ Unlimited Currencies ] - Free Jailbreak Cheats - iOSGods
      🤖 Modded Android APKs: https://iosgods.com/forum/68-android-section/
        • Agree
        • Thanks
        • Winner
        • Like
      • 15 replies
    • Couple Breaker: Romance Otome v1.0.8 +1 Jailed Cheat [ Free Premium Choices ]
      Modded/Hacked App: Couple Breaker: Romance Otome By Storytaco.inc
      Bundle ID: com.storytaco.p37client
      App Store Link: https://apps.apple.com/us/app/couple-breaker-romance-otome/id6502985582?uo=4

       


      🤩 Hack Features

      - Free Premium Choices
        • Informative
        • Agree
        • Thanks
        • Winner
        • Like
      • 7 replies
    • Mystery Matters v3.5.0 +6 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Mystery Matters By Playrix
      Bundle ID: com.playrix.mystery-matters
      iTunes Store Link: https://apps.apple.com/us/app/mystery-matters/id6450447751
       

      Hack Features:
      - Freeze Coins
      - Freeze Stars
      - Freeze Lives
      - Freeze Moves

      VIP
      Note - These features will get you banned from teams/clans.
      - Unlimited Coins -> Earn or spend some.
      - Unlimited Stars -> Earn some.
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 62 replies
    • GEARZBOUND v1.90.61 +3 Jailed Cheats [ Damage & Defence ]
      Modded/Hacked App: 기어즈바운드 By WHITEBEARDGAMES
      Bundle ID: com.WhiteBeardGames.GEARZBOUND
      App Store Link: https://apps.apple.com/us/app/%EA%B8%B0%EC%96%B4%EC%A6%88%EB%B0%94%EC%9A%B4%EB%93%9C/id1560784581?uo=4

       


      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
        • Winner
        • Like
      • 6 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