What hve you tried on flex ? There are usually some Booleans that check if you are jailbroken and setting these as false gets the job done. If you need help creating your own patch please PM me OP!
Edit: just saw the post date. I probably should have checked first. My bad. If anyone needs help though let me know.