Technology computers-hardware

How to Get Rid of Gradients on iPad

    • 1). Go into the system files for your iPad and click Library.

    • 2). From the Library folder, select "MobileSubstrate."

    • 3). From the MobileSubstrate folder select "DynamicLibraries."

    • 4). Copy and paste the following in the DynamicLibraries folder:

      #import <SpringBoard/SBWallpaperView.h>
      #import <substrate.h>

      ///////////////////////////////////////////////////////////////

      #define HOOK(class, name, type, args...) \
      static type (*_ ## class ## $ ## name)(class *self, SEL sel, ## args); \
      static type $ ## class ## $ ## name(class *self, SEL sel, ## args)

      #define CALL_ORIG(class, name, args...) \
      _ ## class ## $ ## name(self, sel, ## args)

      ///////////////////////////////////////////////////////////////
      #pragma mark SBWallpaperView HACK
      #pragma mark
      ///////////////////////////////////////////////////////////////

      HOOK(SBWallpaperView, gradientImageForInterfaceOrientation$, id, int arg1) {
      for (id subview in self.subviews)
      [subview removeFromSuperview];

      return nil;
      }

      ///////////////////////////////////////////////////////////////
      #pragma mark dylib initialization and initial hooks
      #pragma mark
      ///////////////////////////////////////////////////////////////

      extern "C" void NateBotInitialize() {
      NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];

      //Check open application and create hooks here:
      NSString *identifier = [[NSBundle mainBundle] bundleIdentifier];
      if ([identifier isEqualToString:@"com.apple.springboard"]) {
      Class $SBWallpaperView(objc_getClass("SBWallpaperView"));
      _SBWallpaperView$gradientImageForInterfaceOrientation$
      = MSHookMessage($SBWallpaperView, @selector(gradientImageForInterfaceOrientation:), &$SBWallpaperView$gradientImageForInterfaceOrientation$);
      }

      [pool release];
      }

    • 5). Restart your iPad for the changes to take place.



Leave a reply