Jump to content

AnotherLurker

Senior Member
  • Posts

    1,093
  • Joined

  • Last visited

Posts posted by AnotherLurker

  1. Yea, dpkg no longer allows lzma (as xz is much better), but that's an issue since cydia still depends on lzma
    So you need to downgrade dpkg to allow lzma, which you can do by running the following code;

    brew remove dpkg
    cd /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core
    git checkout 7a4dabf
    HOMEBREW_NO_AUTO_UPDATE=1 brew install dpkg
    git checkout master
    brew pin dpkg
  2. %hook UBTripAddressesViewController

    -(bool)_allowsAddressesViewController {

    return TRUE;

    }

    %end

     

    %hook UBTripAddressesView

    -(bool)shouldDisplayDropoff {

    return TRUE;

    }

    %end

     

    %hook UBTrippAddressesView 

    -(void)_updateDropoffContentEdgeInsets {

    return %orig();

    }

    %end

     

    %hook UBEarningsTrip 

    -(id)dropoffAddress {

    return %orig();

    }

    %end

     

    %hook UBTrip 

    -(id)dropoffLocation {

    return %orig();

    }

    %end

     

    %hook UBSecondaryDispatchView 

    -(bool)showPickupAndDropoffAddress {

    return TRUE;

    }

    %end

     

    %hook UBSecondaryDispatchDefaultAcceptView

    -(bool)showPickupAndDropoffAddress {

    return TRUE;

    }

    %end

     

    %hook UBOnTripMapViewController

    -(bool)_allowsDropoffLocationToBeShown {

    return %orig();

    }

    %end

     

    %hook UBTripAddressesView

    -(bool)shouldDisplayPickup {

    return FALSE;

    }

    %end

     

    %hook UBNavigationInfoViewController

    -(void)_updateDisplayForDisplay {

    return %orig();

    }

    %end

     

    %hook UBNavigationInfoViewController

    -(void)_updateDisplay {

    return %orig();

    }

    %end

     

    %hook UBTripAddressesViewController

    -(void)_updateDisplayForDisplay {

    return %orig();

    }

    %end

     

    %hook UBTripAddressesViewController

    -(void)_updateDisplay {

    return %orig();

    }

    %end

     

    %hook UBSecondaryDispatchDefaultAcceptView

    -(void)setShowPickupAndDropoffAddress:(bool)arg1 {

    %orig(TRUE);

    }

    %end

     

    %hook UBTripAddressesView

    -(void)setDropoffAddressText(id)arg1 isEnabled:(bool)arg2 {

    %orig(arg1, TRUE);

    }

    %end

     

    %hook UBSecondaryDispatchView

    -(void)setShowPickupAndDropoffAddress:(bool)arg1 {

    %orig(arg1, TRUE);

    }

     

    %end

    %hook UBTripAddressesViewController
    -(bool)_allowsAddressesViewController {
        return TRUE;
    }
    %end
     
    %hook UBTripAddressesView
    -(bool)shouldDisplayDropoff {
        return TRUE;
    }
    %end
    
    %hook UBSecondaryDispatchView 
    -(bool)showPickupAndDropoffAddress {
        return TRUE;
    }
    %end
     
    %hook UBSecondaryDispatchDefaultAcceptView
    -(bool)showPickupAndDropoffAddress {
        return TRUE;
    }
    %end
     
    %hook UBTripAddressesView
    -(bool)shouldDisplayPickup {
        return FALSE;
    }
    %end
     
    %hook UBSecondaryDispatchDefaultAcceptView
    -(void)setShowPickupAndDropoffAddress:(bool)arg1 {
        %orig(TRUE);
    }
    %end
     
    %hook UBTripAddressesView
    -(void)setDropoffAddressText(id)arg1 isEnabled:(bool)arg2 {
        %orig(arg1, TRUE);
    }
    %end
     
    %hook UBSecondaryDispatchView
    -(void)setShowPickupAndDropoffAddress:(bool)arg1 {
        %orig(TRUE);
    }
     
    %end
    
  3. getting error... :(

     

    Password:

    iPhone:/var/mobile root# cd /var/uberx

    iPhone:/var/uberx root# make package

    > Making all for tweak uberx…

    ==> Preprocessing Tweak.xm…

    ==> Compiling Tweak.xm (armv7)…

    Tweak.xm:86:162: error: expected function body after function

    declarator

    ..._LOGOS_SELF_CONST self, SEL _cmd)(id)arg1 isEnabled:(bool)ar...

    ^

    1 error generated.

    make[3]: *** [/var/uberx/.theos/obj/debug/armv7/Tweak.xm.8b659425.o] Error 1

    make[2]: *** [/var/uberx/.theos/obj/debug/armv7/uberx.dylib] Error 2

    make[1]: *** [internal-library-all_] Error 2

    make: *** [uberx.all.tweak.variables] Error 2

    iPhone:/var/uberx root#

     

    What's your full Tweak.xm

  4.  

    %hook UBSecondaryDispatchDefaultAcceptView
    -(void)setShowPickupAndDropoffAddress:(bool)arg1 {
    arg1 = TRUE;
    }
    %end
     
    %hook UBTripAddressesView
    -(void)setDropoffAddressText(id)arg1 isEnabled:(bool)arg2 {
    arg2 = TRUE;
    }
    %end
     
    %hook UBAddress
    -(void)setDisplayTitle:(id)arg1
    %end
     
    %hook UBSecondaryDispatchView
    -(void)setShowPickupAndDropoffAddress:(bool)arg1 {
    arg1 = TRUE;
    }

     

    %end

     

     
    yeah I got it now it's a success:) but still I get error with those one https://imgur.com/gallery/lP6Dn
     
    %hook UBSecondaryDispatchDefaultAcceptView
    -(void)setShowPickupAndDropoffAddress:(bool)arg1 {
    arg1 = TRUE;
    }
    %end
     
    %hook UBTripAddressesView
    -(void)setDropoffAddressText(id)arg1 isEnabled:(bool)arg2 {
    arg2 = TRUE;
    }
    %end
     
    %hook UBAddress
    -(void)setDisplayTitle:(id)arg1
    %end
     
    %hook UBSecondaryDispatchView
    -(void)setShowPickupAndDropoffAddress:(bool)arg1 {
    arg1 = TRUE;
    }

     

    %end

     

    %hook UBSecondaryDispatchDefaultAcceptView
    -(void)setShowPickupAndDropoffAddress:(bool)arg1 {
        %orig(TRUE);
    }
    %end
     
    %hook UBTripAddressesView
    -(void)setDropoffAddressText(id)arg1 isEnabled:(bool)arg2 {
        %orig(arg1, TRUE);
    }
    %end
     
    %hook UBSecondaryDispatchView
    -(void)setShowPickupAndDropoffAddress:(bool)arg1 {
        %orig(arg1, TRUE);
    }
     
    %end
    
  5. You can't return void:

     

    For every void you have pass-through, remove the return statement and leave it empty

     

     

    I don't quite understand why you wanted to return nothing to the id because even in Flex it's shown as NULL when you modify id. Therefore the id functions are useless and you can delete them completely unless you want to return nil;

     

    Hell no

     

    Leaving it empty or doing

    return;

    lead to the exact same thing

×
  • 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