Prevent application from Root Cloak to hide root access
This question already has an answer here:
Perhaps reevaluate why you are trying to prevent your application from running on rooted devices. I know that preventing rooted devices from using enterprise applications seems like a panacea for enterprise security, but it's not. Consider this: unlocked bootloaders, custom recoveries, and S-OFF can offer possibly undetectable methods for accessing system-level data.
If you can guarantee data security (to the same degree) on a rooted phone, you will have a stronger selling point. Assuming that "unrooted" is equivalent to "secured" is a fallacy to which too many organizations and individuals fall prey.
(Full disclosure: I am the creator of RootCloak)
If the restriction is just because you need certain functionality, then consider checking if that functionality exists on the system.
If it is a security issue, then you will never have perfect security without having control what is installed on the system. With enough time / resources / threats, most things can be broken.
Write the installation manual least states clearly the rooted device is required. In the controlled enterprise environment it is possible to require to follow the documentation you provide.
Simply do with your application that you just must do and need root rights for that. If it works, the device is rooted. If not, in most cases the error state can be captured. Display the error message at this step.
链接地址: http://www.djcxy.com/p/24610.html