[AltJIT] Adds AltJIT CLI tool to enable JIT on devices running iOS 17+

Commands:

altjit enable [app/pid] --udid [udid]
* Enables JIT for given app/process

altjit mount --udid [udid]
* Mounts personalized developer disk
This commit is contained in:
Riley Testut
2023-09-07 18:00:53 -05:00
parent 1a42aaeae8
commit d846445448
20 changed files with 1503 additions and 7 deletions

View File

@@ -0,0 +1,35 @@
//
// AppProcess.swift
// AltStore
//
// Created by Riley Testut on 9/6/23.
// Copyright © 2023 Riley Testut. All rights reserved.
//
import Foundation
enum AppProcess: CustomStringConvertible
{
case name(String)
case pid(Int)
var description: String {
switch self
{
case .name(let name): return name
case .pid(let pid): return "Process \(pid)"
}
}
init(_ value: String)
{
if let pid = Int(value)
{
self = .pid(pid)
}
else
{
self = .name(value)
}
}
}