From 140f53a1a06ddcbbe3baf1989bc61a2a4a02b478 Mon Sep 17 00:00:00 2001 From: Alexander <47733425+lxndr-rl@users.noreply.github.com> Date: Sat, 20 Feb 2021 13:51:10 -0500 Subject: [PATCH] Add some package managers Some Jailbreaks doesn't include Cydia or user don't use it. Added: -Sileo -Saily -Zebra -Installer --- ios/RNIsDeviceRooted.m | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ios/RNIsDeviceRooted.m b/ios/RNIsDeviceRooted.m index b065218..4915676 100644 --- a/ios/RNIsDeviceRooted.m +++ b/ios/RNIsDeviceRooted.m @@ -60,6 +60,10 @@ BOOL isJailbroken() #if !(TARGET_IPHONE_SIMULATOR) if ([[NSFileManager defaultManager] fileExistsAtPath:@"/Applications/Cydia.app"] || + [[NSFileManager defaultManager] fileExistsAtPath:@"/Applications/Sileo.app"] || + [[NSFileManager defaultManager] fileExistsAtPath:@"/Applications/Zebra.app"] || + [[NSFileManager defaultManager] fileExistsAtPath:@"/Applications/Saily.app"] || + [[NSFileManager defaultManager] fileExistsAtPath:@"/Applications/Installer.app"] || [[NSFileManager defaultManager] fileExistsAtPath:@"/Library/MobileSubstrate/MobileSubstrate.dylib"] || [[NSFileManager defaultManager] fileExistsAtPath:@"/bin/bash"] || [[NSFileManager defaultManager] fileExistsAtPath:@"/usr/sbin/sshd"] || @@ -72,6 +76,10 @@ BOOL isJailbroken() FILE *f = NULL ; if ((f = fopen("/bin/bash", "r")) || (f = fopen("/Applications/Cydia.app", "r")) || + (f = fopen("/Applications/Sileo.app", "r")) || + (f = fopen("/Applications/Zebra.app", "r")) || + (f = fopen("/Applications/Saily.app", "r")) || + (f = fopen("/Applications/Installer.app", "r")) || (f = fopen("/Library/MobileSubstrate/MobileSubstrate.dylib", "r")) || (f = fopen("/usr/sbin/sshd", "r")) || (f = fopen("/etc/apt", "r"))) {