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

    • Demon RPG v1.12 [ +10 Cheats ] Currency Max
      Modded/Hacked App: Demon RPG By SeHyeon Im
      Bundle ID: com.Owings.DemonRPG
      App Store Link: https://apps.apple.com/us/app/demon-rpg/id1476965737?uo=4

      🤩 Hack Features

      - Unlimited Gems
      - Gold Increaser
      - OFFLINE-REWARD
      - HP Freeze
      Stats / Just Upgrade
      - ATK MAX
      - HP MAX
      - DEF MAX
      - CRITI-ATK
      - DMG-RED
      - HP-REG
      • 0 replies
    • Demon RPG v1.12 [ +10 Jailed ] Currency Max
      Modded/Hacked App: Demon RPG By SeHyeon Im
      Bundle ID: com.Owings.DemonRPG
      App Store Link: https://apps.apple.com/us/app/demon-rpg/id1476965737?uo=4

      🤩 Hack Features

      - Unlimited Gems
      - Gold Increaser
      - OFFLINE-REWARD
      - HP Freeze
      Stats / Just Upgrade
      - ATK MAX
      - HP MAX
      - DEF MAX
      - CRITI-ATK
      - DMG-RED
      - HP-REG
      • 0 replies
    • My Little Goddess : Idle RPG +3 Mods [ Damage & Defence ]
      Mod APK Game Name: My Little Goddess : Idle RPG By Pigames
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.pigames.mylittlegoddess

       

      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      • 0 replies
    • Truck Simulator EVO: Drive USA v2.0 [ +2 Cheats ] Currency Max
      Modded/Hacked App: Truck Simulator EVO: Drive USA By Marusac Alexandru Persoana Fizica Autorizata
      Bundle ID: com.ovilex.truckerzoneamericanroadways
      App Store Link: https://apps.apple.com/us/app/truck-simulator-evo-drive-usa/id6748637350?uo=4

      🤩 Hack Features

      - Unlimited Cash
      - Unlimited Gold
      • 1 reply
    • Truck Simulator EVO: Drive USA v2.0 [ +2 Jailed ] Currency Max
      Modded/Hacked App: Truck Simulator EVO: Drive USA By Marusac Alexandru Persoana Fizica Autorizata
      Bundle ID: com.ovilex.truckerzoneamericanroadways
      App Store Link: https://apps.apple.com/us/app/truck-simulator-evo-drive-usa/id6748637350?uo=4

      🤩 Hack Features

      - Unlimited Cash
      - Unlimited Gold
      • 0 replies
    • Solitaire Truck Deluxe v3.2.1 [ +5 Cheats ] Currency Max
      Modded/Hacked App: Solitaire Truck Deluxe By Beijing Multipoint Unlimited Network Technology Co., Ltd.
      Bundle ID: com.duole.solitaire.zen.home.design.patience.free.card.games
      App Store Link: https://apps.apple.com/us/app/solitaire-truck-deluxe/id6464568524?uo=4

      🤩 Hack Features

      - Auto ADS NO
      - Unlimited Gems
      - Unlimited Wrench
      - Unlimited Undo
      - Unlimited Hints
      • 1 reply
    • Solitaire Truck Deluxe v3.2.1 [ +5 Jailed ] Currency Max
      Modded/Hacked App: Solitaire Truck Deluxe By Beijing Multipoint Unlimited Network Technology Co., Ltd.
      Bundle ID: com.duole.solitaire.zen.home.design.patience.free.card.games
      App Store Link: https://apps.apple.com/us/app/solitaire-truck-deluxe/id6464568524?uo=4
       

      🤩 Hack Features

      - Auto ADS NO
      - Unlimited Gems
      - Unlimited Wrench
      - Unlimited Undo
      - Unlimited Hints
      • 0 replies
    • DRAGON BALL Z DOKKAN BATTLE Japan (ドラゴンボールZ ドッカンバトル) v6.2.5 +7 Cheats!
      Modded/Hacked App: ドラゴンボールZ ドッカンバトル By BANDAI NAMCO Entertainment Inc.
      Bundle ID: jp.co.bandainamcogames.BNGI0211
      iTunes Link: https://itunes.apple.com/jp/app/ドラゴンボールz-ドッカンバトル/id951627670


      Hack Features
      - Unlimited HP  -  (Put .0 at the back of your value: 1000.0)
      - Unlimited Damage  -  (Put .0 at the back of your value: 1000.0)
      - Unlimited Defense  -  (Put .0 at the back of your value: 1000.0)
      - Dice Hack -  [ONLY RANGE BETWEEN 1 - 6 or it will crash]  -  (Put .0 at the back of your value: 4.0)
      - Dice Hack 1, 2, 3
      - Dice Hack 4, 5, 6
      - Auto Win Battles -> Disable if you get errors.
      PUT .0 at the back of all values!
      • 8,082 replies
    • Detective S: Mystery Puzzle v1.21.4 [ +4 APK MOD ] Currency Freeze
      Mod APK Game Name: Detective S: Mystery Puzzle
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.rawhand.dts.gl&hl=en

      🤩 Hack Features

      - Diamond Freeze
      - Gold Freeze
      - Heart Freeze
      - Fragment Freeze
      • 0 replies
    • Detective S: Mystery Game v1.21.3 [ +5 Cheats ] Currency Freeze
      Modded/Hacked App: Detective S: Mystery Game By Rawhand. Inc
      Bundle ID: com.rawhand.dts.ios
      App Store Link: https://apps.apple.com/us/app/detective-s-mystery-game/id1502345814?uo=4

      🤩 Hack Features

      - Diamond Freeze
      - Gold Freeze
      - Heart Freeze
      - Heart Unlimited
      - Fragment Freeze
      • 1 reply
    • Detective S: Mystery Game v1.21.3 [ +5 Jailed ] Currency Freeze
      Modded/Hacked App: Detective S: Mystery Game By Rawhand. Inc
      Bundle ID: com.rawhand.dts.ios
      App Store Link: https://apps.apple.com/us/app/detective-s-mystery-game/id1502345814?uo=4

      🤩 Hack Features

      - Diamond Freeze
      - Gold Freeze
      - Heart Freeze
      - Heart Unlimited
      - Fragment Freeze
      • 0 replies
    • Gale Knights Idle RPG +3 Mods [ Damage + More ]
      Mod APK Game Name: Gale Knights Idle RPG By LightCON Co.,Ltd.
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=net.lightcon.windidle

       

      🤩 Hack Features

      - Damage Multiplier
      - God Mode
      - No Skill Cooldown
      • 2 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