bits about life, coding and stuff
It’s pretty basic, it’s not an crack detector, but it’s handy when you’re sending debug data and your customer have some weird bug because of some custom winterboard/sbsettings/custom hack. You can argue against supporting that.
Note: It’s not working for “Installer”-only hacks. But they are rare those days, most other implementations use apt as their package system.
It’s a UIDevice Category. Call it via [[UIDevice currentDevice] isJailbroken].
Related posts:
2 Responses to Detect if an iPhone is jailbroken
IQpierce
October 11th, 2010 at 7:43 pm
Have you shipped an app with this code in it? I’m concerned that Apple might take issue with the phone checking the local file structure…
studpete
October 12th, 2010 at 1:00 pm
Yes, shipped that. It’s no issue.