Bypass blackening camera while mirroring is in use

This commit is contained in:
khanhduytran0
2026-05-30 07:18:07 +07:00
parent 1f774c2cf1
commit a4ad29a542
4 changed files with 19 additions and 4 deletions
+13
View File
@@ -1,4 +1,6 @@
@import Foundation;
@import QuartzCore;
@import UIKit;
@interface SBContinuitySessionSystemEventMonitor : NSObject
- (BOOL)isUILocked;
@@ -31,11 +33,22 @@
%end
%end
%group Hook_cameracaptured_FixBlackCamera
// also see -[FigCaptureCameraSourcePipeline setBlackenFramesForContinuityDisplayConnected:]
%hook FigCaptureDisplayLayoutMonitor
- (BOOL)isDisplayConnected {
return NO;
}
%end
%end
%ctor {
NSString *processName = NSProcessInfo.processInfo.processName;
if (@available(iOS 18.0, *)) {
if ([processName isEqualToString:@"SpringBoard"]) {
%init(Hook_SpringBoard_iOS18);
} else if ([processName isEqualToString:@"cameracaptured"]) {
%init(Hook_cameracaptured_FixBlackCamera);
}
}
}
+1 -1
View File
@@ -1,5 +1,5 @@
TARGET := iphone:clang:18.4:15.0
INSTALL_TARGET_PROCESSES = appstorecomponentsd installd managedappdistributiond SpringBoard MobileStorageMounter
INSTALL_TARGET_PROCESSES = appstorecomponentsd installd managedappdistributiond SpringBoard MobileStorageMounter cameracaptured
THEOS_PACKAGE_SCHEME := rootless
include $(THEOS)/makefiles/common.mk
+3 -2
View File
@@ -12,5 +12,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.
## Bypassing iPhone Mirroring checks
- 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.
- iPhone Mirroring also disables Camera and Microphone access, this tweak bypasses the check to allow using them while mirroring. (only camera is bypassed for now)
+2 -1
View File
@@ -4,6 +4,7 @@
"com.apple.UIKit",
);
Executables = (
cameracaptured,
SwitchBoard,
"hidd.nonui",
SpringBoard,
@@ -13,4 +14,4 @@
MobileStorageMounter,
);
};
}
}