From c128c9268b6422a3a783b50d9ede36975cb70391 Mon Sep 17 00:00:00 2001 From: Jackson Coxson Date: Mon, 14 Apr 2025 10:54:56 -0600 Subject: [PATCH] Update SideStore for new minimuxer --- AltStore/LaunchViewController.swift | 8 +---- AltStore/My Apps/MyAppsViewController.swift | 9 ------ .../Operations/Errors/OperationError.swift | 32 +++++++++++++++++++ SideStore/minimuxer | 2 +- 4 files changed, 34 insertions(+), 17 deletions(-) diff --git a/AltStore/LaunchViewController.swift b/AltStore/LaunchViewController.swift index f4221f5c..8086e5ec 100644 --- a/AltStore/LaunchViewController.swift +++ b/AltStore/LaunchViewController.swift @@ -253,13 +253,7 @@ final class LaunchViewController: RSTLaunchViewController, UIDocumentPickerDeleg try! FileManager.default.removeItem(at: FileManager.default.documentsDirectory.appendingPathComponent("\(pairingFileName)")) displayError("minimuxer failed to start, please restart SideStore. \((error as? LocalizedError)?.failureReason ?? "UNKNOWN ERROR!!!!!! REPORT TO GITHUB ISSUES!")") } - if #available(iOS 17, *) { - // TODO: iOS 17 and above have a new JIT implementation that is completely broken in SideStore :( - } - else { - start_auto_mounter(documentsDirectory) - } - + start_auto_mounter(documentsDirectory) // Create destinationViewController now so view controllers can register for receiving Notifications. self.destinationViewController = self.storyboard!.instantiateViewController(withIdentifier: "tabBarController") as? TabBarController } diff --git a/AltStore/My Apps/MyAppsViewController.swift b/AltStore/My Apps/MyAppsViewController.swift index 712611f2..b3b88f5d 100644 --- a/AltStore/My Apps/MyAppsViewController.swift +++ b/AltStore/My Apps/MyAppsViewController.swift @@ -1487,15 +1487,6 @@ private extension MyAppsViewController guard minimuxerStatus else { return } } - if #available(iOS 17, *), !sidejitenabled { - let error = OperationError.tooNewError as NSError - let localizedError = error.withLocalizedTitle("No iOS 17 On Device JIT!") - - ToastView(error: localizedError, opensLog: true).show(in: self) - AppManager.shared.log(error, operation: .enableJIT, app: installedApp) - return - } - AppManager.shared.enableJIT(for: installedApp) { result in DispatchQueue.main.async { switch result { diff --git a/AltStore/Operations/Errors/OperationError.swift b/AltStore/Operations/Errors/OperationError.swift index 103287e0..9461f4f7 100644 --- a/AltStore/Operations/Errors/OperationError.swift +++ b/AltStore/Operations/Errors/OperationError.swift @@ -350,6 +350,38 @@ extension MinimuxerError: LocalizedError { return NSLocalizedString("Unable to manage profiles on the device", comment: "") case .ProfileRemove: return NSLocalizedString("Unable to manage profiles on the device", comment: "") + case .CreateLockdown: + return NSLocalizedString("Unable to connect to lockdown", comment: "") + case .CreateCoreDevice: + return NSLocalizedString("Unable to connect to core device proxy", comment: "") + case .CreateSoftwareTunnel: + return NSLocalizedString("Unable to create software tunnel", comment: "") + case .CreateRemoteServer: + return NSLocalizedString("Unable to connect to remote server", comment: "") + case .CreateProcessControl: + return NSLocalizedString("Unable to connect to process control", comment: "") + case .GetLockdownValue: + return NSLocalizedString("Unable to get value from lockdown", comment: "") + case .Connect: + return NSLocalizedString("Unable to connect to TCP port", comment: "") + case .Close: + return NSLocalizedString("Unable to close TCP port", comment: "") + case .XpcHandshake: + return NSLocalizedString("Unable to get services from XPC", comment: "") + case .NoService: + return NSLocalizedString("Device did not contain service", comment: "") + case .InvalidProductVersion: + return NSLocalizedString("Service version was in an unexpected format", comment: "") + case .CreateFolder: + return NSLocalizedString("Unable to create DDI folder", comment: "") + case .DownloadImage: + return NSLocalizedString("Unable to download DDI", comment: "") + case .ImageLookup: + return NSLocalizedString("Unable to lookup DDI images", comment: "") + case .ImageRead: + return NSLocalizedString("Unable to read images to memory", comment: "") + case .Mount: + return NSLocalizedString("Mount failed", comment: "") } } diff --git a/SideStore/minimuxer b/SideStore/minimuxer index baa22acb..e4661a56 160000 --- a/SideStore/minimuxer +++ b/SideStore/minimuxer @@ -1 +1 @@ -Subproject commit baa22acbff1dc00d76e4186e55ae1904eec428cc +Subproject commit e4661a561f53963ac789e34a309e588ba1b582ae