Jump to content

20 posts in this topic

Recommended Posts

Posted

Hello everyone =) I'm trying to convert a tweak which created in Flex 3 into a .deb by using theos. I just can't figure out how to use the -void with a return by an argument.  i'm new in this and still study. Thank you!

%hook UBTripAddressesViewController
-(bool)_allowsDropoffLocationToBeShown {
	return true;
}
%end

%hook UBTripAddressesView
-(bool) shouldDisplayDropoff {
	return true;
}

-(void) setDropoffAddressText:(id) isEnables:(bool) {
	return pass-through;
	argument #1 pass-through;
	argument #2 true;
}

-(void)_updateDropoffContentEdgeInsets {
	return pass-through;
}

-(bool) shouldDisplayPickup {
	return false;
}
%end

%hook UBEarningsTrip
-(id) dropoffAddress {
	return pass-through;
}
%end

%hook UBTrip
-(id) dropoffLocation {
	return pass-through;
}
%end

%hook UBSecondaryDispatchView
-(void) setShowPickupAndDropoffAddress:(bool) {
	return pass-through;
	argument #1 true;
}

-(bool) showPickupAndDropoffAddress {
	return true;
}
%end

%hook UBSecondaryDispatchDefaultAcceptView
-(void) setShowPickupAndDropoffAddress:(bool) {
	return pass-through;
	argument #1 pass-through;
}
-(bool) showPickupAndDropoffAddress {
	return true;
}
%end

%hook UBOnTripMapViewController
-(bool)_allowsDropoffLocationToBeShown {
	return pass-through;
}
%end

%hook UBNavigationInfoViewController
-(void)_updateDisplayForDisplay {
	return pass-through;
}
-(void)_updateDisplay {
	return pass-through;
}
%end

%hook UBTripAddressesViewController
-(void)_updateDisplayForDisplay {
	return pass-through;
}
-(void)_updateDisplay {
	return pass-through;
}
%end

%hook UBAddress
-(void) setDisplayTitle:(id) {
	return pass-through;
	argument #1 pass-through;
}
%end

 

Posted

Looks like this is for Uber? I'll fix this up and edit the post when I'm finished. For all the methods that you return as "pass-through," you don't need to include those in your Tweak.xm, as you're not actually changing anything.

Posted
6 minutes ago, Pro said:

Looks like this is for Uber? I'll fix this up and edit the post when I'm finished. For all the methods that you return as "pass-through," you don't need to include those in your Tweak.xm, as you're not actually changing anything.

Quote

yes it's for uber! thanks a lot!!!!

 

Posted (edited)

You don't have to pass-trough it functions, since that means you won't use them.

 

Anyways, try this:

 

#import <substrate.h>
#import <Foundation/Foundation.h>

%hook UBTripAddressesViewController

-(bool)_allowsDropoffLocationToBeShown {
	return true;
}
%end

%hook UBTripAddressesView

-(bool)shouldDisplayDropoff {
	return true;
}

-(void) etDropoffAddressText:(id)arg1:(bool)arg2 {
	arg2 = true;
}

-(bool)shouldDisplayPickup {
	return false;
}
%end

%hook UBSecondaryDispatchView

-(void)setShowPickupAndDropoffAddress:(bool)arg1 {
	arg1 = true;
}

-(bool)showPickupAndDropoffAddress {
	return true;
}
%end

%hook UBSecondaryDispatchDefaultAcceptView

-(bool)showPickupAndDropoffAddress {
	return true;
}
%end

 

Edited the code, should work now.

Updated by Ted2
Posted (edited)

0yPmNeP.png

1 hour ago, Ted2 said:

You don't have to pass-trough it functions, since that means you won't use them.

 

Anyways, try this:

 


#import <substrate.h>
#import <Foundation/Foundation.h>

%hook UBTripAddressesViewController

-(bool)_allowsDropoffLocationToBeShown {
	return true;
}
%end

%hook UBTripAddressesView

-(bool)shouldDisplayDropoff {
	return true;
}

-(void) etDropoffAddressText:(id)arg1:(bool)arg2 {
	arg2 = true;
}

-(bool)shouldDisplayPickup {
	return false;
}
%end

%hook UBSecondaryDispatchView

-(void)setShowPickupAndDropoffAddress:(bool)arg1 {
	arg1 = true;
}

-(bool)showPickupAndDropoffAddress {
	return true;
}
%end

%hook UBSecondaryDispatchDefaultAcceptView

-(bool)showPickupAndDropoffAddress {
	return true;
}
%end

 

Edited the code, should work now.

im doing something wrong?

Updated by Ang1ck
Posted
3 hours ago, Ang1ck said:

0yPmNeP.png

im doing something wrong?

Go into /var/theos/bin and remove "fauxsu" and "libfauxsu.dylib," then try to compile again

Posted (edited)
7 minutes ago, Ted2 said:

good, mark solved.

but the hack not working =(

 

if i turn on in flex working well, when i install .deb (delete flex patch) respring phone not working..... 

 

Updated by Ang1ck

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

    • Dead Impact: Survival MMORPG v1.17 +11 Jailed Cheats [ Unlimited Everything ]
      Modded/Hacked App: Dead Impact: Survival MMORPG By SYNTHEZ GAMES LIMITED
      Bundle ID: games.synthez.zombie.survival.multiplayer
      App Store Link: https://apps.apple.com/us/app/dead-impact-survival-mmorpg/id6444281832?uo=4

       
       

      🤩 Hack Features

      - Freeze Currencies
      - Freeze Items
      - 1 Stat Point Requirement
      - Level Threshold Modifier -> Amount of XP required to advance to the next level.
      - No Craft Item Requirement
      - Unlimited Durability
      - No Consumable Cooldown

      VIP
      - Unlimited Currencies -> Will increase instead of decrease.
      - Unlimited Items -> Will increase instead of decrease.
      - Unlock All
      - Unlock All Classes
      • 255 replies
    • Dead Impact: Survival MMORPG v1.17 +11 Cheats [ Unlimited Everything ]
      Modded/Hacked App: Dead Impact: Survival MMORPG By SYNTHEZ GAMES LIMITED
      Bundle ID: games.synthez.zombie.survival.multiplayer
      App Store Link: https://apps.apple.com/us/app/dead-impact-survival-mmorpg/id6444281832?uo=4

       


      🤩 Hack Features

      - Freeze Currencies
      - Freeze Items
      - 1 Stat Point Requirement
      - Level Threshold Modifier -> Amount of XP required to advance to the next level.
      - No Craft Item Requirement
      - Unlimited Durability
      - No Consumable Cooldown

      VIP
      - Unlimited Currencies -> Will increase instead of decrease.
      - Unlimited Items -> Will increase instead of decrease.
      - Unlock All
      - Unlock All Classes
      • 91 replies
    • Matchcreek Motors v10.7.19722 +5 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Matchcreek Motors: Custom Cars By Hutch Games Ltd
      Bundle ID: com.hutchgames.carsm3
      iTunes Store Link: https://apps.apple.com/us/app/matchcreek-motors-custom-cars/id6566187035?uo=4

       
       

      🤩 Hack Features

      - Unlimited Currencies -> Will increase instead of decrease.
      - Freeze Lives
      - Freeze Pre-Game Boosters
      - Freeze Boosters
      - Freeze Moves
      • 10 replies
    • Romantic Blast: Love Stories v2.5.1 +5 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Romantic Blast: Love Stories By Pexix Technology Limited
      Bundle ID: ios.romantic.blast.makeover.game
      iTunes Store Link: https://apps.apple.com/us/app/romantic-blast-love-stories/id6463772070?uo=4


      Hack Features:
      - Unlimited Coins -> Earn or spend some.
      - Unlimited Gems -> Earn or spend some.
      - Unlimited Lives -> Earn or spend some.
      - Unlimited Boosters -> Will not decrease.
      - Unlimited Moves -> Will not decrease.


      Jailbreak required hack(s): [Mod Menu Hack] Romantic Blast: Love Stories v2.2.9 +5 Cheats [ Unlimited Currencies ] - 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/
      • 5 replies
    • Epic Stickman: RPG Idle Game v1.0.48 +2++ Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Epic Stickman: RPG Idle Game By Fansipan Limited
      Bundle ID: com.fansipan.epic.stickman.survival.rpg.idle.game
      iTunes Store Link: https://apps.apple.com/us/app/epic-stickman-rpg-idle-game/id6503872838?uo=4


      Hack Features:
      - Unlimited Currencies -> Will increase instead of decrease.
      - Free In-App Purchases -> Toggle via iGMenu.


      Jailbreak required hack(s): [Mod Menu Hack] Epic Stickman: RPG Idle Game v1.0 +2++ Cheats [ Unlimited Currencies ] - 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/
      • 45 replies
    • Disney Solitaire v1.11.2 +2++ Jailed Cheats [ Unlimited Everything ]
      Modded/Hacked App: Disney Solitaire By SuperPlay LTD
      Bundle ID: com.superplaystudios.disneysolitairedreams
      iTunes Store Link: https://apps.apple.com/us/app/disney-solitaire/id6475757306?uo=4

       
       

      🤩 Hack Features

      - Unlimited Everything -> Will increase instead of decrease.
      - Free In-App Purchases
      • 45 replies
    • Tiny Reaper: Reborn v1.2.13 +4 Jailed Cheats [ God Mode + More ]
      Modded/Hacked App: Tiny Reaper: Reborn By DAERI SOFT
      Bundle ID: com.daerigame.babysasin
      App Store Link: https://apps.apple.com/us/app/tiny-reaper-reborn/id6739761698?uo=4

       


      🤩 Hack Features

      - God Mode
      - One-Hit Kill
      - No Skill Cooldown
      - Dumb Enemies
      • 23 replies
    • Brotato v1.3.262 +4 Jailed Cheats [ Damage + More ]
      Modded/Hacked App: Brotato By QI YU SG. PTE. LTD.
      Bundle ID: com.brotato.shooting.survivors.action.games.bullethell.ios
      iTunes Store Link: https://apps.apple.com/us/app/brotato/id6445884925?uo=4

       
       

      🤩 Hack Features

      - Damage Multiplier
      - God Mode
      - Move Speed Multiplier
      - Free In-App Purchases
      • 44 replies
    • Golf Superstar 2 v1.0.15 +2 Jailed Cheats [ Unlimited Cash ]
      Modded/Hacked App: Golf Superstar 2 By Scott Baillie
      Bundle ID: com.lazyboydevelopments.golfsuperstar2
      App Store Link: https://apps.apple.com/us/app/golf-superstar-2/id1598585549?uo=4

       

      🤩 Hack Features

      - Unlimited Cash 
      - Unlimited XP
      • 1 reply
    • OnceWorld v1.2.2 +2 Mods [ Damage + More ]
      Mod APK Game Name: OnceWorld
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=work.ponix.onceworld

       

      🤩 Hack Features

      - Damage Multiplier
      - God Mode
      • 2 replies
    • Meta Toy DragonZ SAGA v1.40 +5 Jailed Cheats [ Damage & Defence ]
      Modded/Hacked App: Meta Toy DragonZ SAGA By Sandbox Network Inc.
      Bundle ID: com.sandboxgame.mtdzsaga
      App Store Link: https://apps.apple.com/us/app/meta-toy-dragonz-saga/id6748107724?uo=4

       


      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      -- No Ads
      -- Battle Boost x2.5 Unlocked
      • 11 replies
    • Virtual Beggar v4.1.1 +3 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Virtual Beggar By Treetop Crew Oy
      Bundle ID: com.TreetopCrew.VirtualBeggar
      App Store Link: https://apps.apple.com/us/app/virtual-beggar/id922983045?uo=4

       
       

      🤩 Hack Features

      - Unlimited Coins -> Earn some.
      - Unlimited Virtual Cards -> Earn some.
      - Max Level -> Earn some XP.
      • 4 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