Skip to content

Commit

Permalink
iOS 17 beta support for arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
alfiecg24 committed Apr 8, 2024
1 parent 16ae842 commit e6ba96b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions TrollInstallerX/Models/Device.swift
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ struct Device {
self.cpuFamily = .Unknown
}

// Set the CPU family (for checking dmaFail compatibility)
var buildNumber = [CChar](repeating: 0, count: 256)
len = MemoryLayout.size(ofValue: buildNumber);
// Check build number
len = 256;
var buildNumber = [CChar](repeating: 0, count: len)
sysctlbyname("kern.osversion", &buildNumber, &len, nil, 0);
let buildNumberStr = String(cString: buildNumber)

Expand Down Expand Up @@ -104,7 +104,7 @@ struct Device {
if self.cpuFamily == .A8 {
isSupported = self.version < Version("15.2")
} else {
isSupported = (self.version <= Version("16.6.1")) || (self.isOnSupported17Beta && !((self.cpuFamily == .A15 || !isM2) || self.cpuFamily == .A16))
isSupported = (self.version <= Version("16.6.1")) || (self.isOnSupported17Beta && !((self.cpuFamily == .A15 && !isM2) || self.cpuFamily == .A16))
}
}

Expand Down
3 changes: 2 additions & 1 deletion TrollInstallerX/Models/Exploit.swift
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,8 @@ let landa = KernelExploit(
ExploitVersion(minimumVersion: Version("14.0"), maximumVersion: Version("16.6.1"))
],
initialise: krw_init_landa,
deinitialise: krw_deinit)
deinitialise: krw_deinit,
supports17Betas: true)


/*
Expand Down

0 comments on commit e6ba96b

Please sign in to comment.