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

    • Gear Truck! v1.0.23 [+3 Jailed Cheats]
      Modded/Hacked App: Gear Truck! By treeplla Inc.
      Bundle ID: com.tree.hybrid.geartank
      App Store Link: https://apps.apple.com/us/app/gear-truck/id6747216965?uo=4



      🤩 Hack Features

      - Never Die
      - High Wheel Speed Gain
      - One Hit Kill
      • 5 replies
    • Gear Truck! v1.0.23 [+3 Cheats]
      Modded/Hacked App: Gear Truck! By treeplla Inc.
      Bundle ID: com.tree.hybrid.geartank
      App Store Link: https://apps.apple.com/us/app/gear-truck/id6747216965?uo=4



      🤩 Hack Features

      - Never Die
      - High Wheel Speed Gain
      - One Hit Kill
       
      • 5 replies
    • Soul Huntress: Dungeon Crawler v1.1.4 [+3 Jailed Cheats]
      Modded/Hacked App: Soul Huntress: Dungeon Crawler By Panthera Joint Stock Company
      Bundle ID: com.pantheraplay.soulhuntress
      App Store Link: https://apps.apple.com/ph/app/soul-huntress-dungeon-crawler/id6743422594?uo=4


      🤩 Hack Features

      - Never Die
      - Unlimited Currency (Always Will Increase Spend)
      - Always Can Use Items (Even when has cooldown)
      • 45 replies
    • Soul Huntress: Dungeon Crawler v1.1.4 [+3 Cheats]
      Modded/Hacked App: Soul Huntress: Dungeon Crawler By Panthera Joint Stock Company
      Bundle ID: com.pantheraplay.soulhuntress
      App Store Link: https://apps.apple.com/ph/app/soul-huntress-dungeon-crawler/id6743422594?uo=4



      🤩 Hack Features

      - Never Die
      - Unlimited Currency (Always Will Increase Spend)
      - Always Can Use Items (Even when has cooldown)
      • 45 replies
    • Cannon Heroes X v1.2.27 [+2 Jailed Cheats]
      Modded/Hacked App: Cannon Heroes X By Zego Global Pte Ltd
      Bundle ID: com.ig.cannon.heroes
      App Store Link: https://apps.apple.com/us/app/cannon-heroes-x/id6744356657?uo=4



      🤩 Hack Features

      - Free IAP
      - Never Die
      - Debug Menu (Enable once then restart game. Enable again you'll see debug menu)
      • 10 replies
    • Cannon Heroes X v1.2.27 [+2 Cheats]
      Modded/Hacked App: Cannon Heroes X By Zego Global Pte Ltd
      Bundle ID: com.ig.cannon.heroes
      App Store Link: https://apps.apple.com/us/app/cannon-heroes-x/id6744356657?uo=4



      🤩 Hack Features

      - Free IAP
      - Never Die
      - Debug Menu (Enable once then restart game. Enable again you'll see debug menu)
       
      • 7 replies
    • Slay Quest v1.3.13 [+3 Cheats]
      Modded/Hacked App: Slay Quest By Quest Lab Games Korlatolt Felelossegu Tarsasag
      Bundle ID: com.questlab.slayquest
      App Store Link: https://apps.apple.com/us/app/slay-quest/id6670221918?uo=4



      🤩 Hack Features

      - Unlimited Resources
      - Never Die
      - One Hit Kill
       
      • 8 replies
    • Slay Quest v1.3.13 [+3 Jailed Cheats]
      Modded/Hacked App: Slay Quest By Quest Lab Games Korlatolt Felelossegu Tarsasag
      Bundle ID: com.questlab.slayquest
      App Store Link: https://apps.apple.com/us/app/slay-quest/id6670221918?uo=4

       

      🤩 Hack Features

      - Unlimited Resources
      - Never Die
      - One Hit Kill
      • 6 replies
    • Endless Wander - Roguelike RPG v3.0.4 [+3 Jailed Cheats]
      Modded/Hacked App: Endless Wander - Roguelike RPG By First Pick Studios
      Bundle ID: com.FirstPickStudios.Endless-Wander
      App Store Link: https://apps.apple.com/us/app/endless-wander-roguelike-rpg/id6473157705?uo=4



      🤩 Hack Features

      - Never Die
      - Always Enough Currency
      - Unlimited Currency (Will Always Increase)
      • 22 replies
    • Endless Wander - Roguelike RPG v3.0.4 [+3 Cheats]
      Modded/Hacked App: Endless Wander - Roguelike RPG By First Pick Studios
      Bundle ID: com.FirstPickStudios.Endless-Wander
      App Store Link: https://apps.apple.com/us/app/endless-wander-roguelike-rpg/id6473157705?uo=4



      🤩 Hack Features

      - Never Die
      - Always Enough Currency
      - Unlimited Currency (Will Always Increase)
       
      • 17 replies
    • Bounce Defense v1.10.2 [+5 Jailed Cheats]
      Modded/Hacked App: Bounce Defense By Voodoo
      Bundle ID: com.minigamelab.bouncedefense
      App Store Link: https://apps.apple.com/us/app/bounce-defense/id6740627201?uo=4



      🤩 Hack Features

      - Add Currency
      - Add Battle Currency (Enable inside battle)
      - Never Die
      - Unlock All Towers
      - Unlimited Tower Cards
      • 22 replies
    • Bounce Defense v1.10.2 [+5 Cheats]
      Modded/Hacked App: Bounce Defense By Voodoo
      Bundle ID: com.minigamelab.bouncedefense
      App Store Link: https://apps.apple.com/us/app/bounce-defense/id6740627201?uo=4



      🤩 Hack Features

      - Add Currency
      - Add Battle Currency (Enable inside battle)
      - Never Die
      - Unlock All Towers
      - Unlimited Tower Cards
      • 15 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