diff --git a/BypassMirroringUnlock.x b/BypassMirroringUnlock.x new file mode 100644 index 0000000..59dff7b --- /dev/null +++ b/BypassMirroringUnlock.x @@ -0,0 +1,14 @@ + +%group Hook_SpringBoard_iOS18 +%hook _SBContinuitySessionStateMachine +- (void)_moveToInvalidStateForReasons:(id)reasons postToDelegate:(BOOL)post { + // Do nothing +} +%end +%end + +%ctor { + if (@available(iOS 18.0, *)) { + %init(Hook_SpringBoard_iOS18); + } +} diff --git a/Makefile b/Makefile index fe7d9bc..dc0c5a3 100644 --- a/Makefile +++ b/Makefile @@ -1,12 +1,12 @@ TARGET := iphone:clang:latest:15.0 -INSTALL_TARGET_PROCESSES = appstorecomponentsd installd managedappdistributiond MobileStorageMounter +INSTALL_TARGET_PROCESSES = appstorecomponentsd installd managedappdistributiond SpringBoard MobileStorageMounter THEOS_PACKAGE_SCHEME := rootless include $(THEOS)/makefiles/common.mk TWEAK_NAME = aintuitweaks -aintuitweaks_FILES = BypassMarketplace.x FixDDI.x +aintuitweaks_FILES = BypassMarketplace.x BypassMirroringUnlock.x FixDDI.x aintuitweaks_CFLAGS = -fobjc-arc aintuitweaks_FRAMEWORKS = IOKit aintuitweaks_LIBRARIES = image4 diff --git a/README.md b/README.md index d4877b1..a7c4f6f 100644 --- a/README.md +++ b/README.md @@ -11,3 +11,6 @@ Stock apps are provided via an internal server which is inaccessible outside of ## Bypassing EU/Japan Marketplace checks The old method of using [eligibility plist](https://github.com/Lrdsnow/EUEnabler) no longer works. This tweak bypasses the checks to allow accessing EU Marketplace apps on "AI" devices. + +## Bypassing iPhone Mirroring disconnect on unlock +iPhone Mirroring requires the device to remain locked, which disallows using both iPhone Mirroring and device display simultaneously. This tweak bypasses the check to allow using iPhone Mirroring while the device is unlocked, so you can have 2 apps running side by side, one on the device and one on iPhone Mirroring. diff --git a/filter.plist b/filter.plist index 74422d8..4173a89 100644 --- a/filter.plist +++ b/filter.plist @@ -1,6 +1,7 @@ { Filter = { Executables = ( + SpringBoard, appstorecomponentsd, installd, "managedappdistributiond",