handle patched versions (18.2 beta 3+)

This commit is contained in:
leminlimez
2024-11-11 16:47:45 -05:00
parent 91acc8288a
commit 2912b97eea
3 changed files with 15 additions and 1 deletions

View File

@@ -13,6 +13,14 @@ class Device:
self.locale = locale
self.ld = ld
def is_exploit_fully_patched(self) -> bool:
parsed_ver: Version = Version(self.version)
# mobile gestalt methods are completely patched on iOS 18.2 dev beta 3+
if (parsed_ver < Version("18.2")
or self.build == "22C5109p" or self.build == "22C5125e"):
return False
return True
def has_exploit(self) -> bool:
parsed_ver: Version = Version(self.version)
# make sure versions past 17.7.1 but before 18.0 aren't supported

View File

@@ -181,6 +181,12 @@ class DeviceManager:
return False
else:
return self.data_singleton.current_device.supported()
def get_current_device_patched(self) -> bool:
if self.data_singleton.current_device == None:
return True
else:
return self.data_singleton.current_device.is_exploit_fully_patched()
def reset_device_pairing(self):