Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Is my device jailbroken?
-
Today i bring you a cool little script that can be useful to some of you. It basically tests if your device is jailbroken. Hope you enjoy :-)
-
nice! thanks.
-
Neat! (Of course, I don't have any JB devices to actually test it on at the moment...)
A lot of MDM vendors will do these types of tests in their software agents as many institutions using their products won't allow jailbroken devices (even BYOD) to be enrolled.
Another similar jailbreak test I've read about was to write a dummy file to certain normally-protected parts of the filesystem. If the write succeeded, then the device was likely jailbroken.
-
Yes, your idea is right but i find mine simpler (because, why to write additional files, verify and delete the file when you can simply list a folder?) :-)
I have a Air 2 jailed and a mini 1 jailbroken but i couldn't figure out what were the sandboxed folders for Pangu 9 (Pangu 9 doesn't unsandbox most of the folders that other jailbreaks did). I googled and found some folders: https://www.theiphonewiki.com/wiki/Sandbox_Patch
So, this should work with every jailbreak. If someone finds a version not compatible feel free to tell me :-) -
Agreed -- my point was simply that there are often a collection of different methods for detection, depending on the nature of the JB. Some of those techniques rely on positive as well as negative test results.
Whatever the case, that's a neat script you came up with!