DEV STUFF

Damien Pegoraro

Detecting Jailbreak / root with Adobe AIR

Here’s a lightweight AIR tool that tells you if an iDevice is jailbroken or if an Android device is rooted:

https://github.com/babeuf/jailbreak-detector

This is not an ANE, there’s no native code involved here.

iDevices jailbreak comes with the installation of Cydia most of the time. This detection relies on that, looking for Cydia files on the drive. It’s not perfect but it works in many cases.

To check if an Apple device is jailbroken:

JailbreakDetector.isJailbroken();

Android root of a phone is fully legal and does not necessarily involve app piracy.

This detection tries to locate su on specific folders on the drive.

To check if an Android device is rooted:

JailbreakDetector.isRooted();

If you want to check both at once for a multiplatform app, call this:

JailbreakDetector.isDeviceLegit();

Tested with success on a jailbroken iPad2, a legit iPad3, a rooted Nexus 5, and a legit Nexus 4.
Let me know about bugs and cool stuff to add, and feel free to improve!

222 Comments on “Detecting Jailbreak / root with Adobe AIR

  1. I’m just writing to let you know of the excellent encounter my princess undergone visiting your web site. She noticed many details, with the inclusion of what it is like to possess an amazing giving style to let many people without problems thoroughly grasp various tortuous issues. You truly did more than visitors’ expectations. I appreciate you for delivering such valuable, trusted, explanatory not to mention cool guidance on the topic to Evelyn.

  2. I wanted to write down a brief comment in order to say thanks to you for the superb solutions you are giving out here. My extended internet lookup has at the end been recognized with excellent facts to go over with my visitors. I ‘d mention that most of us website visitors are unquestionably endowed to exist in a wonderful place with many brilliant professionals with very helpful tips and hints. I feel really fortunate to have seen the website page and look forward to some more fun times reading here. Thanks a lot once more for all the details.

  3. My spouse and i felt satisfied when Peter could round up his inquiry by way of the ideas he gained out of the site. It is now and again perplexing to just always be releasing tricks which usually the rest might have been selling. And we all discover we need the writer to give thanks to because of that. These illustrations you have made, the easy website navigation, the friendships you make it possible to create – it’s got mostly awesome, and it’s really facilitating our son in addition to us understand the article is pleasurable, which is exceptionally vital. Thanks for everything!

  4. I in addition to my guys were actually digesting the great pointers on your web blog and immediately got an awful feeling I never expressed respect to the web site owner for those strategies. All the men came totally very interested to read through all of them and have in effect clearly been making the most of these things. Appreciation for getting really kind and also for going for varieties of extraordinary issues most people are really needing to know about. My personal sincere regret for not expressing appreciation to you earlier.

  5. I as well as my buddies appeared to be checking the best helpful hints located on your website and then suddenly I got a terrible suspicion I had not expressed respect to the web site owner for them. All the people are actually as a consequence happy to study all of them and have now undoubtedly been loving them. We appreciate you getting considerably kind and then for considering certain fantastic tips millions of individuals are really needing to be informed on. My very own honest regret for not saying thanks to earlier.

  6. Needed to create you one little remark to finally thank you the moment again with the magnificent guidelines you have shown at this time. It has been pretty open-handed of you to provide unhampered what a lot of people would have distributed for an e-book to help make some profit for their own end, most importantly now that you might well have tried it if you ever decided. These inspiring ideas in addition acted to be the easy way to fully grasp that other people have the identical keenness the same as my personal own to realize way more related to this matter. I am sure there are millions of more fun situations up front for individuals that look over your website.

  7. Thanks a lot for providing individuals with an exceptionally breathtaking possiblity to read articles and blog posts from this website. It can be very pleasant plus full of fun for me and my office colleagues to visit the blog at least three times every week to read through the latest stuff you will have. And definitely, we are certainly amazed with your dazzling tips you give. Some two facts in this posting are ultimately the simplest we have ever had.

  8. Thank you so much for providing individuals with remarkably remarkable chance to read critical reviews from this website. It is usually very cool and as well , stuffed with a lot of fun for me personally and my office friends to search your web site a minimum of three times per week to find out the fresh things you have. And definitely, I am also usually motivated considering the awesome solutions you give. Some 3 facts in this posting are clearly the very best we have ever had.

  9. I am also commenting to make you know what a fantastic encounter my daughter had going through your web site. She came to find too many pieces, with the inclusion of how it is like to possess a very effective coaching mindset to make the others really easily master specified impossible subject areas. You really surpassed our own expectations. Many thanks for delivering the informative, trustworthy, explanatory and fun tips about this topic to Emily.

  10. I travel all around the world for work, and it used to be really lonely. Now I can go onto Tinder and have a date lined up in a new city before I even get out of the airport!

  11. I want to express my thanks to the writer for rescuing me from this particular difficulty. After exploring throughout the world wide web and meeting suggestions which are not helpful, I figured my life was over. Living without the solutions to the difficulties you’ve solved through your article is a serious case, and ones that would have in a wrong way damaged my entire career if I had not encountered the website. Your primary natural talent and kindness in maneuvering all areas was excellent. I don’t know what I would’ve done if I had not encountered such a solution like this. I can at this point relish my future. Thanks a lot so much for your specialized and amazing guide. I won’t think twice to suggest the blog to any individual who will need care on this situation.

  12. I in addition to my guys were found to be analyzing the excellent helpful tips on your web page and then at once I got a terrible feeling I had not expressed respect to you for those strategies. These young boys ended up totally stimulated to see all of them and now have actually been tapping into those things. Appreciation for truly being well helpful as well as for getting some excellent resources millions of individuals are really desperate to know about. Our own sincere apologies for not expressing appreciation to you earlier.

  13. I simply needed to say thanks again. I’m not certain what I would’ve done in the absence of the actual aspects discussed by you over such situation. It had become a frustrating situation in my circumstances, nevertheless considering the specialised tactic you solved it forced me to weep over gladness. I will be thankful for the advice and even wish you realize what a powerful job you’re putting in training some other people via your web page. Probably you haven’t encountered all of us.

  14. Thanks so much for giving everyone a very memorable opportunity to read critical reviews from here. It is usually very great plus full of a great time for me and my office friends to visit your website the equivalent of three times in 7 days to learn the newest things you have got. And lastly, I’m just always fulfilled with the fabulous hints you give. Selected 3 points on this page are absolutely the most impressive we have ever had.

  15. I’m just commenting to make you understand what a excellent experience my princess enjoyed browsing yuor web blog. She came to understand numerous pieces, most notably what it is like to possess a very effective giving mood to have the others easily know just exactly various specialized things. You actually did more than our own expected results. I appreciate you for offering the insightful, dependable, educational and in addition easy thoughts on that topic to Ethel.

  16. My husband and i have been so excited Albert could carry out his web research via the precious recommendations he came across from your very own web page. It’s not at all simplistic just to choose to be making a gift of facts that many people may have been making money from. We already know we have got you to give thanks to because of that. The explanations you made, the simple blog menu, the friendships your site give support to engender – it’s many spectacular, and it is leading our son in addition to us reckon that the subject matter is cool, which is seriously fundamental. Thank you for the whole lot!

Leave a Reply

Your email address will not be published. Required fields are marked *