From a8eb91f5bcb94e363a81977e30678fb3a29dfb88 Mon Sep 17 00:00:00 2001 From: Cameron Katri Date: Mon, 24 Apr 2023 18:34:44 -0700 Subject: Fix iOS 15+ --- QuickActions/Makefile | 2 +- QuickActions/QuickActionsPrefs/Makefile | 2 +- QuickActions/Tweak.h | 10 +++------- QuickActions/Tweak.x | 10 +++------- QuickActions/control | 2 +- 5 files changed, 9 insertions(+), 17 deletions(-) (limited to 'QuickActions') diff --git a/QuickActions/Makefile b/QuickActions/Makefile index 91a8548..8b91b46 100644 --- a/QuickActions/Makefile +++ b/QuickActions/Makefile @@ -1,6 +1,6 @@ #THEOS_PACKAGE_SCHEME=rootless -TARGET := iphone:14.5:15.0 +TARGET := iphone:14.5:14.0 INSTALL_TARGET_PROCESSES = SpringBoard ARCHS := arm64 arm64e diff --git a/QuickActions/QuickActionsPrefs/Makefile b/QuickActions/QuickActionsPrefs/Makefile index a00d795..06352da 100644 --- a/QuickActions/QuickActionsPrefs/Makefile +++ b/QuickActions/QuickActionsPrefs/Makefile @@ -1,4 +1,4 @@ -TARGET := iphone:14.5:15.0 +TARGET := iphone:14.5:14.0 include $(THEOS)/makefiles/common.mk diff --git a/QuickActions/Tweak.h b/QuickActions/Tweak.h index 1c74481..e14a4f0 100644 --- a/QuickActions/Tweak.h +++ b/QuickActions/Tweak.h @@ -27,12 +27,8 @@ +(id)optionsWithDictionary:(id)arg1; @end -@interface FBSystemServiceOpenApplicationRequest : NSObject -@property (assign,getter=isTrusted,nonatomic) BOOL trusted; -@property (nonatomic,copy) NSString * bundleIdentifier; -@property (nonatomic,copy) FBSOpenApplicationOptions * options; -@property (nonatomic,retain) FBProcess * clientProcess; -+(id)request; +@interface FBSOpenApplicationService : NSObject +-(void)openApplication:(NSString *)arg1 withOptions:(FBSOpenApplicationOptions *)arg2 completion:(id)arg3; @end @interface CSQuickActionsButton : UIView { @@ -125,4 +121,4 @@ @property (nonatomic, readonly) CGRect _referenceBounds; @end -int SBFEffectiveHomeButtonType(); \ No newline at end of file +int SBFEffectiveHomeButtonType(); diff --git a/QuickActions/Tweak.x b/QuickActions/Tweak.x index 7e9a505..8e6af39 100644 --- a/QuickActions/Tweak.x +++ b/QuickActions/Tweak.x @@ -22,20 +22,16 @@ void openApplication(NSString *bundleID) { - FBSOpenApplicationOptions* opts = [%c(FBSOpenApplicationOptions) optionsWithDictionary:@{ + FBSOpenApplicationOptions *opts = [%c(FBSOpenApplicationOptions) optionsWithDictionary:@{ @"__LaunchOrigin" : @"BulletinDestinationCoverSheet", @"__PromptUnlockDevice" : @YES, @"__UnlockDevice" : @YES, @"__LaunchImage" : @"", @"__Actions" : @[] }]; - FBSystemServiceOpenApplicationRequest* request = [%c(FBSystemServiceOpenApplicationRequest) request]; - request.options = opts; - request.bundleIdentifier = bundleID; - request.trusted = YES; - request.clientProcess = [[%c(FBProcessManager) sharedInstance] systemApplicationProcess]; - [[%c(SBMainWorkspace) sharedInstance] systemService:[%c(FBSystemService) sharedInstance] handleOpenApplicationRequest:request withCompletion:^{}]; + FBSOpenApplicationService *openService = [[%c(FBSOpenApplicationService) alloc] init]; + [openService openApplication:bundleID withOptions:opts completion:nil]; } %hook CSQuickActionsView diff --git a/QuickActions/control b/QuickActions/control index 89ec283..2031df9 100644 --- a/QuickActions/control +++ b/QuickActions/control @@ -1,6 +1,6 @@ Package: com.cameronkatri.quickactions Name: QuickActions -Version: 1.0.0 +Version: 1.0.0-1 Architecture: iphoneos-arm Description: Quickly launch apps from the lockscreen Maintainer: Cameron Katri -- cgit v1.2.3-56-ge451