From 0b104cb4b03cc6e35b3dbc5ee6b8a2d121fc30f4 Mon Sep 17 00:00:00 2001 From: opa334 Date: Tue, 6 Sep 2022 12:02:10 +0200 Subject: [PATCH] Add support for M1 iPads --- .../TrollInstaller/exploit/IOGPU.c | 37 +++++++------------ 1 file changed, 13 insertions(+), 24 deletions(-) diff --git a/Installer/TrollInstaller/TrollInstaller/exploit/IOGPU.c b/Installer/TrollInstaller/TrollInstaller/exploit/IOGPU.c index 5214a79..b3dab4b 100644 --- a/Installer/TrollInstaller/TrollInstaller/exploit/IOGPU.c +++ b/Installer/TrollInstaller/TrollInstaller/exploit/IOGPU.c @@ -52,36 +52,25 @@ int IOGPU_get_command_queue_extra_refills_needed(void) struct utsname u; uname(&u); - // iPod Touch 7 - // iPhone 7 - // iPhone 11 & SE 2 - // iPhone 12 - // iPhone 13 & SE 3 - // iPad7,* has too many different models to list here, see theiphonewiki's "Models" page for info - // iPad 9 - // iPad13,1-13,2 is the iPad Air 4 and 13,4-13,11 is the iPad Pro M1. if ( - strstr(u.machine, "iPod9,") - || strstr(u.machine, "iPhone9,") - || strstr(u.machine, "iPhone12,") - || strstr(u.machine, "iPhone13,") - || strstr(u.machine, "iPhone14,") - || strstr(u.machine, "iPad7,") - || strstr(u.machine, "iPad12,") - || strstr(u.machine, "iPad13,") + strstr(u.machine, "iPod9,") // iPod Touch 7 + || strstr(u.machine, "iPhone9,") // iPhone 7 + || strstr(u.machine, "iPhone12,") // iPhone 11 & SE 2 + || strstr(u.machine, "iPhone13,") // iPhone 12 + || strstr(u.machine, "iPhone14,") // iPhone 13 & SE 3 + || strstr(u.machine, "iPad7,") // iPad7,* has too many different models to list here, see theiphonewiki's "Models" page for info + || strstr(u.machine, "iPad12,") // iPad 9 + || strstr(u.machine, "iPad13,") // iPad13,1-13,2 is the iPad Air 4 and 13,4-13,11 is the iPad Pro M1. + || strstr(u.machine, "iPad14,") // iPad Mini 6 ) { return 1; } - // iPhone 8, X - // iPhone XS, XR - // iPad Pro A12Z - // iPad 8 A12 else if ( - strstr(u.machine, "iPhone10,") - || strstr(u.machine, "iPhone11,") - || strstr(u.machine, "iPad8,") - || strstr(u.machine, "iPad11,") + strstr(u.machine, "iPhone10,") // iPhone 8, X + || strstr(u.machine, "iPhone11,") // iPhone XS, XR + || strstr(u.machine, "iPad8,") // iPad Pro A12Z + || strstr(u.machine, "iPad11,") // iPad 8 A12 ) { return 3;