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

    • Backpack Legends Adventure RPG +1++ Jailed Cheat [ Unlimited Currencies ]
      Modded/Hacked App: Backpack Legends Adventure RPG By ONDI TECHNOLOGY JSC
      Bundle ID: com.ondi.pack.adventure
      App Store Link: https://apps.apple.com/us/app/backpack-legends-adventure-rpg/id6755376569?uo=4

       

      🤩 Hack Features

      - Unlimited Currencies -> Will increase instead of decrease.
      • 0 replies
    • Duriano: Roguelike RPG +2 Mods [ Damage + More ]
      Mod APK Game Name: Duriano: Roguelike RPG By Adisoft Gaming
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.adisoft.duriano

       

      🤩 Hack Features

      - Damage Multiplier 
      - God Mode
      • 0 replies
    • Backpack Legends Adventure RPG v0.4.5 [ +12 Cheats ] Currency Max
      Modded/Hacked App: Backpack Legends Adventure RPG By ONDI TECHNOLOGY JSC
      Bundle ID: com.ondi.pack.adventure
      App Store Link: https://apps.apple.com/us/app/backpack-legends-adventure-rpg/id6755376569?uo=4

      🤩 Hack Features

      - Enough Currency
      - Enough Resources
      - Freeze Currency
      - Freeze Resources
      :::::: VIP ::::::
      - ADS NO
      - Unlimited Currency
      - Unlimited Resources
      - Inventory Slot MAX
      Weapon Stats
      - ATK MAX
      - HP MAX
      - DEF MAX
      - Speed MAX
      - Items Bonus / Linked Weapon Stats
      • 2 replies
    • Backpack Legends Adventure RPG v0.4.5 [ +12 Cheats ] Currency Max
      Modded/Hacked App: Backpack Legends Adventure RPG By ONDI TECHNOLOGY JSC
      Bundle ID: com.ondi.pack.adventure
      App Store Link: https://apps.apple.com/us/app/backpack-legends-adventure-rpg/id6755376569?uo=4

      🤩 Hack Features

      - Enough Currency
      - Enough Resources
      - Freeze Currency
      - Freeze Resources
      :::::: VIP ::::::
      - ADS NO
      - Unlimited Currency
      - Unlimited Resources
      - Inventory Slot MAX
      Weapon Stats
      - ATK MAX
      - HP MAX
      - DEF MAX
      - Speed MAX
      - Items Bonus / Linked Weapon Stats
      • 2 replies
    • Backpack Legends Adventure RPG v0.4.5 [ +12 Jailed ] Currency Max
      Modded/Hacked App: Backpack Legends Adventure RPG By ONDI TECHNOLOGY JSC
      Bundle ID: com.ondi.pack.adventure
      App Store Link: https://apps.apple.com/us/app/backpack-legends-adventure-rpg/id6755376569?uo=4

      🤩 Hack Features

      - Enough Currency
      - Enough Resources
      - Freeze Currency
      - Freeze Resources
      :::::: VIP ::::::
      - ADS NO
      - Unlimited Currency
      - Unlimited Resources
      - Inventory Slot MAX
      Weapon Stats
      - ATK MAX
      - HP MAX
      - DEF MAX
      - Speed MAX
      - Items Bonus / Linked Weapon Stats
      • 1 reply
    • Sword of Convallaria v2.1.1 Jailed Cheats +5
      Modded/Hacked App: Sword of Convallaria By XD Entertainment Pte Ltd
      Bundle ID: com.xd.ssrpgen
      App Store Link: https://apps.apple.com/us/app/sword-of-convallaria/id6451019582?uo=4

       

      📌 Mod Requirements

      - Non-Jailbroken/Jailed or Jailbroken iPhone or iPad.
      - Sideloadly or alternatives.
      - Computer running Windows/macOS/Linux with iTunes installed.

       

      🤩 Hack Features

      - God Mode
      - One Hit Kill 
      - Multiply Attack
      - Instant Skills
      - Unlimited Backtrack

       

      ⬇️ iOS Hack Download IPA Link: https://iosgods.com/topic/214320-sword-of-convallaria-v211-jailed-cheats-5/
      • 3 replies
    • Monster Walk: Survive v0.0.5 [ +9 Cheats ] Currency Max
      Modded/Hacked App: Monster Walk: Survive By Talofa Corporation
      Bundle ID: com.talofagames.survive
      App Store Link: https://apps.apple.com/us/app/monster-walk-survive/id6759917111?uo=4

      🤩 Hack Features

      - Unlimited Gems
      - Unlimited Coins
      - Unlimited Energy
      - Unlimited Ticket
      - Unlimited HP Token
      - Unlimited Booster +4
      - Bullet ATK
      - Skill ATK
      - Skill CD
      • 0 replies
    • Monster Walk: Survive v0.0.5 [ +9 Jailed ] Currency Max
      Modded/Hacked App: Monster Walk: Survive By Talofa Corporation
      Bundle ID: com.talofagames.survive
      App Store Link: https://apps.apple.com/us/app/monster-walk-survive/id6759917111?uo=4

      🤩 Hack Features

      - Unlimited Gems
      - Unlimited Coins
      - Unlimited Energy
      - Unlimited Ticket
      - Unlimited HP Token
      - Unlimited Booster +4
      - Bullet ATK
      - Skill ATK
      - Skill CD
      • 0 replies
    • Idle RPG: Lone Necromancer +2 Mods [ Damage + More ]
      Mod APK Game Name: Idle RPG: Lone Necromancer By LUNOSOFT INC
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.lunosoft.nhn

       

      🤩 Hack Features

      - Damage Multiplier
      - God Mode
      • 0 replies
    • The Lone Necromancer: Idle RPG +2 Jailed Cheats [ Damage + More ]
      Modded/Hacked App: The Lone Necromancer: Idle RPG By Lunosoft Inc.
      Bundle ID: com.lunosoft.nhnios
      App Store Link: https://apps.apple.com/us/app/the-lone-necromancer-idle-rpg/id6738776756?uo=4

       

      🤩 Hack Features

      - Damage Multiplier
      - God Mode
      • 2 replies
    • Lamar - Idle Vlogger +3 Mods [ Unlimited Currencies ]
      Mod APK Game Name: Lamar - Idle Vlogger By CrazyLabs LTD
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.advant.streamer

       

      🤩 Hack Features

      - Unlimited Cash -> Will increase instead of decrease.
      - Unlimited Gold -> Spend some.
      - Unlimited Ad Skip Tickets -> Spend some.
      • 3 replies
    • Town Matters - Match Hero +3 Mods [ Unlimited Coins ]
      Mod APK Game Name: Town Matters - Match Hero By 707 INTERACTIVE: Fun Epic Casual Games
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=machinist.enigma.match3free.android

       

      🤩 Hack Features

      - Unlimited Coins -> Complete a level.
      - Unlimited Moves -> Will not decrease.
      - Auto Win
      • 0 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