Skip to content

Commit

Permalink
Initial release.
Browse files Browse the repository at this point in the history
  • Loading branch information
iAdam1n committed Jul 2, 2015
1 parent f616721 commit 901662a
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
include theos/makefiles/common.mk
export SDKVERSION = 8.4
ARCHS = armv7 arm64

TWEAK_NAME = MusicRotate
TWEAKNAME_FRAMEWORKS = UIKit
MusicRotate_FILES = Tweak.xm

include $(THEOS_MAKE_PATH)/tweak.mk

after-install::
install.exec "killall -9 SpringBoard"
1 change: 1 addition & 0 deletions MusicRotate.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{ Filter = { Bundles = ( "com.apple.UIKit" ); }; }
42 changes: 42 additions & 0 deletions Tweak.xm
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
#import <UIKit/UIWindow.h>
#import <UIKit/UIApplication.h>
#import <UIKit/UIViewController.h>

%hook UIWindow
-(bool)isInterfaceAutorotationDisabled {
return FALSE;
}
-(bool)_shouldAutorotateToInterfaceOrientation:(long long)arg1 checkForDismissal:(bool)arg2 isRotationDisabled:(bool*)arg3 {
return TRUE;
}
%end

%hook UIInputWindowController
-(bool)setInterfaceAutorotationDisabled {
return FALSE;
}
%end

%hook UIMovieScrubber
-(bool)setRotationDisabled {
return FALSE;
}
%end

%hook UIViewController
-(bool)_isInterfaceAutorotationDisabled {
return FALSE;
}
%end

%hook UIApplication
-(bool)_rotationDisabledDuringTouch {
return FALSE;
}
-(bool)_setRotationDisabledDuringTouch {
return FALSE;
}
-(bool)_isAutorotationDisabledForAppWindows {
return FALSE;
}
%end
10 changes: 10 additions & 0 deletions control
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Package: com.iadam1n.musicrotate
Name: MusicRotate
Pre-Depends: firmware (>=8.4)
Depends: mobilesubstrate
Version: 1.0
Architecture: iphoneos-arm
Description: Enable rotation in Music app on iOS 8.4+.
Maintainer: iAdam1n
Author: iAdam1n
Section: Tweaks

0 comments on commit 901662a

Please sign in to comment.