Folow the code for find the iphone device jailbroken or not...
- (BOOL)isJailbroken
{
BOOL jailbroken = NO;
NSArray *jailbrokenPath = [NSArray arrayWithObjects:@"/Applications/Cydia.app", @"/Applications/RockApp.app", @"/Applications/Icy.app", @"/usr/sbin/sshd", @"/usr/bin/sshd", @"/usr/libexec/sftp-server", @"/Applications/WinterBoard.app", @"/Applications/SBSettings.app", @"/Applications/MxTube.app", @"/Applications/IntelliScreen.app", @"/Library/MobileSubstrate/DynamicLibraries/Veency.plist", @"/Applications/FakeCarrier.app", @"/Library/MobileSubstrate/DynamicLibraries/LiveClock.plist", @"/private/var/lib/apt", @"/Applications/blackra1n.app", @"/private/var/stash", @"/private/var/mobile/Library/SBSettings/Themes", @"/System/Library/LaunchDaemons/com.ikey.bbot.plist", @"/System/Library/LaunchDaemons/com.saurik.Cydia.Startup.plist", @"/private/var/tmp/cydia.log", @"/private/var/lib/cydia", nil];for(NSString *string in jailbrokenPath)
{
if ([[NSFileManager defaultManager] fileExistsAtPath:string]){
jailbroken = YES;
break;}
}
return jailbroken;
}
No comments:
Post a Comment