mirror of
https://github.com/khanhduytran0/aintuitweaks.git
synced 2026-06-04 09:28:01 +02:00
Bypass blackening camera while mirroring is in use
This commit is contained in:
@@ -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,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
|
||||
|
||||
@@ -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
@@ -4,6 +4,7 @@
|
||||
"com.apple.UIKit",
|
||||
);
|
||||
Executables = (
|
||||
cameracaptured,
|
||||
SwitchBoard,
|
||||
"hidd.nonui",
|
||||
SpringBoard,
|
||||
@@ -13,4 +14,4 @@
|
||||
MobileStorageMounter,
|
||||
);
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user