iosjailbreakspringboard

iOsOpenDev SpringBoard


Can someone tell me how to hook SpringBoard method, like some AppSlider method with iOsOpenDev (iOs 7.1). Also i don't know what framework i have to take.

I have tryed with this but nothing appeared on the console:

import UIKit/UIKit.h
import SpringBoard/SpringBoard.h
import "CaptainHook.h"

CHDeclareClass(SBAppSliderScrollingViewController);

CHOptimizedMethod(0, self, void, SBAppSliderScrollingViewController, loadView)
{
    CHSuper(0, SBAppSliderScrollingViewController, loadView);
    NSLog(@"Ciccia!");
}

CHConstructor
{
   @autoreleasepool
   {
      CHLoadLateClass(SBAppSliderScrollingViewController);
      CHHook(0, SBAppSliderScrollingViewController, loadView);
   }
}

Solution

  • Why do you need

    CHLoadLateClass(SBAppSliderScrollingViewController); //for class available later
    

    you can just write

    CHLoadClass(SBAppSliderScrollingViewController);//for class available now ;)
    

    and you can do it easily using Logos.. Here is an Example...

    #import <UIKit/UIKit.h>
    
    %hook SBAppSliderController
    
    - (void)loadView {
         %orig;
         NSLog (@"****AppSwitcher Appeared");
    
         UIAlertView *testAlert = [[UIAlertView alloc] initWithTitle:@"Test" 
         message:@"app switcher appeared." 
         delegate:self 
         cancelButtonTitle:@"OK" 
         otherButtonTitles:nil];
    
         [testAlert show];
         [testAlert release]; //for non-arc 
    
    }
    
    %end
    

    Note: right class is SBAppSliderController if you need to do something when AppSwitcher Appear ;)